genie.trafficgen
Genie Library for traffic generator connection support
What it is and what it does
Genie Traffic Component is a sub-package of the Genie testing framework that abstracts connections to traffic generator devices like IxNetwork and Spirent TestCenter. It sits within the broader pyATS ecosystem, a data-driven test automation platform developed by Cisco and designed for rapid, reusable test development in an object-oriented Python style.
The package provides a unified interface to control traffic generation hardware, allowing test automation code to send and receive network traffic as part of larger test suites. It depends on vendor-specific libraries (IxNetwork, stcrestclient) and the core Genie and unicon packages, making it most useful for teams already using the pyATS framework or planning to integrate traffic testing into existing Genie-based test automation.
Use it for:
- Automate network device testing by generating and monitoring traffic flows through Genie test cases.
- Integrate IxNetwork or Spirent TestCenter traffic generation into pyATS-based test suites.
- Build reusable traffic scenarios for data-center or carrier network validation.
- Combine traffic generation with device configuration and state verification in a single test harness.
- Scale from simple linear traffic tests to complex asynchronous multi-flow scenarios.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides connection implementations to traffic generator devices within the Genie testing framework, enabling test automation to control and interact with traffic generation hardware.
Yes, if you are already using Genie and pyATS for test automation and need to add traffic generation capabilities. The active maintenance, permissive license, and low install friction make it a straightforward addition. However, you must have access to compatible traffic generator hardware (IxNetwork or STC) and be prepared for vendor-specific setup; it is not useful as a standalone traffic simulation tool.
Install
genie-trafficgen on PyPI
pip
pip install genie-trafficgenuv
uv add genie-trafficgenpoetry
poetry add genie-trafficgenInstalling genie.trafficgen
Before you install
Active maintenance with a release 7 days ago. Low install friction as a pure-Python wheel. Depends on 8 runtime packages including genie, unicon, and traffic-specific libraries like IxNetwork and stcrestclient, which may require additional system setup or licenses.
License in practice
Licensed under Apache 2.0 (permissive), allowing use in commercial and private projects with minimal restrictions beyond attribution and liability disclaimers.
Quickstart
pip install genie.trafficgen
from genie.trafficgen import TrafficGen
# Use TrafficGen to connect to and control traffic generator devices
Requires traffic generator hardware (IxNetwork or STC) and may require vendor-specific drivers or licenses; Linux or macOS only per documentation.
Verify before relying
- Whether IxNetwork and stcrestclient dependencies require commercial licenses or vendor-specific setup beyond pip installation.
- Current Python version support floor (description mentions 3.4+ but classifiers list 3.9–3.13).
- Whether Windows support has been added since the description was written.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — genie, unicon, prettytable, IxNetwork, ixnetwork_restpy, setuptools, wheel, stcrestclient |
| Maintenance | actively maintained — 7 days since the last release |
| First released | |
| Downloads | 198,026/month — #9,743 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: genie_trafficgen-26.7-py3-none-any.whl
Keywords: genie, traffic, pyats, cisco
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
genie.libs.sdkGenie Libs SDK provides a library of reusable…
permissive · top 15,000 on PyPI
genie.libs.parserParses device output into structured data for…
permissive · top 15,000 on PyPI
genie.libs.robotProvides RobotFramework keywords to interact…
permissive · top 15,000 on PyPI
genie.libs.cleanGenie Clean provides device recovery and state…
permissive · top 15,000 on PyPI
pynetgearpyNetgear provides a Python API to communicate…
permissive · top 15,000 on PyPI
genieGenie is a test automation library and harness…
permissive · top 15,000 on PyPI
genie.libs.healthProvides health monitoring and diagnostics for…
permissive · top 15,000 on PyPI
snappi-ixnetworkExecutes traffic generation test scripts…
permissive · top 15,000 on PyPI
genie.libs.filetransferutilsProvides utility functions for transferring…
permissive · top 15,000 on PyPI
genie.libs.opsGenie Libs Ops provides a library component for…
permissive · top 15,000 on PyPI