Registry / devops / genie-trafficgen

genie-trafficgen

JSON →
library26.5pypypiunverified

Genie Library for traffic generator connection support. Version 26.3 provides abstractions for controlling traffic generators (e.g., Ixia, Spirent) via Genie's unified API. Part of Cisco's pyATS/Genie ecosystem. Release cadence is irregular.

pip install genie-trafficgen
INSTALL
IMPORT
SIG · GENIE-TRAFFICGEN
G
genie-trafficgen
devopspythonv26.5
Install
33.9s avg
Import
Disk
953MB
Pass rate
7/ 10
Env Coverage7 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v26.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ 0.1s
✓ 43.3s
py 3.11
✕ build_error
✓ 42.6s
py 3.12
✕ build_error
✓ 50.3s
py 3.13
✕ build_error
✓ 46.8s
py 3.9
✓ 0.1s
✓ 54.3s
953MB installed
● package 953MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TrafficGen
from genie import TrafficGen
from genie import TrafficGen

Basic connection to a traffic generator using default SSH protocol.

from genie.trafficgen import TrafficGen from genie.conf import Genie tg = TrafficGen() tg.connect(host='10.1.1.1', port=1234, protocol='ssh') print('Connected to traffic generator:', tg.host) tg.disconnect()
pyats --version
Debug
Known issues
breakingAPI changes in version 26.x: TrafficGen class replaced abstract base, breaking old subclass patterns.
fix
Use TrafficGen directly instead of subclassing; migrate custom device support to new plugin system.
affects: >=26.0,<27.0
deprecatedDirect import from `genie.libs.trafficgen` is deprecated; use `genie.trafficgen` instead.
fix
Change import to `from genie.trafficgen import TrafficGen`.
affects: >=26.0,<27.0
gotchaTrafficGen.connect() may hang indefinitely if device is unreachable; no timeout by default.
fix
Wrap in timeout or use async version with custom timeout param if available.
affects: all
Upgrade
Version history
26.5latest on PyPI · released May 28, 2026
Audit
Dependencies
genierequiredCore Genie library required for trafficgen abstractions
pyatsoptionalpyATS framework often used alongside Genie
Agent activity
8 hits · last 30 days
node
8
Resources
genie-trafficgen — pip install genie-trafficgen · libregistry