NoSwag Python CLI
The noswag package authenticates through the NoSwag device flow, packages a
bounded snapshot of the current Git repository, requests repository-native
tests, and previews or safely writes the returned artifact.
python -m pip install noswag-cli
noswag auth login
noswag init
noswag gentest # repository-aware dry-run
noswag gentest --spec openapi.yaml # contract tests from a spec
noswag gentest --write # guarded write
--spec accepts a repository-relative JSON or YAML OpenAPI/Swagger file and
includes it even when the Git diff has no source changes. Generated contract
checks use NOSWAG_BASE_URL at execution time and optionally
NOSWAG_API_TOKEN, NOSWAG_API_KEY, NOSWAG_PATH_*, and NOSWAG_QUERY_*.
Tokens are stored through the operating system credential store. Set
NOSWAG_API_URL for staging/local use. CI can use a platform API key via
NOSWAG_API_KEY (or the backwards-compatible NOSWAG_TOKEN) without writing
a credential file. Platform keys carry their workspace, so
NOSWAG_WORKSPACE_ID is optional. The key can also be passed with
--api-key.
Interactive login stores a rotating refresh token in the OS credential store;
the short-lived access token is refreshed automatically and logout revokes the
refresh family.
Repository verification commands run only when verify.enabled: true is
committed in .noswag.yml or --verify is supplied, and only together with
--write. No detected command is executed implicitly.
Exit codes: 2 authentication, 3 quota/license, 4 generation, 5
validation, and 6 write conflict.
Metadata
Release files for noswag-cli 0.1.4
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 |
|---|---|---|---|---|
| noswag_cli-0.1.4.tar.gz | 15.6 kB | With provenance | Details for noswag_cli-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| noswag_cli-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for noswag_cli-0.1.4-py3-none-any.whl |
Total release size: 34.0 kB
Release files / noswag_cli-0.1.4.tar.gz
| Download URL | noswag_cli-0.1.4.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ad55ff5169003ed105ee95d9984478fef687b6029f1aeeb9373f44fc855b20f
|
|
BLAKE2b-256 checksum How to use checksums |
d2b1c89addae8f019e70a18b949ed8a9a9bebfafd28938b7da340c5489b8cef4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / noswag_cli-0.1.4-py3-none-any.whl
| Download URL | noswag_cli-0.1.4-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81026b151c8a25d1b9a0f82fd88f6ff50d13e8a7264eb59b54de357b3f7d7a54
|
|
BLAKE2b-256 checksum How to use checksums |
bf353b5d449a2bf1f3eaec7483d747badaed9e8c230eb9e5f8e2c60247e9712f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logSecurity for noswag-cli 0.1.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for noswag_cli-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logA 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.