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, currently at Version 1.0.
Installation and Usage
Installation (temporary)
Using pipx
pipx nbsapi_verify --help
Using uvx
uvx nbsapi_verify --help
Installation (permanent, on $PATH)
If you would prefer the tool to be installed on your PATH you can run:
pipx install nbsapi_verify or uv tool install nbsapi_verify. You can then run nbsapi_verify without prefixes.
Installation as a package
You can also install the package using your preferred Python package manager:
Using pip
pip install nbsapi_verify
Using uv
uv add nbsapi_verify
Using poetry
poetry add nbsapi_verify
After installation, you can run the tool using the installed script:
nbsapi_verify --help
Usage
nbsapi_verify requires a small amount of configuration:
- First, 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 path for the verification config to be stored (optional: it 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).
In order to test your API while locally developing, that command might look like:
nbsapi_verify --generate \
--host http://localhost:8000 \
--test-type all
--username testuser \
--password testpass \
--testid 1 \
--config-dir ~
If the command completes sucessfully, you can run the verification tool:
nbsapi_verify --config-dir ~
When all tests pass, your API implementation is conformant to the NbsAPI specification!
Help
nbsapi_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.6.tar.gz.
File metadata
- Download URL: nbsapi_verify-0.1.6.tar.gz
- Upload date:
- Size: 45.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76fde6f20ec84b05aa354e3416070f8278394c4f2bc3278666eeb96c22aae65d
|
|
| MD5 |
ee98bdae3f6c6d33a6de41488c2aa03f
|
|
| BLAKE2b-256 |
aa6ed8e2f01a9548575509ee0b4dc40c00a81d5db83a81bcbe823c38595d73b5
|
Provenance
The following attestation bundles were made for nbsapi_verify-0.1.6.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.6.tar.gz -
Subject digest:
76fde6f20ec84b05aa354e3416070f8278394c4f2bc3278666eeb96c22aae65d - Sigstore transparency entry: 188044407
- Sigstore integration time:
-
Permalink:
nbsapi/nbsapi_verify@81c55bfa8a8970e773efe689bf1039a5991708ee -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/nbsapi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@81c55bfa8a8970e773efe689bf1039a5991708ee -
Trigger Event:
push
-
Statement type:
File details
Details for the file nbsapi_verify-0.1.6-py3-none-any.whl.
File metadata
- Download URL: nbsapi_verify-0.1.6-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5d85e3233b9cb66a330b1107b2a4586b179a62f3ef60dd4ad8674ee800fbbea
|
|
| MD5 |
31e86537c725ab186d4395a9113a31d0
|
|
| BLAKE2b-256 |
b935e82399848ba7e3f528ff990c020e3061dd5286703f3a39e9338b480b3495
|
Provenance
The following attestation bundles were made for nbsapi_verify-0.1.6-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.6-py3-none-any.whl -
Subject digest:
d5d85e3233b9cb66a330b1107b2a4586b179a62f3ef60dd4ad8674ee800fbbea - Sigstore transparency entry: 188044408
- Sigstore integration time:
-
Permalink:
nbsapi/nbsapi_verify@81c55bfa8a8970e773efe689bf1039a5991708ee -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/nbsapi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@81c55bfa8a8970e773efe689bf1039a5991708ee -
Trigger Event:
push
-
Statement type: