skillfed

genie.trafficgen

Genie Library for traffic generator connection support

genie-trafficgen v26.7 198.0K downloads/30d#9,743 on PyPI
Permissive license Apache 2.0 Active released

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

uv

uv add genie-trafficgen

poetry

poetry add genie-trafficgen

Installing 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

Development Status :: 5 - Production/StableDevelopment Status :: 6 - MatureEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsIntended Audience :: Telecommunications IndustryLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Build ToolsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing

Tags

traffic generator controlgenie traffic componentnetwork traffic testingpyats traffic generationixnetwork integrationtest automation trafficnetwork device traffic
network-testingtraffic-generationpyats-ecosystem

More Libraries packages

Further reading