Verify an nbsinfra API implementation
Project description
NbSAPI Verification Tool
nbsapi_verify is a standalone tool designed to verify that your API implementation conforms to the https://nbsapi.org OpenAPI specification.
Installation
pipx install nbsapi_verify or uv tool install nbsapi_verify
Configuration and Usage
Verifying your API is a two-step process:
- Generate a verification config. This requires you to specify:
- the host the API is running on
- a valid username
- the password for that username
- the ID of that user
- a directory for the verification config to be stored (optional: defaults to the current working directory)
- the test type to be run:
all,auth,user: theauthtests will exercise the write API functions, while theusertests will exercise the read API functions (defaults toall).
That command might look like:
nbsinfra_verify --generate \
--host http://localhost:8000 \
--test-type all
--username testuser \
--password testpass \
--testid 1 \
--config-dir ~
If the command completes sucessfully, you may run the verification tool:
nbsinfra_verify --config-dir ~
When all tests pass, your API implementation is conformant to the NbsAPI specification.
Help
nbsinfra_verify --help
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nbsapi_verify-0.1.0.tar.gz.
File metadata
- Download URL: nbsapi_verify-0.1.0.tar.gz
- Upload date:
- Size: 44.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8ea11e83745f9050ecd389405f19eda00c74cafd29903c1d32239997eab67db
|
|
| MD5 |
9a36a9b97a09c5b506f1ad94b5b07b0b
|
|
| BLAKE2b-256 |
f77a60127e391018374aba537024626cbbdcfcd4c1724c35cfe8591bdc5ecd66
|
Provenance
The following attestation bundles were made for nbsapi_verify-0.1.0.tar.gz:
Publisher:
ci.yml on nbsapi/nbsapi_verify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nbsapi_verify-0.1.0.tar.gz -
Subject digest:
c8ea11e83745f9050ecd389405f19eda00c74cafd29903c1d32239997eab67db - Sigstore transparency entry: 172512538
- Sigstore integration time:
-
Permalink:
nbsapi/nbsapi_verify@990fdd614b1cce69243a7c90d824da4f0c6f6c56 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/nbsapi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@990fdd614b1cce69243a7c90d824da4f0c6f6c56 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nbsapi_verify-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nbsapi_verify-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13155b1ff240aadc4e5023b0f03441ff211d754e7a7e5ccc8717a80335f05e94
|
|
| MD5 |
22801cd03c63e523a389b705443a7918
|
|
| BLAKE2b-256 |
13ee776f9fc73b5e1250cf27640daaaea11cdb8f8a082f47f378a9701383d54c
|
Provenance
The following attestation bundles were made for nbsapi_verify-0.1.0-py3-none-any.whl:
Publisher:
ci.yml on nbsapi/nbsapi_verify
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nbsapi_verify-0.1.0-py3-none-any.whl -
Subject digest:
13155b1ff240aadc4e5023b0f03441ff211d754e7a7e5ccc8717a80335f05e94 - Sigstore transparency entry: 172512542
- Sigstore integration time:
-
Permalink:
nbsapi/nbsapi_verify@990fdd614b1cce69243a7c90d824da4f0c6f6c56 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/nbsapi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@990fdd614b1cce69243a7c90d824da4f0c6f6c56 -
Trigger Event:
push
-
Statement type: