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==0.4.0   # Python 3.11 or newer
quash-api --help

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

Run

export QUASH_API_KEY=qsh_...   # a Pipeline key from your Quash workspace
export QUASH_API_SERVER=https://<your Quash API address>
quash-api run --cloud --app col_... --env=staging --junit quash-report.xml
  • --cloud downloads your app's approved tests from Quash, runs them here and uploads the results, so the run appears in your app's Run Reports; the runner prints its link. Your app's CI/CD page in Quash generates a ready-made config for seven CI providers.
  • Without --cloud, quash-api run quash-bundle --env=staging runs a bundle you exported and keep in your repository.
  • --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. With --cloud, Quash refusing the key or the upload is 2, and Quash unreachable is 3.

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 the 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. It may not carry a username or password (https://user:pass@host) either: that would send a second credential alongside the key, verbatim in this process's argv and logs.
  • 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.4.0

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.4.0
File Interpreter ABI Platform Actions
quash_api-0.4.0-py3-none-any.whl Python 3 none any Details for quash_api-0.4.0-py3-none-any.whl

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

Download URL quash_api-0.4.0-py3-none-any.whl
Size 726.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd471e765094b352e3f5075f5c12a518b2b9016b87844f3f5cc04eb53d593c7e
BLAKE2b-256 checksum
How to use checksums
52a73386e46e4187408441cab5f6a75756222c9ade8d174e442c2fec0e7b943e
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 Nov 23, 2026.

Transparency log

Security for quash-api 0.4.0

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.4.0-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 Nov 23, 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