Scan your whole stack
From OX Research Newsroom
Are you using zmuxio?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.0
zmuxio was last scanned on 28 Nov 2026 at version 0.5.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.5.0 LATEST | 28 Nov 2026 | No rules fired |
| 0.4.5 | 22 Nov 2026 | No rules fired |
| 0.4.4 | 20 Nov 2026 | No rules fired |
| 0.4.3 | 20 Nov 2026 | Not shown |
| 0.4.2 | 19 Nov 2026 | Not shown |
Findings for v0.5.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.5.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Python bindings for zmux: multiplexed streams and datagrams over one or many reliable byte pipes, wire-compatible with QMux (draft-ietf-quic-qmux). With a plain QMux peer a session is a single-pipe QMux session; between two zmux endpoints it adds multipath, resumption, stream preambles, priorities and datagram flows.
The protocol and all I/O run in the Rust implementation on a runtime managed by the extension; Python awaits the results on its asyncio loop.
pip install zmuxio # import zmux; Python 3.12+, also free-threaded 3.14t
Prebuilt wheels: Linux (manylinux) x86_64, aarch64, armv7, ppc64le, s390x and riscv64; Linux (musllinux) x86_64, aarch64, armv7 and i686; macOS x86_64 and arm64; Windows x86_64 and x86. Other platforms (Windows on arm64, for example) install from the sdist, which needs a Rust toolchain.
This program runs as it is: an echo server and a client in one process.
import asyncio
import zmux
async def main() -> None:
async with zmux.Listener() as listener:
host, port = await listener.serve_tcp("127.0.0.1", 0)
async def serve() -> None:
async for session in listener:
async with session:
async for send, recv in session:
await send.write(await recv.read_to_end())
await send.finish()
server = asyncio.create_task(serve())
async with await zmux.connect_tcp(host, port) as session:
send, recv = await session.open_bi(info=b"echo")
await send.write(b"hello")
await send.finish()
print(await recv.read_to_end())
server.cancel()
asyncio.run(main())
The other examples below are fragments: they assume a running event loop and the names they use.
The root namespace holds what an application uses: sessions, listeners, pipes
and streams, their configuration, options, events, statistics and errors, and
the dial and serve entries. The rest has a namespace of its own: zmux.adapter
(what only the author of a carrier adapter or of an accept loop needs),
zmux.sched (the scheduler and redundancy settings) and
zmux.helpers (pipe pools, splice, limiters, duplicate sessions, packet streams).
A carrier is one underlying connection that moves bytes or messages: a
TCP or TLS connection, a QUIC connection, an HTTP request, a WebSocket, a
stream of another session. A pipe input (PipeIo) is a carrier, or the
pair of carriers of a split, not yet given to a session. A pipe is one
path of a session between the two endpoints, carried by a carrier and named
by a PipeId. A stream belongs to the session, not to a pipe.
dial_x(host, port, *, ...) (a URL for the WebSocket, HTTP/3 and WebTransport
carriers) opens a carrier and returns a PipeIo; connect_x takes the same
arguments and a config=, dials, and returns a Session;
Listener.serve_x(host, port, *, ...) accepts and returns the bound
(host, port). A host you pass, alone or in a (host, port) address, is a
str (a name or an IP literal) or an ipaddress.IPv4Address /
IPv6Address. An address reported to you (a peer, a source) is a (host, port) tuple of str and int. Session.connect(pipe, config=...),
Session.accept(pipe, config=...) and Session.symmetric(pipe, config=...)
(roles negotiated) start a session on a pipe input of your own.
Carrier kind (CarrierKind) |
Dial | Connect | Serve | Candidate |
|---|---|---|---|---|
| (none) | dial_tcp |
connect_tcp |
serve_tcp |
|
| (none) | dial_tls |
connect_tls |
serve_tls |
|
QUIC |
dial_quic, QuicClient.dial |
connect_quic, QuicClient.connect |
serve_quic |
Candidate.quic |
WEBSOCKET |
dial_websocket |
connect_websocket |
serve_websocket, serve_http(websocket=True) |
Candidate.websocket |
STREAMING |
dial_streaming, dial_http2, Http2Connection.dial then open_pipe() |
connect_streaming, connect_http2 |
serve_http |
Candidate.streaming |
SPLIT |
dial_split, Http2Connection.open_split() |
connect_split |
serve_http |
Candidate.split |
EXCHANGE |
dial_exchange |
connect_exchange |
serve_http(exchange=...) |
Candidate.exchange |
HTTP3 |
dial_http3 |
connect_http3 |
serve_http3 |
Candidate.http3 |
WEBTRANSPORT |
dial_webtransport |
connect_webtransport |
serve_webtransport |
Candidate.webtransport |
TLS settings come from TlsConfig (PEM paths or bytes; clients default to
the bundled web roots). pipe_from_streams(reader, writer) runs a session
over any asyncio stream pair (slower: bytes pass through Python), and
zmux.adapter.pipe_pair() gives an in-memory pipe whose other end you drive.
A PipeIo's settings are properties, changed in place until the input is
given to a session: carrier_kind, variant (the host's name of the
transform a carrier runs, reported in PipeStats.variant), write_overhead
and terminated_tls; declare_carrier_secure() declares the carrier secure for the
Bound record mode, and set_max_record(n) limits the largest record
plaintext the carrier takes (at least 8192, the carrier record floor; no upper
bound; the smaller limit holds; a pipe whose limit falls below 8192 after a
Sealed transform's overhead is refused). What a carrier's author sets once is a parameter of the
function that builds the input (pipe_from_streams, zmux.adapter.pipe_pair):
max_record (as set_max_record), exporter, the exporter of an
end-to-end handshake, and unsent (a zmux.adapter.UnsentCount the
application keeps up to date, read by the session without the interpreter
lock).
Fragment, a QUIC session with a priority:
session = await zmux.connect_quic(
"example.net", 443, config=zmux.Config(max_idle_timeout=30.0)
)
async with session:
send, recv = await session.open_bi(info=b"route", priority=zmux.Priority(1))
async with send: # finish on exit, reset on error
await send.write(b"request")
async for chunk in recv: # until the end of the stream
...
Use await QuicServer.bind(host, port=port, tls=tls) when the application
needs to manage each incoming QUIC connection separately. Each
await server.accept(listener) starts a QuicService and hands accepted
sessions to the listener. Call service.stop_admission() to withdraw
pending setups while established sessions continue using their pipes and
lanes. Await service.wait() for teardown. Call server.close() to close
the endpoint and its connections.
HTTP: one endpoint serves every HTTP carrier on one path, each request told
apart by its head. serve_http(host, port, exchange=..., websocket=True)
takes bidirectional POSTs (dial_streaming), uplink POSTs and downlink GETs
(dial_streaming(..., direction=zmux.Direction.OUT) or Direction.IN), split
bootstraps (dial_split: a POST and a GET paired by a token, for paths that
stream each body but not both on one request; run them over TLS), exchange requests
and WebSocket upgrades. The exchange carrier is for paths that pass only
plain request and response HTTP; both ends share psk and encoding.
Fragment:
opts = zmux.ExchangeOptions(psk=b"shared secret", encoding="base64")
await listener.serve_http("0.0.0.0", 8080, exchange=opts) # server
session = await zmux.connect_exchange("example.net", 8080, options=opts) # client
The session can detect a stalled path earlier when another settled path
shows recent delivery progress. pipe.health().eligible_for_new_data describes
scheduling eligibility, while send.can_carry describes service. The
before and after values on PipeHealthChanged carry the directional
evidence generation and its start when available.
The session controller can replace a binding atomically with
new_controller.take_over(previous, target=target). The TargetChanged
event identifies the installed binding, its predecessor and the target
revision. The controller snapshot captures path health and directional
coverage with the member table. A scheduling penalty on a path can leave
coverage intact.
Use path.evidence(...) to retain a snapshot observation and its original
expiration in a ReplaceIntent. The controller checks that the evidence still
applies when it uses it. Capacity events identify the originating binding
and batch. The controller snapshot reports opener and cleanup usage for
the binding and the domain.
controller.open(target) returns a session and its control handle. An
empty target can also open a session with None as its handle when the
client and peer did not negotiate multipath.
CarrierCache.retry_metrics(...) gives the candidate's ordinary and
missing-direction retry timing. control.release() releases a binding
and preserves confirmed coverage.
A ShapingProfileLimits describes a sliding outbound overhead window
with a minimum byte allowance, a parts-per-million allowance on proved
baseline bytes, and a per-unit delay limit. Its defaults are Lightweight.
Load shaping definitions such as L15 using ShapingBundle.from_json().
session.shaping_stats() reports committed and handed-off cover separately,
with measured and baseline bytes and per-window allowance in ledger.
A carrier choice picks among kinds for paths through reverse proxies and
CDNs: CarrierChoice.explicit(candidate) uses one kind and reports its
failure; CarrierChoice.auto([...]) tries candidates in order of preference
(no early data, no racing), remembers per key in a CarrierCache which kinds
passed, and with max_pipes above 1 starts on the most robust one and moves
to a preferred kind that joins. CarrierChoicePolicy holds the cache, key
and timers. The choice and every try are session events (CarrierChosen,
CarrierCandidate) and in session.stats(). Fragment:
choice = zmux.CarrierChoice.auto(
[
zmux.Candidate.websocket(secure_websocket_url, carrier_credential=auth),
zmux.Candidate.quic(host, port, carrier_credential=auth),
]
)
policy = zmux.CarrierChoicePolicy(cache=cache, key="office")
session = await zmux.connect_choice(choice, choice_policy=policy)
print(session.stats().carrier)
PipePool(2, choice=choice, choice_policy=policy) keeps further members over
the choice's kinds the same way (session.maintain_pipes(pool)). The cache
outlives the process as JSON text: text = cache.snapshot(), later
cache.restore(text).
zmux.Config is a frozen dataclass of keyword fields. A keyword left out
keeps the library's default, which is the field's default; None is the
off, no-timeout or unlimited setting of a field that has one (and raises
ValueError for any other). Settings that are not values have objects of
their own: zmux.AUTO (an automatic cap or a derived value, the default
where a field has it), zmux.STAGED (staged unidirectional credit, the
default), zmux.INHERIT (a pipe setting that follows the session's, the
default of those, and the unset value of every updatable field of a
PipeOptions) and zmux.CLEAR (only Pipe.update clears a setting; a
PipeOptions given CLEAR raises TypeError). Durations are seconds
(float). Fragment:
config = zmux.Config(
max_idle_timeout=60.0,
liveness=zmux.Liveness(keep_alive_period=10.0, probe_interval=None),
memory_budget=None, # unlimited
max_stream_receive_window=zmux.AUTO, # the default
scheduler=zmux.sched.Scheduler.SPREAD_ETA,
)
Config(liveness=zmux.Liveness(...)) holds the keep-alive and probe
settings; a running session replaces them with session.liveness = ....
The other runtime settings of a session are writable properties too. Each
reads back what the session holds (the last assignment, or the configuration
that set it), never fails and still answers after the session ended:
scheduler (its name), quality_band and capacity_floor (None while
unset). An invalid value raises ValueError. zmux.QualityBand(rtt=None, rate_ratio=None, min_interval=1.0)
reports a pipe's quality once its RTT moved by more than rtt seconds
(positive) or its rate by more than the factor rate_ratio (at least 1; 1
reports every change), at most once per min_interval seconds (positive;
None: no minimum); a half left None reports nothing, a band with both
halves None raises ValueError, and session.quality_band = None turns the
reports off. zmux.CapacityFloor(rate, recovery_ratio=1.25) takes a rate of
at least 1 and a finite recovery_ratio of at least 1. A pipe follows the
session's band by default (PipeOptions(quality_band=zmux.INHERIT), which
pipe.update(quality_band=zmux.CLEAR) returns to), has a band of its own
(quality_band=band), or is off whatever the session's band is
(quality_band=None). Use config.replace(...) to derive a variant. The defaults are exported as
constants (DEFAULT_KEEP_ALIVE_PERIOD, DEFAULT_MAX_IDLE_TIMEOUT,
DEFAULT_PROBE_JITTER, DEFAULT_STANDBY_PROBE, DEFAULT_MAX_RECORD_SIZE,
DEFAULT_MIN_BACKOFF, DEFAULT_MAX_BACKOFF, DEFAULT_BACKOFF_JITTER,
DEFAULT_MAX_LANES, DEFAULT_JOIN_TIMEOUT, DEFAULT_RECOVERY_RATIO,
DEFAULT_MIN_INTERVAL; DEFAULT_LANES is the QUIC carriers' lane count, a
different default than DEFAULT_MAX_LANES, the lanes accepted per inbound
pipe). zmux.MAX_STREAM_CREDIT (2**60) is the largest stream
count: pass it as max_incoming_streams or max_incoming_uni_streams to
let the peer open as many streams as the protocol can count.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.