nextreq
A next-generation, Rust-powered, batteries-included HTTP client for Python.
nextreq pairs a Rust core (Tokio · hyper/reqwest · rustls) with a small, fully typed
Python API. You get the ergonomics of requests, a first-class asyncio client, and
the things you normally bolt on yourself - retries, typed responses, SSE, WebSockets,
concurrency helpers, mocking and tracing - in one dependency-free package.
import nextreq
r = nextreq.get("https://httpbin.org/get", params={"q": "rust"})
r.raise_for_status()
print(r.json(), r.http_version, r.elapsed.total)
- Fast. The I/O engine runs in Rust with the GIL released. On the local
benchmark below it is about 8×
requestsfor sequential calls and 2.5×aiohttpfor async fan-out (3.3× with the built-ingather()). Benchmarks - Sync and async, one API.
ClientandAsyncClientshare every option and every feature, on one connection pool implementation. - Typed end to end.
client.get(url, model=User)returns aUser- statically (mypy/pyright) and at runtime (Pydantic v2, dataclasses or msgspec). - Safe by default. Timeouts on every phase, TLS verification, bounded redirects, credentials dropped on cross-origin redirects.
- Resilient. Built-in retries with exponential backoff, jitter and
Retry-After, one time limit for a whole call, and a circuit breaker for hosts that are down. - Made for real APIs. Client-side rate limits,
paginate(), JSON Lines, and downloads that resume where a broken connection stopped. - Realtime. WHATWG-compliant SSE parser in Rust, WebSockets (sync and async, with
compression and proxy support), and
gather()for bounded-concurrency fan-out. - Streaming both ways. Downloads and uploads are streamed: generators and open files are sent chunk by chunk, never loaded into memory.
- Testable.
MockTransport, plus in-memory transports for ASGI (FastAPI) and WSGI (Flask) apps - no sockets, no monkeypatching. - Observable. Request/response/error hooks, per-phase timings, optional
OpenTelemetry spans with W3C
traceparentpropagation. - Modern protocols. HTTP/1.1 and HTTP/2 out of the box, gzip / deflate / brotli / zstd decoding, proxies, optional HTTP/3.
- Zero mandatory dependencies. Python 3.10+, one abi3 wheel per platform.
Status: young but thoroughly tested: 489 Python tests and 45 Rust tests, run on CPython 3.10 (against the abi3 wheel) and 3.14, plus a threaded smoke test on free-threaded CPython 3.14t. What it does not do is listed under Limitations.
Installation
pip install nextreq
pip install "nextreq[pydantic]" # optional extras: pydantic, msgspec, otel
From source (needs a Rust toolchain):
git clone https://github.com/chetanxrathore/nextreq && cd nextreq
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
maturin develop --release
Tour
Clients
import nextreq
with nextreq.Client(
base_url="https://api.example.com",
headers={"Accept": "application/json"},
auth=("user", "pass"), # or BearerAuth / DigestAuth / any callable
timeout=10, # or nextreq.Timeout(connect=2, read=30)
retries=3,
) as client:
client.get("/users", params={"page": 2})
client.post("/users", json={"name": "Ada"})
client.put("/files/1", content=b"raw bytes")
client.post("/upload", data={"title": "Report"}, files={"file": open("report.pdf", "rb")})
import asyncio, nextreq
async def main():
async with nextreq.AsyncClient(base_url="https://api.example.com") as client:
response = await client.get("/users/1")
print(response.status_code, response.json())
asyncio.run(main())
Both clients accept base_url, headers, params, cookies (a persistent jar),
auth, timeout, follow_redirects (default True, at most 10 hops),
raise_for_status, retries, rate_limit, verify, cert, proxy, trust_env,
http2, uds, max_connections and keepalive_expiry. Every request method accepts
per-request overrides. The module-level helpers (nextreq.get, post, put, patch,
delete, head, options, request, stream, download) share a keep-alive pool
but never share cookies.
To stay logged in between runs of a program, give the client a file for its cookies. It is read when the client is created and written when it is closed:
with nextreq.Client(base_url="https://example.com", cookie_file="session.json") as client:
if "session" not in client.cookies:
client.post("/login", data={"user": "ann", "password": password})
client.get("/orders")
client.cookies.save(path) and client.cookies.load(path) do the same by hand. A
path ending in .txt is written in the cookies.txt format of curl and of browser
export extensions, and load() reads either format. The file is created readable by
its owner only.
To talk to a service on a Unix domain socket, such as the Docker daemon, pass its path.
The host in the URL is then only used for the Host header (not on Windows):
with nextreq.Client(uds="/var/run/docker.sock", base_url="http://docker") as client:
print(client.get("/version").json())
Uploads
Bodies that already sit in memory (bytes, str, json=, form data=) are sent
as they are. Bodies that are produced - generators, async generators and open
files - are streamed: nextreq pulls the next chunk only when the connection is
ready for it, so memory use stays flat however large the upload is.
with open("backup.tar", "rb") as f:
client.put("/backups/today", content=f) # sent in 64 KiB pieces, with Content-Length
with open("report.pdf", "rb") as f: # multipart: fields in memory, file streamed
client.post("/upload", data={"title": "Q3"}, files={"file": f})
def rows():
for row in database.iter_rows():
yield row.to_json().encode() + b"\n"
client.post("/import", content=rows()) # unknown length: chunked encoding
async def events():
async for event in queue:
yield event
await aclient.post("/ingest", content=events()) # async generators work with AsyncClient
AsyncClient reads files in a worker thread, so a slow disk does not stall the event
loop.
A retry or a 307/308 redirect has to send the body again. Seekable files and
re-iterable objects are rewound and replayed; a one-shot generator cannot be, so such
a request is not retried, and a redirect that needs the body raises StreamConsumed.
Authentication
client = nextreq.Client(auth=("user", "pass")) # Basic
client = nextreq.Client(auth=nextreq.BearerAuth("token"))
client = nextreq.Client(auth=nextreq.DigestAuth("user", "pass"))
client.get("/private", auth=sign_request) # any callable taking the request
DigestAuth implements RFC 7616 (MD5, SHA-256, SHA-512 and their -sess variants,
qop=auth and qop=auth-int). It answers the server's challenge transparently and
remembers it, so only the first request costs a round trip. auth-int also signs the
request body and is used only when the server offers nothing else; the body then has
to be in memory, a seekable file or a re-iterable object.
For a service that calls an API in its own name, OAuth2ClientCredentials gets an
access token from the authorization server and keeps it current:
auth = nextreq.OAuth2ClientCredentials(
"https://login.example.com/oauth/token",
client_id="my-service",
client_secret=os.environ["CLIENT_SECRET"],
scope="orders:read",
)
client = nextreq.Client(base_url="https://api.example.com", auth=auth)
client.get("/orders") # fetches a token first, then sends it as a Bearer token
- The token is fetched when the first request needs it, and again shortly before it
expires. If the API answers
401, a new token is fetched and the request is sent once more. - Requests that need a token at the same moment fetch one between them: with
gather()over a hundred URLs, or a hundred threads, there is one token request. client_auth="body"sends the credentials as form fields instead of anAuthorization: Basicheader, andextra={"audience": ...}adds form fields for servers that need them.- A token endpoint that refuses raises
OAuth2Error, with the server'serroranderror_description.
This is the client credentials grant (RFC 6749, section 4.4). Grants that involve a user signing in are not included.
Schemes that depend on the server's answer subclass Auth and write an auth_flow
generator: it yields a request and receives the response to it, as often as it needs
to. The same flow drives both clients.
class RefreshingAuth(nextreq.Auth):
def auth_flow(self, request):
request.headers["authorization"] = f"Bearer {self.token}"
response = yield request
if response.status_code == 401:
refreshed = yield nextreq.Request("POST", "https://auth.example.com/token", json=...)
self.token = refreshed.json()["access_token"]
request.headers["authorization"] = f"Bearer {self.token}"
yield request
A flow that has to wait for something, such as a lock around a token refresh, cannot
do that in one generator for both clients. Such a scheme overrides sync_auth_flow
(run by Client, and allowed to block) and async_auth_flow (run by AsyncClient,
and allowed to await) instead. OAuth2ClientCredentials is written this way.
Flow-based credentials follow redirects within the same origin and are dropped when
a redirect leaves it, like the Authorization header.
Typed responses
from pydantic import BaseModel
class User(BaseModel):
id: int
name: str
user = client.get("/users/1", model=User) # -> User
users = client.get("/users", model=list[User]) # -> list[User]
user = (await aclient.get("/users/1", model=User)) # same for AsyncClient
model= works with Pydantic v2 models, dataclasses, msgspec.Struct and generics
of them. Type checkers infer the return type from the argument, and the JSON bytes
go straight to the validator. A body that does not fit raises DecodeError carrying
the status code, URL, model and structured errors; a 4xx/5xx response raises
HTTPStatusError first, so error payloads are never force-fed into your model.
Timeouts
Safe defaults apply to every request: connect 5 s, read 30 s, write 30 s, pool 10 s.
nextreq.Client(timeout=10) # 10 s for every phase
nextreq.Client(timeout=nextreq.Timeout(connect=2, read=60)) # granular
client.get("/slow", timeout=None) # per-request, no timeout
Each phase raises its own exception - ConnectTimeout, ReadTimeout, WriteTimeout,
PoolTimeout - all of which are also the builtin TimeoutError. The read timeout
applies to each read, not to the whole response, so long downloads are not cut off.
The phase timeouts start again with every attempt, so a call that retries can take
far longer than any of them. total bounds the whole call:
client = nextreq.Client(retries=3, timeout=nextreq.Timeout(total=20))
client.get("/report") # a response or an exception within 20 seconds
The 20 seconds cover everything the call does: waiting for a rate-limit slot and for
a free connection, every attempt, redirect and authentication round trip, the pauses
between retries, and reading the body. When they run out the call raises
TotalTimeout. A retry whose pause does not fit into the time that is left is not
started: the call returns the last response, or raises the last error, at once, which
says more than a timeout would.
total is off unless you give it, and a bare number (timeout=10) sets the four
phases only.
A streamed body counts too. With stream() the clock keeps running while you read
the body, and a read that comes too late raises TotalTimeout. download() is one
call: the limit covers the whole file, including every time a broken connection is
picked up again. So leave total off for a stream that is meant to stay open, such
as a Server-Sent Events feed, or pass timeout=nextreq.Timeout(total=None) for that
request.
Retries
client = nextreq.Client(retries=3) # up to 3 retries after the first attempt
policy = nextreq.RetryPolicy(
max_attempts=5,
backoff_factor=0.5, # 0.5 s, 1 s, 2 s, 4 s ... capped at max_backoff
jitter=True, # full jitter; pass a float for partial
retry_statuses={429, 502, 503, 504},
retry_methods={"GET", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE"},
)
response = client.get("/flaky", retries=policy)
print(response.retry_count)
By default only idempotent methods are retried, on transport errors and on
429 / 502 / 503 / 504. Retry-After is honoured in both delta-seconds and HTTP-date
form (capped by max_retry_after). Retries are off unless you ask for them.
Streaming and Server-Sent Events
with client.stream("GET", "/download") as response:
for chunk in response.iter_bytes():
...
async with aclient.stream("GET", "/v1/events") as response:
async for event in response.aiter_sse():
print(event.event, event.id, event.json())
The SSE parser is implemented in Rust, follows the WHATWG event-stream rules (CRLF/LF/CR
line endings, comments, multi-line data, persistent id, retry, BOM) and yields
immutable SSEEvent(event, data, id, retry) objects.
For APIs that stream JSON Lines (NDJSON), one JSON value per line:
with client.stream("POST", "/api/generate", json=payload) as response:
for item in response.iter_json_lines(): # or model=Chunk for typed items
print(item["response"], end="")
aiter_json_lines() is the async twin. Blank lines are skipped.
WebSockets
async with aclient.websocket("wss://example.com/ws", subprotocols=["json"]) as ws:
await ws.send_json({"subscribe": "ticker"})
async for message in ws: # str or bytes; stops when the peer closes
...
with client.websocket("wss://example.com/ws", compression=True) as ws: # blocking API
ws.send_text("hello")
print(ws.receive(timeout=5), ws.compressed)
send_text / send_bytes / send_json, receive / receive_text / receive_bytes /
receive_json (optionally with timeout=), ping and close(code, reason) are
available on both; a closed connection raises WebSocketDisconnect(code, reason).
With the blocking API one thread can wait in receive() while another sends.
Connections use the client's TLS settings, default headers, cookies and proxies
(http:// and https:// proxies via CONNECT, socks5://, and the proxy environment
variables including NO_PROXY). compression=True offers permessage-deflate
(RFC 7692); ws.compressed tells you whether the server accepted it. Pings from the
server are answered automatically.
auth= applies to the handshake, including schemes that answer a challenge:
with client.websocket("wss://example.com/ws", auth=nextreq.DigestAuth("user", "pass")) as ws:
...
When the server refuses the handshake, WebSocketError.response holds its answer:
try:
ws = client.websocket("wss://example.com/ws")
except nextreq.WebSocketError as exc:
if exc.response is not None: # None for network and protocol errors
print(exc.response.status_code, exc.response.text)
Concurrency: gather()
async with nextreq.AsyncClient(base_url="https://api.example.com") as client:
responses = await client.gather(
[f"/items/{n}" for n in range(1000)],
max_concurrency=20, # default
return_exceptions=False, # default: first failure cancels the rest
)
Results come back in input order. Items may be URLs, Request objects or
(method, url[, options]) tuples, and the full client pipeline (redirects, cookies,
retries, hooks) applies to each.
Rate limits
Stay under an API's limit instead of collecting 429 responses:
client = nextreq.AsyncClient(rate_limit=10) # 10 requests per second
client = nextreq.Client(rate_limit=nextreq.RateLimit(600, per=60, burst=5))
Requests beyond the limit wait for their turn, in order. They are spaced evenly (one
every per / rate seconds), so the limit holds over any window, not only on average;
burst lets that many leave back to back after an idle period. Every request that
reaches the server counts, including retries and redirects. One RateLimit object can
be given to several clients, sync or async, in any number of threads, and they then
share one budget. The wait is not part of the phase timeouts but does count against
Timeout(total=...): a request whose slot would come too late fails at once and
leaves the slot free. WebSocket handshakes are not counted.
Circuit breaker
Stop sending requests to a host that is down, instead of waiting for a timeout every time:
breaker = nextreq.CircuitBreaker(failures=5, reset_after=30)
client = nextreq.Client(circuit_breaker=breaker) # or circuit_breaker=True
try:
client.get("https://api.example.com/users")
except nextreq.CircuitOpen as exc:
print(exc.origin, exc.retry_after) # https://api.example.com 27.4
After five failures in a row the circuit for that host opens: requests to it raise
CircuitOpen at once, without using the network. After 30 seconds one request is let
through to try the host. If it succeeds the circuit closes; if it fails the circuit
stays open for another 30 seconds.
A failure is a connection that could not be made or broke, a timeout, or a response
with status 500, 502, 503 or 504 (statuses= changes the list). Any other response is
a success and starts the count again. Every host (scheme, name and port) has a circuit
of its own, and every request that is sent counts, retries included.
A host that fails often, but not every time, never reaches five failures in a row.
failure_rate catches it:
breaker = nextreq.CircuitBreaker(failure_rate=0.5, window=60, min_requests=20)
The circuit then also opens when half of the requests of the last 60 seconds failed, once at least 20 requests have ended in that time.
One CircuitBreaker can be given to several clients, sync or async, and they then
share what they learn. breaker.state(url) returns "closed", "open" or
"half-open", breaker.reset() closes every circuit, and on_change= is called with
(origin, state) at each change. With Cache(stale_if_error=...) a stored response
stands in for a refused request. WebSocket handshakes do not go through the breaker.
Caching
client = nextreq.Client(cache=True) # in memory
client = nextreq.Client(cache="~/.cache/myapp/http.db") # in a file, kept between runs
response = client.get("https://api.github.com/repos/python/cpython")
response = client.get("https://api.github.com/repos/python/cpython")
response.from_cache # True
The cache follows the HTTP caching rules (RFC 9111), the way a browser does, so it needs no configuration per endpoint:
- A response is reused for as long as its
Cache-Control: max-ageorExpiressays. - After that, it is checked with the server (
If-None-Matchwith itsETag, orIf-Modified-Since). A304 Not Modifiedanswer carries no body, and some APIs (GitHub's, for one) do not count it against the rate limit. Varykeeps one copy per variation, andno-storeis never kept. Responses are also kept apart byAuthorization, so clients with different credentials can share one cache.POST,PUT,PATCHandDELETEremove what is stored for their URL.
Per request, headers={"Cache-Control": "no-cache"} checks with the server first and
"no-store" leaves the cache out. For APIs that send no caching headers, and for
servers that go down, Cache has two options:
cache = nextreq.Cache(
"http.db",
default_ttl=300, # reuse responses that state no lifetime for 5 minutes
stale_if_error=3600, # server down or answering 5xx: the last good answer, up to 1 h stale
)
client = nextreq.AsyncClient(cache=cache)
cache.hits, cache.revalidations, cache.misses
The stored answer is used only after the request's retries have failed.
Two things keep a busy program from asking the server more often than it has to:
- Identical requests share one fetch. When several threads or tasks ask for the
same URL at the same moment, the first request goes to the server and the others
wait for its answer (
response.from_cacheisTruefor them, andcache.sharedcounts them). Requests share only if they have the same credentials and cookies, and only a response that may be stored is shared.Cache(coalesce=False)turns this off. stale-while-revalidate. A response that saysCache-Control: max-age=60, stale-while-revalidate=300is returned at once for five more minutes after its lifetime, while the client checks it with the server in the background, so the next request finds a current one.Cache(stale_while_revalidate=300)does the same for responses that do not carry the directive, andstale_while_revalidate=Falseswitches it off. The check runs in a thread (Client) or a task (AsyncClient); if it fails, nothing changes and the next request starts another.
Only GET and HEAD responses are stored, up to max_size (100 MiB; the least
recently used go first). One Cache can serve several clients, sync and async, and a
cache file can be shared between processes. The file holds URLs, response headers and
bodies; request headers (credentials, cookies) and Set-Cookie are not written to it.
Pagination
for page in client.paginate("/repos/python/cpython/issues", params={"per_page": 100}):
for issue in page.json():
...
By default paginate() follows the rel="next" link of the Link header, as used by
GitHub, GitLab and many others, and yields one response per page. Pages are fetched
only as you iterate. For other schemes, next_page takes a page and returns where the
next one is:
def next_page(page):
cursor = page.json().get("next_cursor")
return {"cursor": cursor} if cursor else None # query parameters to change
async for page in aclient.paginate("/v1/events", next_page=next_page, max_pages=50):
...
next_page may return a URL, a mapping of query parameters, a Request (for example
when the cursor goes in a JSON body) or None at the end. Headers, auth and the other
options are sent with every page. response.links gives the parsed Link header on
any response: response.links["next"]["url"].
Downloads
path = client.download("https://example.com/big.iso", "big.iso", resume=True, retries=3)
The body is streamed to big.iso.part and renamed when it is complete, so big.iso
never holds half a file, and an error status writes nothing.
retriesalso covers a connection that breaks in the middle of the body: the rest is requested withRangeand appended.resume=Truecontinues a.partfile left by an earlier run of your program.- Both send
If-Rangewith theETag(orLast-Modified) of the first answer. If the file changed on the server, or the server cannot do ranges, the download starts again, so two versions are never mixed. Without such a header there is nothing to check against, and the download also starts again. on_progress(bytes_on_disk, total_or_None)reports progress.timeout=nextreq.Timeout(total=600)gives the whole download ten minutes.
await aclient.download(...) writes the file in a worker thread, and
nextreq.download(url, path) needs no client.
Testing without a network
import re, nextreq
mock = nextreq.MockTransport()
mock.get("https://api.example.com/users/1").respond(json={"id": 1, "name": "Ada"})
mock.post(re.compile(r"/users$"), json={"name": "Bo"}).respond(201)
mock.get("/flaky").sequence(nextreq.Response(503), nextreq.Response(200, text="ok"))
mock.get("/events").respond(sse=["one", {"n": 2}])
with nextreq.Client(transport=mock, retries=1) as client:
assert client.get("https://api.example.com/users/1", model=User).name == "Ada"
mock.assert_all_called() # also: assert_called_once(), .calls, .last_request
Call your own application in-process, through the real client pipeline:
async with nextreq.AsyncClient(app=fastapi_app) as client: # ASGI 3.0
assert (await client.get("/health")).status_code == 200
async with client.stream("GET", "/events") as response: # streamed as the app sends it
async for event in response.aiter_sse():
...
with nextreq.Client(app=flask_app) as client: # WSGI
assert client.get("/health").json() == {"ok": True}
Bodies are streamed in both directions, with backpressure. Streaming and SSE endpoints
can be tested chunk by chunk, closing a response early is seen by the application as a
client disconnect, and a streamed upload reaches the application piece by piece (one
http.request message per chunk for ASGI, wsgi.input for WSGI). ASGI lifespan events
run too: startup before the first request, shutdown when the client is closed
(ASGITransport(app, lifespan=False) turns that off), and lifespan state is available
to the handlers.
A WSGI application can also be driven from AsyncClient
(AsyncClient(transport=nextreq.WSGITransport(flask_app))): it runs in a worker thread
of its own for as long as the response is open. MockTransport reads a streamed upload
into request.content, so matchers and handlers can look at it.
Record and replay
Test against a real API without calling it on every run. The first run sends the requests and writes the exchanges to a JSON file; later runs answer from the file.
with nextreq.Cassette("tests/cassettes/sync_users.json"):
sync_users() # your code, with its own clients, unchanged
client = nextreq.Client(cassette="tests/cassettes/users.json") # or for one client
- Commit the file with the tests. A request that is not in it raises
CassetteMiss, which fails the test like an assertion, so nothing reaches the network by accident. - Every exchange is recorded on its own, so a replay runs redirects, cookies, auth and retries again. It does not wait for a rate limit or between replayed retries.
Authorization, cookies and API-key headers are written asREDACTED.redact_headers=andredact_query=change what is hidden, andbefore_record=can edit or drop an exchange, for example to remove a secret from a body.- Requests match on method and URL.
match=("method", "url", "body")tells apart severalPOSTs to one URL;"path"and"query"are there for volatile URLs. mode="once"(the default) records only when the file does not exist."replay"never records (use it in CI),"record"starts the file again, and"append"records what is missing.
As a pytest fixture, with one file per test:
@pytest.fixture
def cassette(request):
with nextreq.Cassette(f"tests/cassettes/{request.node.name}.json") as tape:
yield tape
response.from_cassette tells a replayed response from a live one, and
cassette.assert_all_played() checks that everything recorded was asked for.
Hooks, timings and OpenTelemetry
def log(response: nextreq.Response) -> None:
t = response.elapsed # a timedelta with per-phase attributes, in seconds
print(response.status_code, response.url, t.total, t.connect, t.ttfb, t.download)
client = nextreq.Client(on_request=sign_request, on_response=log, on_error=report)
Hooks may be plain functions, or coroutine functions on AsyncClient.
To reproduce a request outside your program, or to put it in a bug report, print it
as a curl command:
print(response.request.to_curl())
# curl -X POST 'https://api.example.com/items' -H 'content-type: application/json' -H 'authorization: REDACTED' --data-raw '{"name":"x"}'
Credentials and cookies are replaced with REDACTED; to_curl(redact=False) gives
the command as it was sent.
For tracing:
from nextreq.otel import instrument
client = instrument(nextreq.Client()) # client spans + W3C traceparent injection
opentelemetry-api is only needed if you call instrument; nextreq.otel.traceparent_hook
propagates trace context with no dependency at all.
Errors
NextReqError
├── TransportError
│ ├── TimeoutException → ConnectTimeout, ReadTimeout, WriteTimeout, PoolTimeout,
│ │ TotalTimeout
│ ├── NetworkError → ConnectError, ReadError, WriteError
│ ├── ProxyError, ProtocolError, UnsupportedProtocol, DecodingError, TooManyRedirects
│ ├── CircuitOpen (a CircuitBreaker refused the request; nothing was sent)
│ └── WebSocketError → WebSocketDisconnect
├── HTTPStatusError (response.raise_for_status() / raise_for_status=True)
├── OAuth2Error (the token endpoint handed out no token; has .error, .response)
├── DecodeError (typed parsing failed; has .status_code, .url, .errors)
└── InvalidURL, StreamError, ClientClosed
Benchmarks
Measured on one machine against a local Rust server, so the numbers isolate client
overhead (no internet jitter). Everything here is produced by
python benches/run_benchmarks.py; the full report, methodology, caveats and raw
data are in benches/RESULTS.md.
Apple M2 Max · CPython 3.14.6 · nextreq 0.2.0 vs requests 2.34.2, httpx 0.28.1, aiohttp 3.14.5 · 2026-11-20 23:30 UTC. "nextreq speedup" is nextreq's throughput divided by that library's.
1. Sequential sync GETs - 500 GET requests for a small JSON document, one after another, over a single keep-alive connection.
| Library | Requests/sec | nextreq speedup | p50 (ms) | p95 (ms) | p99 (ms) | Peak RSS (MB) |
|---|---|---|---|---|---|---|
| nextreq | 22,174 | baseline | 0.044 | 0.055 | 0.064 | 43.5 |
| aiohttp (awaited sequentially) | 12,695 | 1.75× | 0.078 | 0.089 | 0.094 | 52.4 |
| httpx | 5,116 | 4.33× | 0.189 | 0.219 | 0.400 | 66.8 |
| requests | 2,812 | 7.89× | 0.355 | 0.375 | 0.396 | 48.9 |
2. High-concurrency async fan-out - 1000 GET requests with at most 50 in flight.
| Library | Requests/sec | nextreq speedup | p50 (ms) | p95 (ms) | p99 (ms) | Peak RSS (MB) |
|---|---|---|---|---|---|---|
| nextreq (client.gather) | 79,980 | — | 0.221 | 0.417 | 0.481 | 49.7 |
| nextreq (asyncio.gather + Semaphore) | 61,049 | baseline | 0.523 | 1.00 | 1.25 | 50.6 |
| aiohttp | 24,549 | 2.49× | 1.21 | 1.89 | 2.23 | 54.3 |
| requests (thread pool) | 3,279 | 18.62× | 13.7 | 26.3 | 33.4 | 53.6 |
| httpx | 605 | 100.84× | 58.1 | 220 | 334 | 72.2 |
3. Typed JSON deserialization - 500 GET requests for a ~1.3 kB JSON document, each validated into a Pydantic v2 model (nested models, a list of 10 sub-objects, a datetime).
| Library | Requests/sec | nextreq speedup | p50 (ms) | p95 (ms) | p99 (ms) | Peak RSS (MB) |
|---|---|---|---|---|---|---|
| nextreq | 16,509 | baseline | 0.059 | 0.071 | 0.078 | 54.7 |
| aiohttp (awaited sequentially) | 9,576 | 1.72× | 0.104 | 0.114 | 0.123 | 62.8 |
| httpx | 4,043 | 4.08× | 0.244 | 0.263 | 0.447 | 76.1 |
| requests | 2,614 | 6.32× | 0.380 | 0.403 | 0.428 | 60.5 |
4. SSE streaming throughput - A stream of 10000 Server-Sent Events, consumed into event objects (event, data, id, retry).
| Library | Events/sec | nextreq speedup | Time per stream (ms) | Peak RSS (MB) |
|---|---|---|---|---|
| nextreq | 2,963,915 | baseline | 3.37 | 44.0 |
| requests + hand-written parser | 898,610 | 3.30× | 11.1 | 48.9 |
| httpx + hand-written parser | 825,545 | 3.59× | 12.1 | 67.0 |
| aiohttp + hand-written parser | 196,637 | 15.07× | 50.9 | 52.7 |
5. Large payload downloads (bonus) - 100 sequential GET requests, each downloading a 1 MiB body.
| Library | Requests/sec | nextreq speedup | p50 (ms) | p95 (ms) | p99 (ms) | Peak RSS (MB) |
|---|---|---|---|---|---|---|
| nextreq | 5,478 | baseline | 0.178 | 0.219 | 0.235 | 50.5 |
| aiohttp (awaited sequentially) | 4,723 | 1.16× | 0.209 | 0.231 | 0.246 | 54.4 |
| httpx | 1,742 | 3.14× | 0.571 | 0.623 | 0.818 | 136.9 |
| requests | 1,273 | 4.30× | 0.787 | 0.825 | 0.863 | 52.0 |
Takeaways
- Sequential sync GETs: nextreq handles 22,174 req/s at a p50 of 0.044 ms - 7.9× requests, 4.3× httpx, 1.7× aiohttp.
- Async fan-out: with the same
asyncio.gather+Semaphoreharness nextreq reaches 61,049 req/s - 2.5× aiohttp, 100.8× httpx, 18.6× requests. The built-inclient.gather()reaches 79,980 req/s (1.31× the asyncio.gather harness, 3.3× aiohttp). - Typed JSON:
client.get(url, model=User)(bytes validated straight into the model by pydantic-core) is 6.3× requests, 4.1× httpx, 1.7× aiohttp doingUser.model_validate(response.json()). - SSE: the Rust parser delivers 2,963,915 events/s as ready-made
SSEEventobjects - 3.3× requests, 3.6× httpx, 15.1× aiohttp with a hand-written Python parser. - Large downloads: for 1 MiB bodies, where memory copies rather than per-request overhead dominate, nextreq is 4.3× requests, 3.1× httpx, 1.2× aiohttp.
- Memory: nextreq's peak RSS stays between 44 and 55 MB across scenarios (interpreter included); see each table for the per-library comparison.
Reproduce with maturin develop --release && python benches/run_benchmarks.py.
Loopback benchmarks flatter fast clients: against a real network the round trip
dominates and the gaps narrow. What stays is the lower CPU cost per request.
How it compares
| nextreq | requests | httpx | aiohttp | |
|---|---|---|---|---|
| Sync API | ✅ | ✅ | ✅ | — |
| Async API | ✅ | — | ✅ | ✅ |
| HTTP/2 | ✅ default | — | ✅ opt-in extra | — |
| HTTP/3 | opt-in build | — | — | — |
| Timeouts by default | ✅ 5/30/30/10 s | — none | ✅ 5 s | ✅ 300 s total |
| One time limit for a whole call | ✅ Timeout(total=) |
— | — | ✅ total |
Built-in retries + Retry-After |
✅ | via urllib3 adapter | connect only | — |
Typed responses (model=) |
✅ | — | — | — |
| Fully typed API + stubs | ✅ | third-party stubs | ✅ | ✅ |
| Server-Sent Events | ✅ built in | — | extra package | extra package |
| WebSockets | ✅ sync + async | — | extra package | ✅ async |
Bounded-concurrency gather() |
✅ | — | — | — |
| Client-side rate limiting | ✅ | — | — | — |
| Circuit breaker | ✅ | extra package | extra package | extra package |
| HTTP caching (RFC 9111) | ✅ memory or file | extra package | extra package | extra package |
| Pagination | ✅ paginate() |
links only |
links only |
links only |
| Resumable downloads to a file | ✅ | — | — | — |
| Unix domain sockets | ✅ | extra package | ✅ | ✅ |
| Mock transport built in | ✅ | extra package | ✅ basic | extra package |
| Record and replay real traffic | ✅ | extra package | extra package | extra package |
| In-process ASGI / WSGI | ✅ / ✅ | — | ✅ / ✅ | — |
| Per-phase timings | ✅ | total only | total only | via tracing hooks |
| OpenTelemetry hooks | ✅ built in | separate instrumentation | separate instrumentation | separate instrumentation |
| gzip / deflate / br / zstd | ✅ all built in | gzip, deflate (+extras) | gzip, deflate (+extras) | gzip, deflate (+extras) |
| Runtime dependencies | none | 4 | 4+ | 6+ |
| Engine | Rust (Tokio, hyper, rustls) | Python (urllib3) | Python (httpcore, h11) | Python + C parser |
The same task, side by side
Fetch 100 items concurrently (at most 20 at a time), retry transient failures, and parse each into a model.
# nextreq
async with nextreq.AsyncClient(base_url=API, retries=3) as client:
responses = await client.gather([f"/items/{n}" for n in range(100)], max_concurrency=20)
items = [r.json(model=Item) for r in responses]
# httpx (+ tenacity for status retries)
transport = httpx.AsyncHTTPTransport(retries=3) # connection errors only
async with httpx.AsyncClient(base_url=API, transport=transport) as client:
semaphore = asyncio.Semaphore(20)
@tenacity.retry(stop=tenacity.stop_after_attempt(4), wait=tenacity.wait_exponential(0.5))
async def fetch(n):
async with semaphore:
response = await client.get(f"/items/{n}")
response.raise_for_status()
return Item.model_validate(response.json())
items = await asyncio.gather(*(fetch(n) for n in range(100)))
# requests (threads + urllib3 Retry)
session = requests.Session()
retry = Retry(total=3, backoff_factor=0.5, status_forcelist=[429, 502, 503, 504])
session.mount("https://", HTTPAdapter(max_retries=retry, pool_maxsize=20))
def fetch(n):
response = session.get(f"{API}/items/{n}", timeout=(5, 30)) # no timeout by default!
response.raise_for_status()
return Item.model_validate(response.json())
with ThreadPoolExecutor(max_workers=20) as pool:
items = list(pool.map(fetch, range(100)))
Migrating
| requests / httpx | nextreq |
|---|---|
requests.get(url, timeout=(5, 30)) |
nextreq.get(url) - those are the defaults |
requests.Session() / httpx.Client() |
nextreq.Client() |
httpx.AsyncClient() / aiohttp.ClientSession() |
nextreq.AsyncClient() |
r.status_code, r.headers, r.text, r.content, r.json(), r.ok, r.elapsed |
identical |
r.raise_for_status() |
identical (returns the response, so it chains) |
allow_redirects=False (requests) |
follow_redirects=False |
httpx.Client(follow_redirects=True) |
default in nextreq |
proxies={"https": url} (requests) |
proxy=url or proxy={"https://": url} |
verify="ca.pem", cert=("c.pem", "k.pem") |
identical |
HTTPAdapter(max_retries=Retry(...)) |
retries=3 or retries=RetryPolicy(...) |
r.links["next"]["url"] |
identical (URLs are made absolute); or client.paginate(url) |
aiolimiter / ratelimit around each call |
rate_limit=10 |
httpx.HTTPTransport(uds=path) / aiohttp.UnixConnector(path) |
nextreq.Client(uds=path) |
httpx.MockTransport(handler) / responses / respx |
nextreq.MockTransport() |
httpx.ASGITransport(app=app) |
nextreq.AsyncClient(app=app) |
requests.exceptions.ConnectionError, Timeout |
nextreq.ConnectError (also builtin ConnectionError), nextreq.TimeoutException (also builtin TimeoutError) |
Architecture
your code
│
┌────────────▼─────────────────────────────────────────────┐
│ python/nextreq Client · AsyncClient · gather() │ HTTP semantics:
│ redirects · cookies · auth · retries │ identical for real
│ cache · hooks · typed parsing · otel │ and mocked transports
└───────┬───────────────────────────┬──────────────────────┘
│ Rust transport │ MockTransport · ASGI · WSGI
┌───────▼──────────────────────────────────────────────────┐
│ _nextreq (PyO3) │ bytes on the wire,
│ HttpClient reqwest + hyper (HTTP/1.1, HTTP/2) │ GIL released
│ Timeout / RetryPolicy / TLS (rustls, native + webpki) │
│ SSEParser · SSEEvent · WebSocket (yawc, deflate) │
│ shared multi-threaded Tokio runtime │
└──────────────────────────────────────────────────────────┘
- Sync calls park the calling thread in
Runtime::block_onwith the interpreter detached, waking every 100 ms only to let Python deliver signals (Ctrl-C works). - Async calls run on the Tokio runtime. Finished requests, stream reads and
WebSocket operations are queued without touching the interpreter and delivered to
asyncio in batches by a single
call_soon_threadsafe, so I/O threads never fight the event loop for the GIL. - Uploads flow through a small bounded queue: the sync client pulls the next chunk from your iterator on the calling thread, the async client from the event loop (files: from a worker thread), and only when the connection has taken the previous ones.
- Timeouts are enforced per request in Rust: pool (semaphore), connect (a connector layer covering DNS + TCP + TLS), write (upload progress) and read (headers, then each body chunk). The total timeout is counted in Python, which passes what is left of it with each request; Rust then drops the request when that runs out.
- Free-threading: the extension declares itself safe without the GIL; every exposed class is frozen and guards its state with Rust synchronisation. Wheels target abi3 (CPython 3.10+) and, from 3.15, abi3t (PEP 803).
- Forking: the runtime's threads do not survive
os.fork(), so nextreq starts a new runtime and new connection pools in the child. Clients created before the fork (gunicorn--preload,multiprocessing) keep working there.
Limitations
Known gaps, in rough priority order:
- HTTP/3 is opt-in and requires a custom build
(
RUSTFLAGS="--cfg reqwest_unstable" maturin build --features http3), because the underlying support is still marked unstable upstream. The published wheels do not include it, and it is only compile-checked here, not tested against a server. - OAuth 2.0 covers the client credentials grant only. There is no authorization
code flow and no refresh-token grant. A cassette that records through
OAuth2ClientCredentialswrites the token response, access token included, into its file. - No NTLM, Negotiate or Kerberos auth. Write an
auth_flowfor a scheme that is not built in. max_connectionscounts connections in use, not idle ones. With one host the socket count stays at the limit; idle keep-alive connections to other hosts come on top until they expire (keepalive_expiry,max_keepalive_connections).- After
fork(), responses and WebSockets that were open in the parent cannot be used in the child, and forking while another thread is in the middle of a request is not supported (CPython itself warns about forking a multi-threaded process). - The total timeout does not interrupt a custom transport (
MockTransport,app=): the time is checked before each exchange and between the pieces of a streamed body, not during them. WebSocket handshakes are bounded byconnectandreadonly. - The circuit breaker's state lives in the process: it is not shared between worker processes and starts closed after a restart.
- The Public Suffix List is compiled in, so it is as fresh as the release.
- Cassettes record HTTP exchanges only, not WebSockets. While recording, a streamed response is read to its end before it is handed out, so an endless stream (a live SSE feed) cannot be recorded. Response bodies are written as they are.
- The cache stores complete bodies only. A response read with
stream()is served from the cache if it is there, but is not put there, and other requests do not wait for it. Requests share a fetch within one process: two processes that use the same cache file each ask the server. - Unix domain sockets are not available on Windows;
uds=raisesUnsupportedProtocolthere.
Development
cargo fmt --check && cargo clippy -- -D warnings && cargo test
maturin develop --release
ruff check python tests benches
mypy --strict python/nextreq tests/test_typing.py
pytest -v
python benches/run_benchmarks.py
See CONTRIBUTING.md for the project layout and conventions, and SECURITY.md for the security policy.
License
Licensed under either of Apache License 2.0 or MIT license at your option.
Metadata
Release files for nextreq 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nextreq-0.9.0.tar.gz | 362.5 kB | With provenance | Details for nextreq-0.9.0.tar.gz |
Built distributions (wheels)
Total release size: 29.9 MB
Release files / nextreq-0.9.0.tar.gz
| Download URL | nextreq-0.9.0.tar.gz |
|---|---|
| Size | 362.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c434fe7f1aa06ed74c5480a0d006d0b42480f251a9f7ee8adbdfb4c54542e16
|
|
BLAKE2b-256 checksum How to use checksums |
456cb2f44bed6008c067f119fe8b2d165dfa8724b75c1a1b4007dee383038f15
|
| 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 29, 2026.
Transparency logRelease files / nextreq-0.9.0-cp314-cp314t-manylinux_2_28_x86_64.whl
| Download URL | nextreq-0.9.0-cp314-cp314t-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
693be1de44a37d436f21f0ce90aa5d5de52ea732272a397aacb7bfb3de6e3a82
|
|
BLAKE2b-256 checksum How to use checksums |
21909d979cdaf8670191c152fb3d9cb3fec39703a606646a99d66bfc5bda9801
|
| 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 29, 2026.
Transparency logRelease files / nextreq-0.9.0-cp314-cp314t-macosx_11_0_arm64.whl
| Download URL | nextreq-0.9.0-cp314-cp314t-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
98575b99c7a21fb3a46f9ef0148a3ecb8fc0c310a0eb5872e8bbe59b7af8f04d
|
|
BLAKE2b-256 checksum How to use checksums |
44291ee0196333aeead6779a06299aa1453faed846ffc80d30fb9363f64f2206
|
| 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 29, 2026.
Transparency logRelease files / nextreq-0.9.0-cp310-abi3-win_amd64.whl
| Download URL | nextreq-0.9.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
1422866df2eab082f4784b6f0b6b439ea2cc12ef475e88a7296e18ff7ce72071
|
|
BLAKE2b-256 checksum How to use checksums |
29bb09f0d1d993cae6d8d52d27a1e6a9578a41832a46dfdf6941855160322cba
|
| 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 29, 2026.
Transparency logRelease files / nextreq-0.9.0-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | nextreq-0.9.0-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7a8180c4b0b9bb83537b1e8152fa9c7daac9956aef35dc8fa64518daeff96d58
|
|
BLAKE2b-256 checksum How to use checksums |
09b0747dba7916f72272a2e5e7c6b6fa46f0d075a3277a7061671192d79124a8
|
| 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 29, 2026.
Transparency logRelease files / nextreq-0.9.0-cp310-abi3-musllinux_1_2_aarch64.whl
| Download URL | nextreq-0.9.0-cp310-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
5f2554bb3bdc80ba33423520e1ccea25999f50342e5b5e581da158caaff0ee35
|
|
BLAKE2b-256 checksum How to use checksums |
0a81dd79518dd614bd150cc95a82607cd0e09c2d68d2e66efacfc787d2dd17cd
|
| 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 29, 2026.
Transparency logRelease files / nextreq-0.9.0-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | nextreq-0.9.0-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c363bcbf802fe62e6be432c5b6ff3151602ec7bf14719a2d83c9e9f1e4fc8ae8
|
|
BLAKE2b-256 checksum How to use checksums |
181c247a736d09effa286d127fb707162ff36f0c72ef07fece3e8a202782ae06
|
| 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 29, 2026.
Transparency logRelease files / nextreq-0.9.0-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | nextreq-0.9.0-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
96ea589a577e00650e7c5b226742032b6979cb0488fc8b1767300f2fb060184b
|
|
BLAKE2b-256 checksum How to use checksums |
984f7f8747eacdd1a1cee400d3c2b10bb81f4743de9b88a6b5b910ea1575baa2
|
| 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 29, 2026.
Transparency logRelease files / nextreq-0.9.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | nextreq-0.9.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
81e5147cc05fe75766c4a2a5d6786d849b6746844f2bd7d114cc220955fa2891
|
|
BLAKE2b-256 checksum How to use checksums |
91dcbea9759665e4378577947b9e3a328eb5a369306976112b3249b199eaab02
|
| 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 29, 2026.
Transparency logRelease files / nextreq-0.9.0-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | nextreq-0.9.0-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
04f55303e79758d64487ea8f108a67fd7ac38880c2042e3c8738ef46fdd5b51f
|
|
BLAKE2b-256 checksum How to use checksums |
0eec02284002e34de8bf3c632cb81a845adaba8ed20c01b963095630da67144c
|
| 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 29, 2026.
Transparency logSecurity for nextreq 0.9.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
All 10 files in this release have been uploaded with provenance metadata.
Attestation for nextreq-0.9.0.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 Nov 29, 2026.
Transparency logA 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.