An example how subcommands can be used with argparse module: Sample output: markku@btest:~/temp$ python3 argtest.py usage: argtest.py [-h] [-c CONFIG_FILE] {update-device,add-vlan} … positional arguments: {update-device,add-vlan} update-device update device data add-vlan add a VLAN optional arguments: -h, –help show this help message and exit -c CONFIG_FILE, –config-file CONFIG_FILE specify the configuration file to read (default: argtest.cfg) […]
Month: May 2020
File Transfers and the Cloud (Or How Latency Affects Your Application)
In this post I’ll discuss a reality that is often overlooked when talking about using cloud services: Network latency matters. Here is the test network: On Your Marks Let’s first imagine that the hosts HostA and HostB are near each other, like in the same data center. The latency between the hosts is negligible: markku@HostA:/mnt$ […]