skillfed

stcrestclient

stcrestclient: Client modules for STC ReST API

stcrestclient v1.9.8 77.0K downloads/30d#14,569 on PyPI36
Permissive license http://www.opensource.org/licenses/mit-license.php Active released

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 stcrestclient

uv

uv add stcrestclient

poetry

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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Topic :: Software Development :: LibrariesTopic :: Utilities

Tags

testcenter rest api clientstc automation pythontestcenter server api wrapperspirent testcenter remote controlrest api client librarytestcenter session managementnetwork testing automation
network-testingtest-automationrest-api-client

More Libraries packages