Observed since 20 Oct, 15:36 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
3scale-api-crd
3scale CRD Python Client
3scale client uses CRs for object definition. CRs are processed by 3scale Operator.
Install and update using pip:
pip install 3scale-api-crd
Or as a dependency using the pipenv
pipenv install 3scale-api-crd
Client supports basic CRUD operations and it generates CRs in Openshift namespace defined by oc session.
Basic usage of the client:
oc login
oc project example
import threescale_api_crd
client = threescale_api_crd.ThreeScaleClientCRD(url="myaccount.3scale.net", token="secret_token", ssl_verify=True, ocp_provider_ref="secret_with_credentials")
Using of objects are described in 3scale API client README.
To run the tests you need to have installed development dependencies:
pipenv install --dev
and then run the pytest:
pipenv run pytest -m smoke
To run the integration tests you need to set these extra env variables:
THREESCALE_PROVIDER_URL='https://example-admin.3scale.net'
THREESCALE_PROVIDER_TOKEN='<test-token>'
THREESCALE_MASTER_URL='https://master.3scale.net'
THREESCALE_MASTER_TOKEN='<test-master-token>'
and to have valid oc tool session to Openshift where 3scale Operator is deployed and watches for CRs.
By default:
- oc namespace should be the namespace where 3scale instance is deployed
- the system-seed secret is used by 3scale Operator client
- THREESCALE_ variables are used for not implemented Threescale client features
If CRs are created in different namespace to 3scale deployment, env variable
OCP_PROVIDER_ACCOUNT_REF can be specified with secret name used by 3scale Operator client,
see https://github.com/3scale/3scale-operator/blob/master/doc/backend-reference.md#provider-account-reference
Command to run integration unit tests: pipenv run pytest --log-cli-level=10 -vvvv -s ./tests/integration/ |& tee x
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
3scale-apiEnvironment{
"extras": "",
"marker": null,
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | 3scale-api | runtime |
openshift-clientEnvironment{
"extras": "",
"marker": null,
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | openshift-client | runtime |
flake8Environment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | flake8; extra == "dev" | runtime |
mypyEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | mypy; extra == "dev" | runtime |
pylintEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | pylint; extra == "dev" | runtime |
pytestEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | pytest; extra == "dev" | runtime |
python-dotenvEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | python-dotenv; extra == "dev" | runtime |
backoffEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | backoff; extra == "dev" | runtime |
sphinxEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | sphinx; extra == "docs" | runtime |
bdist_wheel · 51.91 KB · Python py3
sdist · 41 KB · Python source
Shared repository data · GitHub
Public sponsor counts have not been collected. These signals belong to the repository owner.
github · 1 observations shown. Missing days are unknown.
| Date / source period | Value | Observed at |
|---|---|---|
| 2026-10-22 | 4 | 2026-10-22T14:30:06.0237956Z |
Observed since 20 Oct, 15:36 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:5e5ba496cb2f6d66c72af27502e25a85158c6374b349c3e4e2c4e73811278df4