genie.libs.clean
Genie Library for device clean support
What it is and what it does
Genie Clean is a sub-component of the Genie test automation framework that handles device recovery and state setup. It provides reusable implementations to bring devices into a known, testable state before running test cases. The package is part of Cisco's pyATS ecosystem, which emphasizes data-driven, reusable testing patterns suitable for rapid development cycles.
The package works as a library within the Genie framework, which itself is built on the modular pyATS architecture. It depends on the core genie package plus standard Python build tools (setuptools and wheel). The implementation is designed for Linux and Mac environments running Python 3.4 or later, with a focus on enabling teams to scale from simple linear test cases to complex asynchronous test suites.
Use it for:
- Reset network devices to a baseline configuration before running test suites
- Automate device bring-up procedures as part of test fixture setup
- Implement reusable device recovery logic across multiple test scenarios
- Integrate device state management into Genie-based test automation workflows
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Genie Clean provides device recovery and state management implementations for the Genie test automation framework, enabling test setups to bring devices to a known testable state.
Yes, if you are building test automation on the Genie and pyATS framework. The package is actively maintained, carries no known vulnerabilities, has low install friction, and is licensed permissively. Install it only if you need device cleanup and state recovery as part of a Genie-based test harness; it is not a standalone tool.
Install
genie-libs-clean on PyPI
pip
pip install genie-libs-cleanuv
uv add genie-libs-cleanpoetry
poetry add genie-libs-cleanInstalling genie.libs.clean
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with a release within the past week. Depends on setuptools, wheel, and genie.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions.
Quickstart
pip install genie-libs-clean
import genie.libs.clean
# Use clean implementations to manage device state in test setup
Requires Python 3.4+ on Linux or Mac; Windows is not supported.
Verify before relying
- Specific device types and platforms supported by the clean implementations
- API stability and backward compatibility guarantees across major versions
- Integration requirements with the broader pyATS ecosystem beyond the core genie dependency
Package facts
| License | Apache 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — setuptools, wheel, genie |
| Maintenance | actively maintained — 7 days since the last release |
| First released | |
| Downloads | 268,793/month — #8,269 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: genie_libs_clean-26.7-py3-none-any.whl
Keywords: genie, clean, 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.parserParses device output into structured data for…
permissive · top 15,000 on PyPI
genie.libs.sdkGenie Libs SDK provides a library of reusable…
permissive · top 15,000 on PyPI
genie.libs.healthProvides health monitoring and diagnostics for…
permissive · top 15,000 on PyPI
genieGenie is a test automation library and harness…
permissive · top 15,000 on PyPI
genie.trafficgenProvides connection implementations to traffic…
permissive · top 15,000 on PyPI
genie.libs.opsGenie Libs Ops provides a library component for…
permissive · top 15,000 on PyPI
genie.libs.robotProvides RobotFramework keywords to interact…
permissive · top 15,000 on PyPI
genie.libs.filetransferutilsProvides utility functions for transferring…
permissive · top 15,000 on PyPI
genie.telemetryGenie Telemetry monitors testbed health status…
permissive · top 15,000 on PyPI
genie.libs.confGenie Libs Conf provides Python object-based…
permissive · top 15,000 on PyPI