CyPerf REST API
This package is a client API for the Keysight CyPerf Controller.
This is a full implementation of all features supported by CyPerf. It requires a minimum CyPerf version of 6.0.
Getting started
To connect to a controller running at https://my-controller, just run the following:
import cyperf
config = cyperf.Configuration(host="https://my-controller",
username="admin",
refresh_token="get a token from CyPerf UI > Gear > Offline Token")
# if you don't have a valid HTTPS certificate for controller, uncomment this line
# config.verify_ssl = False
client = cyperf.ApiClient(config)
sessions_api = cyperf.SessionsApi(client)
sessions = sessions_api.get_sessions()
sessions[0].config.config.traffic_profiles[0].name = "My API Traffic Profile"
Integrating in a regression
This package also includes a cyperf.utils component that can be used for easily writing scripts
that can be run from a console and receive credentials through environment variables.
Say sample.py contains this code:
import cyperf
client = cyperf.utils.create_api_client_cli(verify_ssl=False)
sessions_api = cyperf.SessionsApi(client)
sessions = sessions_api.get_sessions()
sessions[0].config.config.traffic_profiles[0].name = "My API Traffic Profile"
You can then simply run this script like:
export CYPERF_OFFLINE_TOKEN="get a token from CyPerf UI > Gear > Offline Token"
python sample.py --controller my-controller --user admin
Metadata
Release files for cyperf 26.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cyperf-26.1.2.tar.gz | 294.4 kB | Without provenance | Details for cyperf-26.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cyperf-26.1.2-py3-none-any.whl | Python 3 | none | any | Details for cyperf-26.1.2-py3-none-any.whl |
Total release size: 1.1 MB
Release files / cyperf-26.1.2.tar.gz
| Download URL | cyperf-26.1.2.tar.gz |
|---|---|
| Size | 294.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a7b42a2c5465682329155e42e57f0aefee38da82cb9739ab165c6c2878d782d
|
|
BLAKE2b-256 checksum How to use checksums |
fc2d7972be24471eeb47e4685aa5d5480c795d4710356af7f1f643d580b55313
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / cyperf-26.1.2-py3-none-any.whl
| Download URL | cyperf-26.1.2-py3-none-any.whl |
|---|---|
| Size | 847.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d94cb2aa94b67aed9548ca283b83ffb4059d33536e0efc44884500d3df740c12
|
|
BLAKE2b-256 checksum How to use checksums |
460e964e6b66f59c9585697478145e7809a85ebe9737ea12a2c72968b9f056e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for cyperf 26.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.