Skip to main content

Netmango

A user-friendly Linux Network Emulator.


Why Netmango?

This started back when I was a fresh ICT master's student, helping out on a remote-controlled vehicle project. The robot talked to its operator over Wi-Fi, and on paper everything worked great. However, but the moment we drove it a little further away, or around an obstacle, the robot started behaving funny.

To make the control loop more robust, we needed a way to reproduce those messy links on demand. Although Linux has a netem for this, but it turns out very unfriendly to use: long commands, easy to mistype, and if you forget to undo your rule your Wi-Fi just stays broken.

So I built Netmango: a small, friendly Python app that lets you emulate and monitoring the messy real-world network conditions your device will actually face out in the wild 🥭. With it you can:

  • pick the interface you want to mess with,
  • add delay, jitter, packet loss, and corruption with a few clicks,
  • watch your link quality and throughput live while you test,
  • and just close the window when you're done — Netmango cleans up after itself, no leftover rules.

Say goodbye to wrestling with netem.


APP Screenshot

Netmango_app


Quick start

pip install netmango
sudo netmango        # tc/netem requires root

Option B — run from a clone

# Clone the repo
cd netmango
./start.sh

That's it. start.sh will:

  1. Create .venv/ if it doesn't exist.
  2. Install the project in editable mode on the first run.
  3. Launch the GUI (python -m netmango).

To stop, just click the ×. Netmango automatically removes any rule it applied.


Prerequisites

Netmango runs on Linux and relies on a few common system packages.

System packages

On Debian / Ubuntu:

sudo apt update
sudo apt install -y \
    python3 python3-venv python3-pip \
    iproute2 iputils-ping \
    libxcb-cursor0 libxcb-xinerama0

Sudo

Netmango uses tc, which is a Linux kernel feature and needs root, so it will prompt for your sudo password the first time you apply a rule.


Author

I'm Mengge Zhang, an ICT master's student at KU Leuven. Netmango is a personal project, fully open source. I like to use what I learned to solve realworld challenges. Happy shaping! 🥭

I'm currently looking for opportunities to pursue a PhD, so feel free to get in touch!

Metadata

Release files for netmango 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 netmango 0.1.0
File Size Uploaded Provenance Actions
netmango-0.1.0.tar.gz 795.8 kB Without provenance Details for netmango-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.6 MB

Release files / netmango-0.1.0.tar.gz

Download URL netmango-0.1.0.tar.gz
Size 795.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ac0097c495f627d07792970c0df5a5894d3c71ca86af402727cab104554cd4ee
BLAKE2b-256 checksum
How to use checksums
660f7e126ec720c34c0707002dc9b2465a5cf2f8a6b96ad180dc2416d1b2a3d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

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

Download URL netmango-0.1.0-py3-none-any.whl
Size 795.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03b8da364e056b035b6fd2986d35ee345ec8a4d69bfd2a8efa13d1bbe76f6815
BLAKE2b-256 checksum
How to use checksums
587655dcf7e50a0895daf4cac2d09549d41823a43fd8b3a047b5efb9c560f88c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for netmango 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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