Skip to main content

Simple tc (traffic control) command wrapper

Project description



tcconfig is a simple tc (traffic control) command wrapper.


pip install tcconfig


Set traffic control


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.

  --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.

Files for tcconfig, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size tcconfig-0.1.0-py2.py3-none-any.whl (5.8 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size tcconfig-0.1.0.tar.gz (16.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page