Skip to main content

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.

Release files for noswag-cli 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for noswag-cli 0.1.2
File Size Uploaded
noswag_cli-0.1.2.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for noswag-cli 0.1.2
File Interpreter ABI Platform
noswag_cli-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 33.7 kB

Release files / noswag_cli-0.1.2.tar.gz

Download URL noswag_cli-0.1.2.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
43e7949eba12f5eedba63070770459f8d3437b8c1bc310254e7fa7c8c784d2f5
BLAKE2b-256 checksum
How to use checksums
d80a756794416650e231ca7b006a2178a7ed7a2a957112d16e60647d4c30d544
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 log

Release files / noswag_cli-0.1.2-py3-none-any.whl

Download URL noswag_cli-0.1.2-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d45fd8ac6b45c756241dde3ee3c7d87aa1be905029fe91204fc42d4158c5a0a
BLAKE2b-256 checksum
How to use checksums
3a2761a4c9775bca6267bf8e61f998823373c3f115218ebb7bdd2cdc532d3704
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 log

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page