Skip to main content

quash-api

quash-api is the CI runner for Quash API. It runs your app's API test suites, exported from Quash as a bundle, against one environment, writes a JUnit report and exits with a code your pipeline can gate on. It is deterministic: no model runs in the loop.

Install

python3 -m pip install quash-api   # Python 3.11 or newer
quash-api --help

It carries the execution engine Quash's own runs use: nothing else to install.

Run

quash-api run quash-bundle --env=staging --junit quash-report.xml
  • quash-bundle is a directory holding a bundle exported from your app in Quash (Apps > your app > CI/CD), which also generates a ready-made config for seven CI providers.
  • --env names one of the bundle's environments. Pass it as --env=NAME.
  • Environment secrets never travel in the bundle: set each as an API_TEST_SECRET_<NAME> variable, and the runner names any that are missing before it sends a request.
  • --junit PATH writes the JUnit report your CI displays; --json PATH writes a machine-readable result. quash-api run --help lists every flag.

Exit codes: 0 every test passed · 1 a test failed · 2 configuration error (nothing was sent) · 3 runtime error (the API was unreachable; retry) · 130 interrupted.

Reach a private API: the Quash Connector

Quash can test an API that only your network can reach (localhost, a VPN, a private subnet) through the Quash Connector, a command you leave running next to that API. It opens only outbound HTTPS to Quash, so no inbound port is needed, and it contacts only the hosts you allow.

  1. A workspace owner opens Connectors in Quash, creates a connector (for one project, or the whole workspace) and copies its key (it is shown once). Quash shows the commands below with your address and key filled in.

  2. Start it on a machine that can reach your API:

    read -rs QUASH_CONNECTOR_KEY && export QUASH_CONNECTOR_KEY   # paste the qcn_… key
    quash-api connector --server https://<your Quash API address> --allow api.example.com:8080
    
  3. In your app's environment, choose the connector under Network. That environment's runs and test generation then go through it.

  • --allow HOST[:PORT] names a host the connector may reach. Repeat it for more; *.corp.example matches sub-domains. A host without a port means its default port only (80 for http, 443 for https); write HOST:PORT for any other. Nothing else is ever contacted.
  • --server must be an https:// address (http:// is accepted only for this machine: localhost, 127.0.0.1, ::1), so the key never crosses a network in clear.
  • The connector verifies every TLS certificate. An environment set not to verify TLS (a self-signed internal certificate) is honoured only when you start the connector with --insecure-tls.
  • The key is read from QUASH_CONNECTOR_KEY, so it stays off the command line and out of ps. read -rs keeps it out of your shell history too; typing export QUASH_CONNECTOR_KEY=qcn_… would put it there.
  • It stops and says why when its key is refused: the connector was revoked, or the owner who created it is no longer a workspace owner. A workspace owner then creates a new one. A suspended workspace is not a refused key: the connector says so once, waits, and serves again when the workspace is approved.

License

Proprietary. Copyright (c) 2026 Quash. For use with Quash API only. See LICENSE.

Metadata

Release files for quash-api 0.1.1

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

Built distribution (wheel)

Table of built distributions (wheels) for quash-api 0.1.1
File Interpreter ABI Platform Actions
quash_api-0.1.1-py3-none-any.whl Python 3 none any Details for quash_api-0.1.1-py3-none-any.whl

Release files / quash_api-0.1.1-py3-none-any.whl

Download URL quash_api-0.1.1-py3-none-any.whl
Size 646.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a7b0192258776d8848d20d9070aeb5f285862df220a68fa627aa2d05854a420
BLAKE2b-256 checksum
How to use checksums
1267fcc51a0e5c140fc87ddad0509a15524344574e281c369a8177f146f62b74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 31, 2026.

Transparency log

Security for quash-api 0.1.1

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

1 file in this release has been uploaded with provenance metadata.

Attestation for quash_api-0.1.1-py3-none-any.whl

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 Oct 31, 2026.

Transparency log

A 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.

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