On this page
requ
Prev: builtouts | Up: projects | Next: sametime
Rel: wispsy, Foundation, apiconn
Ref: wispsy on GitHub
Tags: #public #wispsy #project #foundation #tier/core
Role
Explicit, bounded HTTP(S) requests with client-owned connection pooling, AsyncClient, and a Requests-style frontend (requ.get/post/Session)—built on Python 3.14+'s standard library with zero runtime dependencies.
Install
pip install requ
Quickstart
from requ import Client
with Client(timeout=10, max_bytes=2_000_000, max_connections=4) as client:
response = client.post("https://api.example.com/users", json={"name": "Ash"})
response.raise_for_status()
user = response.json()
When to Reach for It
- Making bounded HTTP(S) calls with verified TLS, explicit byte/connection limits, and no third-party HTTP stack.
- Reach for apiconn when you want structured API connection definitions layered on top of
requ.
Gotchas & Pitfalls
- Explicit byte and connection bounds:
ClientandAsyncClientenforcemax_bytes,timeout, andmax_connections—large file downloads will raise a bound error unless you raisemax_bytesor stream intentionally. - Always close clients: Use
with Client(...) as client:(orasync with AsyncClient(...)) so pooled stdlib sockets are released deterministically. - No implicit redirect/cookie magic: Designed as an explicit Python
>=3.14transport; for reusable REST/GraphQL operation clients, layer apiconn on top.
Pairs With
- apiconn — Explicit API connection definitions over
requ. - astree — Parses HTML trees from retrieved pages.
- sametime — Runs independent
requfetches concurrently with bounded threads.
Metadata
type: project-card
slug: requ
org: wispsy
repo: wispsy/requ
package: requ
version: 0.2.0
requires_python: ">=3.14"
layer: foundation
topic: wispsy-foundation
status: active
language: python
source_docs: README.md, docs/
Linked from
Related notes
- wiki/projects/astree Linked here; links to this page; shared tags: #foundation, #project, #tier, #wispsy
- wiki/projects/builtouts Linked here; links to this page; shared tags: #foundation, #project, #tier, #wispsy
- wiki/projects/sametime Linked here; links to this page; shared tags: #foundation, #project, #tier, #wispsy
- wiki/projects/apiconn Linked here; links to this page; shared tags: #project, #tier, #wispsy
- wiki/stack/foundation Linked here; links to this page; shared tags: #foundation, #tier, #wispsy
- wiki/projects Linked here; links to this page; shared tags: #wispsy
- wiki/projects/prettynb links to this page; shared tags: #project, #tier, #wispsy
- wiki/choosing links to this page; shared tags: #tier, #wispsy
- wiki/compatibility links to this page; shared tags: #tier, #wispsy
- wiki/orgs/wispsy Linked here; shared tags: #tier, #wispsy