Skip to main content

Httpx, but made easy

The easiest way to interact with the httpx library.

Functionality

Simplify the way we have to interact with external urls and make requests (POST, GET, etc.).

Usage

Using this library is as simple and intuitive as doing this:

# Create an instance within this context
async with HttpClient() as http_client:
    # Make a no-stream GET request
    response = await http_client.get.complete(
        url = url
    )

or this:

# Create a client instance within a context
async with HttpClient() as http_client:
    # Make a stream GET request
    async with await http_client.get.stream(
        url = url
    ) as response:
        # Do whatever you need with the response
        chunks_count = 0
        bytes = b""
        # Iterate over the bytes asynchronously
        async for chunk in response.aiter_bytes(
            chunk_size = chunk_size
        ):
            bytes += chunk
            chunks_count += 1

The resources are closed and freed once you are done. Easy.

She the tests to know more about how to use it.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpx_easy-0.0.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

httpx_easy-0.0.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file httpx_easy-0.0.1.tar.gz.

File metadata

  • Download URL: httpx_easy-0.0.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.9.0 Windows/10

File hashes

Hashes for httpx_easy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cf704b58cd4b352c9ae07363be434f8b5407e88511b43452aa95d665bf0a4fea
MD5 e70828aadfd625bd6b1cc686ffcd5429
BLAKE2b-256 df39fd1c69499548739f57f8c77010a6a94e6cf0489f224dbfea01791bd37bc3

See more details on using hashes here.

File details

Details for the file httpx_easy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: httpx_easy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.9.0 Windows/10

File hashes

Hashes for httpx_easy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 243638709a122742f8b3d445be5b2b1eaf08e3984bb5a9e77b11beb5aeaf39af
MD5 804f2557e86de7430478705de3a3874a
BLAKE2b-256 3cdb0c847faa2af24780a0f2c3bdca249de9fc1798c22b2a77534d48590918df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page