Skip to main content

nextreq

A next-generation, Rust-powered, batteries-included HTTP client for Python.

PyPI Python versions CI Downloads License Rust core Typing Ruff

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 more than 8× requests for sequential calls and 2.5× aiohttp for async fan-out (3.2× with the built-in gather()). Benchmarks
  • Sync and async, one API. Client and AsyncClient share every option and every feature, on one connection pool implementation.
  • Typed end to end. client.get(url, model=User) returns a User - 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 traceparent propagation.
  • 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: more than 1,000 Python tests and 47 Rust tests. CI runs them on CPython 3.10 to 3.14 on Linux, and on 3.13 on macOS and Windows. The whole suite also passes on free-threaded CPython 3.14t with the GIL off. 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 an Authorization: Basic header, and extra={"audience": ...} adds form fields for servers that need them.
  • A token endpoint that refuses raises OAuth2Error, with the server's error and error_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-age or Expires says.
  • After that, it is checked with the server (If-None-Match with its ETag, or If-Modified-Since). A 304 Not Modified answer carries no body, and some APIs (GitHub's, for one) do not count it against the rate limit.
  • Vary keeps one copy per variation, and no-store is never kept. Responses are also kept apart by Authorization, so clients with different credentials can share one cache.
  • POST, PUT, PATCH and DELETE remove 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_cache is True for them, and cache.shared counts 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 says Cache-Control: max-age=60, stale-while-revalidate=300 is 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, and stale_while_revalidate=False switches 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.

  • retries also covers a connection that breaks in the middle of the body: the rest is requested with Range and appended.
  • resume=True continues a .part file left by an earlier run of your program.
  • Both send If-Range with the ETag (or Last-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 as REDACTED. redact_headers= and redact_query= change what is hidden, and before_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 several POSTs 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.9.0 vs requests 2.34.2, httpx 0.28.1, aiohttp 3.14.5 · 2026-11-29 21:10 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 21,898 baseline 0.044 0.056 0.064 49.2
aiohttp (awaited sequentially) 12,513 1.75× 0.079 0.091 0.098 52.5
httpx 4,831 4.53× 0.200 0.242 0.412 70.2
requests 2,540 8.62× 0.382 0.465 0.599 49.0

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) 76,560 — 0.237 0.447 0.514 54.1
nextreq (asyncio.gather + Semaphore) 59,513 baseline 0.511 0.864 1.18 53.8
aiohttp 23,946 2.49× 1.24 1.93 2.24 54.5
requests (thread pool) 3,178 18.73× 14.1 28.7 36.8 54.2
httpx 615 96.84× 56.4 226 316 71.7

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,465 baseline 0.059 0.072 0.095 57.8
aiohttp (awaited sequentially) 9,304 1.77× 0.106 0.117 0.146 63.5
httpx 3,868 4.26× 0.255 0.276 0.466 76.5
requests 2,470 6.67× 0.396 0.447 0.555 60.7

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,994,386 baseline 3.34 49.7
requests + hand-written parser 886,967 3.38× 11.3 49.6
httpx + hand-written parser 827,538 3.62× 12.1 66.9
aiohttp + hand-written parser 195,567 15.31× 51.1 53.0

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,436 baseline 0.177 0.229 0.248 54.8
aiohttp (awaited sequentially) 4,425 1.23× 0.218 0.279 0.325 59.1
httpx 1,589 3.42× 0.610 0.823 1.03 153.1
requests 1,224 4.44× 0.810 0.872 0.973 52.2

Takeaways

  • Sequential sync GETs: nextreq handles 21,898 req/s at a p50 of 0.044 ms - 8.6× requests, 4.5× httpx, 1.8× aiohttp.
  • Async fan-out: with the same asyncio.gather + Semaphore harness nextreq reaches 59,513 req/s - 2.5× aiohttp, 96.8× httpx, 18.7× requests. The built-in client.gather() reaches 76,560 req/s (1.29× the asyncio.gather harness, 3.2× aiohttp).
  • Typed JSON: client.get(url, model=User) (bytes validated straight into the model by pydantic-core) is 6.7× requests, 4.3× httpx, 1.8× aiohttp doing User.model_validate(response.json()).
  • SSE: the Rust parser delivers 2,994,386 events/s as ready-made SSEEvent objects - 3.4× requests, 3.6× httpx, 15.3× 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.4× requests, 3.4× httpx, 1.2× aiohttp.
  • Memory: nextreq's peak RSS stays between 49 and 58 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_on with 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. The Python layer guards what clients share (the cookie jar, the cache, the rate limit, the circuit breaker) with locks. 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 OAuth2ClientCredentials writes the token response, access token included, into its file.
  • No NTLM, Negotiate or Kerberos auth. Write an auth_flow for a scheme that is not built in.
  • max_connections counts 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 by connect and read only.
  • 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= raises UnsupportedProtocol there.

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.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 nextreq 0.9.1
File Size Uploaded Provenance Actions
nextreq-0.9.1.tar.gz 368.4 kB With provenance Details for nextreq-0.9.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for nextreq 0.9.1
File Actions
nextreq-0.9.1-cp314-cp314t-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Details for nextreq-0.9.1-cp314-cp314t-manylinux_2_28_x86_64.whl
nextreq-0.9.1-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for nextreq-0.9.1-cp314-cp314t-macosx_11_0_arm64.whl
nextreq-0.9.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for nextreq-0.9.1-cp310-abi3-win_amd64.whl
nextreq-0.9.1-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for nextreq-0.9.1-cp310-abi3-musllinux_1_2_x86_64.whl
nextreq-0.9.1-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for nextreq-0.9.1-cp310-abi3-musllinux_1_2_aarch64.whl
nextreq-0.9.1-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for nextreq-0.9.1-cp310-abi3-manylinux_2_28_x86_64.whl
nextreq-0.9.1-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for nextreq-0.9.1-cp310-abi3-manylinux_2_28_aarch64.whl
nextreq-0.9.1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for nextreq-0.9.1-cp310-abi3-macosx_11_0_arm64.whl
nextreq-0.9.1-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for nextreq-0.9.1-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 29.9 MB

Release files / nextreq-0.9.1.tar.gz

Download URL nextreq-0.9.1.tar.gz
Size 368.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9601b795b0a89ee7317d7dbfffdd10592e281a394f9bb5de9783aeb47e8e9dd7
BLAKE2b-256 checksum
How to use checksums
e1542ab5b9e0c43be908012588e3c3163dcad70331f127a93e9c411d97a84e4c
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 30, 2026.

Transparency log

Release files / nextreq-0.9.1-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL nextreq-0.9.1-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
8ad124e7c96bcc358dc3c068c9f75215cbac31b7d25f1181ba252e5b4957808b
BLAKE2b-256 checksum
How to use checksums
56c59e317ba21dd735df89267b7d81af26fde966a59558058a20a175ea4cf2f6
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 30, 2026.

Transparency log

Release files / nextreq-0.9.1-cp314-cp314t-macosx_11_0_arm64.whl

Download URL nextreq-0.9.1-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
222a43f008225d073da01ecd8c4db434c83cffa9adea4af106e41e3ecfd429e7
BLAKE2b-256 checksum
How to use checksums
edb2e36279d221edb53d3dc9f6fe9a78492df70fe3e9d33db388af6a6bae8df1
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 30, 2026.

Transparency log

Release files / nextreq-0.9.1-cp310-abi3-win_amd64.whl

Download URL nextreq-0.9.1-cp310-abi3-win_amd64.whl
Size 3.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
570a44c9f54f9eb2ac13e4b8c6fd3fefd7ab4e5e8916b63a6547e9955c7462d0
BLAKE2b-256 checksum
How to use checksums
f45e52d2cbd5b2caa37a87d9b3adb3b95136a361c3aee2476f42259e2f4a8566
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 30, 2026.

Transparency log

Release files / nextreq-0.9.1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL nextreq-0.9.1-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
47f61293bcb00febd33db882b2f86feb1407003ccd8b0eae0036a177bf731d02
BLAKE2b-256 checksum
How to use checksums
3edab2cf12ee34b3ba3298d1981f737fa788009af5a6524ce0e2f2a730e35746
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 30, 2026.

Transparency log

Release files / nextreq-0.9.1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL nextreq-0.9.1-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
0f090967f2aa655e4550860b54bbe4726c371a84e2ba7a60e86c378bb960f401
BLAKE2b-256 checksum
How to use checksums
67550f0c3343e1c35a16777e3a4bc6e9a941ec6653af189e5c73299c09f75afa
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 30, 2026.

Transparency log

Release files / nextreq-0.9.1-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL nextreq-0.9.1-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
aeaf98528b20f2ebaae22c9ccaa841c735788bc38f34ac0ffa5bae9928f61d09
BLAKE2b-256 checksum
How to use checksums
71309c8a403f4c4fc42e5419d44e53329c1d7b7a6227726a5c9a40b6d3f2285b
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 30, 2026.

Transparency log

Release files / nextreq-0.9.1-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL nextreq-0.9.1-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
ab645101dedf441cb70ae133daedc17e3a50728be1ec06769f374f9c0bf4eaf5
BLAKE2b-256 checksum
How to use checksums
83ef409ae2aa1aea65acb32c078a9aa8d5c3272bd076ee21416aef1dac269355
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 30, 2026.

Transparency log

Release files / nextreq-0.9.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL nextreq-0.9.1-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
23a55b4cf275445eebfde862987083de753f360df69ea029c5a84a5cb2e80e2e
BLAKE2b-256 checksum
How to use checksums
d2aaeab708c82bafc725c0fed362e1ed3b82e64aa0faa902ba78526eca440192
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 30, 2026.

Transparency log

Release files / nextreq-0.9.1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL nextreq-0.9.1-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
cf3a268846dd782b2f1afe3e5c91d44b2328778c0395d2e1df0b1e514ad70900
BLAKE2b-256 checksum
How to use checksums
639fbae205de969683f2869d7ea0e60ca3d27a78c9a6051341c32f74355bd6ab
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 30, 2026.

Transparency log

Security for nextreq 0.9.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 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for nextreq-0.9.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 Nov 30, 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