Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resq

Dual-mode HTTP client — one verb surface, adapter-selected engines: 'requests' for sync, 'httpx' for async.

Install: pip install resq.

from resq import Requests

with Requests("https://api.example.com", adapter="requests", timeout=5) as client:
    data = client.get("/users/42").json()

Async — same verbs, adapter="httpx", await them:

from resq import Session

async with Session("https://api.example.com", adapter="httpx", timeout=5) as client:
    data = (await client.get("/users/42")).json()

A method-level timeout turns a verb into a polling loop; r.reload() re-runs a request in place.

Full documentation: https://qarium.github.io/resq/.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages