Skip to main content

Intro

Tired of dealing with major & minor numbers? You like the TOML format (kind of "ini" on steroids)? Always wanted to play with traffic shaping on linux but it turned too complex or confusing? This alpha tool aims at simplifying the learning curve for traffic control on ip route 2.

The format started quite close to the original command-line and progressively adds more support and shorter or easier notations.

Forget about classid, flowid. Consider parent sometimes handle for complex scenarios only!

Check the examples folder to dive into the syntax.

Supported features

  • hosts aliases
  • network interfaces aliases
  • speeds aliases
  • automatic generation of major & minor mumbers (all of them!) when possible
  • visual representation of the setup

Trafic control coverage

  • sfq : makes a more fair traffic
  • netem : simulate network problems
  • htb : control traffic rate using categories
  • tbf : very basic shaping

TODO:

  • relative speeds (percents)
  • templates (for repeated attributes)

QDiscs

  • sfq
  • netem
  • htb
  • tbf

Classes (categories uses by some QDiscs)

  • htb

Filters (assign traffic)

  • fw
  • u32
    • ip (src, dst, sport, dport)
  • action

Metadata

Release files for trafficshaper 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trafficshaper 0.1.0
File Size Uploaded
trafficshaper-0.1.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trafficshaper 0.1.0
File Interpreter ABI Platform
trafficshaper-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / trafficshaper-0.1.0.tar.gz

Download URL trafficshaper-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f9d3572feee5b1a91784ea6f11fabcea34ce991139635c1bfc509045d0104f4a
BLAKE2b-256 checksum
How to use checksums
262f269b77d38199b1384a1a0f20e13008bf7a7c05db716e1f682dc58c875339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.7 Linux/5.19.9-zen1-1-zen

Release files / trafficshaper-0.1.0-py3-none-any.whl

Download URL trafficshaper-0.1.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24d6e3e09a40952c365c1d16ba8ed821feb439ec7c35a32e31bc7955547ae106
BLAKE2b-256 checksum
How to use checksums
f064c35d125b5d34302132c2b3a8beb7608492950606533ef1aa6da7f3cb9523
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.0 CPython/3.10.7 Linux/5.19.9-zen1-1-zen

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page