Skip to main content

natsio-testing

Run real nats-server processes from your test suite: start/stop, temporary config files, free-port allocation, readiness probing (plaintext and TLS-handshake-first), and fault injection (kill()).

from natsio.testing import NatsServerProcess

async def test_against_a_real_server():
    server = await NatsServerProcess(binary="nats-server").start()
    try:
        nc = await natsio.connect(server.url)
        ...
    finally:
        await server.stop()

Binary discovery: pass binary= explicitly, or use find_server_binary() (checks NATS_SERVER_BIN, then nats-server on PATH).

Part of the natsio extension tier: distribution natsio-testing, imported as natsio.testing. Pre-1.0, no API-stability promises.

Metadata

Release files for natsio-testing 0.1.1

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

Source distribution (sdist)

Source distribution for natsio-testing 0.1.1
File Size Uploaded Provenance
natsio_testing-0.1.1.tar.gz 3.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for natsio-testing 0.1.1
File Interpreter ABI Platform
natsio_testing-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.0 kB

Release files / natsio_testing-0.1.1.tar.gz

Download URL natsio_testing-0.1.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0d3a19c9a8f59706a9e22873ff79c03fd397e9105dc90dadbbd3cebeec74f950
BLAKE2b-256 checksum
How to use checksums
9972767379faee6389aae278ed1655540ec2e22ef12e30c5f0e28549c1a2e194
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 22, 2026.

Transparency log

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

Download URL natsio_testing-0.1.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0efe8e642189e3810f66894d108c37918bfaa821ca0f33187d2fbc34f2b1a1b
BLAKE2b-256 checksum
How to use checksums
746cf8822b4f4f3bfc40c319261ed73020d8a43cb808e26d6fa1cddaa11170f4
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 22, 2026.

Transparency log

Security for natsio-testing 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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for natsio_testing-0.1.1.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 Oct 22, 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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