stcrestclient
stcrestclient: Client modules for STC ReST API
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 on this page — 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
stcrestclient on PyPI
pip
pip install stcrestclientuv
uv add stcrestclientpoetry
poetry add stcrestclientInstalling 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 | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | actively maintained — 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,968/month — #14,569 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: stcrestclient-1.9.8-py2.py3-none-any.whl
Keywords: TestCenter, API
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
kanboardA Python client library that wraps the Kanboard…
permissive · top 15,000 on PyPI
mscertsProvides access to Microsoft's Root Certificate…
copyleft · top 15,000 on PyPI
wait-for-itA command-line tool that waits for one or more…
permissive · top 15,000 on PyPI
flipt-clientA Python client for Flipt feature flag…
permissive · top 15,000 on PyPI
trustmetrustme generates fake TLS certificates and…
permissive · top 5,000 on PyPI
secure-smtplibProvides secure SMTP subclasses with TLS/SSL…
unclear · top 15,000 on PyPI
WooCommerceA Python wrapper for the WooCommerce REST API…
permissive · top 15,000 on PyPI
certifiCertifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
prometheus-remote-writerSends time-series metrics to…
permissive · top 15,000 on PyPI
pyhanko-certvalidatorValidates X.509 certificate paths with support…
permissive · top 5,000 on PyPI