Simple tc (traffic control) command wrapper
Project description
tcconfig
About
tcconfig is a simple tc (traffic control) command wrapper.
Installation
pip install tcconfig
Usage
Set traffic control
Help
usage: tcset [-h] [--version] [--time-measure] [--logging] [--stacktrace]
[--debug | --quiet] --device DEVICE [--rate RATE] [--delay DELAY]
[--loss LOSS] [--overwrite]
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--debug for debug print.
--quiet suppress output of execution log message.
Miscellaneous:
--time-measure measuring execution time.
--logging suppress output of execution log files.
--stacktrace display stack trace when an error occurred.
Traffic Control:
--device DEVICE network device name
--rate RATE network bandwidth [K|M|G bps]
--delay DELAY round trip network delay [ms] (default=0)
--loss LOSS round trip packet loss rate [%] (default=0)
--overwrite overwrite existing setting
e.g. Set a limit on bandwidth up to 100Kbps
# tcset --device eth0 --rate 100k
e.g. Set 100ms network delay
# tcset --device eth0 --delay 100
e.g. Set 0.1% packet loss
# tcset --device eth0 --loss 0.1
Delete traffic control
# tcdel --device eth0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tcconfig-0.1.0.tar.gz
(16.8 kB
view details)
Built Distribution
File details
Details for the file tcconfig-0.1.0.tar.gz
.
File metadata
- Download URL: tcconfig-0.1.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f2bd29c701937ef7e3b643b407d5976b62a4b21b8354d313babb1191284b5c3 |
|
MD5 | be7edbd6340c550cdf3ba98ae6033976 |
|
BLAKE2b-256 | 2a4cbd1d82c06bdcaf0b9e9aa26f8db60fe1a7f0d793b54dc6c04ffa0a2cde30 |
Provenance
File details
Details for the file tcconfig-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: tcconfig-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aacaa17a319eebd9631c55cbe4bcefe0cf4c342a13db14e35ff5b889eb84f49c |
|
MD5 | 0d3c9822205cc543c7a61bac6f09a3fb |
|
BLAKE2b-256 | 28637884604f6e3b89dfcab41749fb18b7802c71cd03a9dabdffaf467c3e301a |