--- id: stcrestclient version: "1.9.8" license: http://www.opensource.org/licenses/mit-license.php license_treatment: permissive maintenance: active --- # stcrestclient — stcrestclient: Client modules for STC ReST API License: permissive · Maintenance: active · Downloads: 77.0K/mo ## What it is and what it does stcrestclient is a Python wrapper around the Spirent TestCenter ReST API that lets you control remote TestCenter server sessions programmatically. It provides the stchttp module for writing automation scripts with function calls that mirror the native TestCenter automation API, plus a command-line shell (tccsh) for interactive exploration and debugging. The library handles HTTP communication via requests and abstracts away the low-level ReST details, so you can focus on test logic rather than HTTP mechanics. The package is designed for network test automation engineers who need to script TestCenter operations—creating projects, configuring ports, running tests, and collecting results—without leaving Python. It supports both Python 2.7 and Python 3.x, works across Windows, macOS, and POSIX systems, and includes utilities for file upload/download and session management. A companion adapter allows existing TestCenter automation scripts to use the ReST API without code changes. Use it for: - Automate network test execution and configuration against remote TestCenter servers from Python scripts - Debug and explore TestCenter API interactively using the tccsh command-line shell without writing code - Integrate TestCenter testing into CI/CD pipelines by controlling sessions and collecting results programmatically - Migrate existing TestCenter automation to use the ReST API instead of local connections ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a Python ReST API client library and interactive shell for communicating with Spirent TestCenter servers, wrapping HTTP calls into function-like automation commands. Yes, if you need to automate Spirent TestCenter testing from Python. The package is actively maintained, has low install friction, carries a permissive MIT license, and has no known vulnerabilities. It is a straightforward wrapper around a single stable dependency (requests) and is well-suited for test automation and CI/CD integration. Not relevant if you do not use TestCenter. ## Install pip install stcrestclient uv add stcrestclient poetry add stcrestclient ## Installing stcrestclient Before you install: Low install friction; single dependency on requests. Active maintenance with a release 17 days ago and recent commits; the project has been stable since its 2015 initial release. License in practice: MIT license permits commercial and private use with minimal restrictions; suitable for most projects. Quickstart: pip install stcrestclient from stcrestclient import stchttp stc = stchttp.StcHttp('stcserver.somewhere.com', timeout=5) sid = stc.new_session('user', 'test_name') stc.system_info() Verify before relying: - Whether Python 2.7 support is still maintained or if Python 3.x is the primary target going forward - Current state of the AION platform integration and whether it is actively used ## Package facts - License: http://www.opensource.org/licenses/mit-license.php (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 77.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags testcenter rest api client, stc automation python, testcenter server api wrapper, spirent testcenter remote control, rest api client library, testcenter session management, network testing automation, network-testing, test-automation, rest-api-client [View on SkillFed](https://skillfed.io/packages/stcrestclient) · [View on PyPI](https://pypi.org/project/stcrestclient/)