All projects

01 / Python library

ARequest.

Familiar syntax. Concurrent thinking.

A familiar interface for asynchronous HTTP. Built in Python, published on PyPI.

My role
Independent library development
Technologies
Python / asyncio / HTTP / PyPI package
Status
Published

01 / Context & objective

The question behind the build.

A straightforward HTTP request is easy to express. Coordinating many requests introduces session lifetimes, connection reuse, timeouts, and failure handling.

The objective

Make asynchronous HTTP accessible through a Requests-like interface, while keeping concurrency and session control explicit.

The solution

ARequest provides async request methods and a reusable Session. Its documented implementation connects asyncio to libcurl multi, with connection pooling and HTTP/2 multiplexing.

02 / How it fits together

A view of the system.

  1. 01Python application
  2. 02Async Session
  3. 03libcurl multi / connection pool
  4. 04HTTP response
Architecture overview based on the public project documentation.

03 / Engineering considerations

The decisions that matter.

01

A reusable session

Session reuse keeps cookies and connections together. An async context manager gives that lifetime a clear boundary.

02

Explicit failure controls

Timeouts, retry backoff, Retry-After handling, and per-host limits address different failure modes. The documented default retry policy favors idempotent operations.

03

Stream when appropriate

Streaming responses let callers process data incrementally. Rate limiting and connection limits keep concurrency bounded.

The challenge

Concurrency changes both throughput and responsibility: requests can fail independently, connections need cleanup, and retries must respect the operation being repeated.

04 / A closer look

From idea to implementation.

The public repository documents the Session API, streaming, retries, connection limits, and test and benchmark workflows. The small example below shows the public async interface.

Python / Session example from the documented API
import asyncio
import arequest

async def main():
    async with arequest.Session() as session:
        response = await session.get("https://httpbin.org/get")
        print(response.status_code)

asyncio.run(main())
ARequest portfolio illustration
Original portfolio artwork. A visual introduction to the project, rather than a verified application screenshot.

05 / What the work shows

The result. The next question.

Published on PyPI and available as open source. The central engineering theme is making asynchronous work approachable without concealing resource lifetimes.

Implementation details summarized from the public README. No comparative performance result or adoption figure is claimed here. Read the project documentation (new tab) ↗

Keep exploring / Next project

ByteX