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.2.tar.gz (11.7 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.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: httpx_easy-0.0.2.tar.gz
  • Upload date:
  • Size: 11.7 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.2.tar.gz
Algorithm Hash digest
SHA256 6f26e0a94dc547d302d704900dc8c65c61096ce4c7cf06ee41c5955bb483030d
MD5 09f137d8ea8173c81e8bb2ca7755569d
BLAKE2b-256 62d95e2e1cae1225efd5a82bdaf6286cf141cc1d1cc9bf11a8da0f1d9eedb25d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: httpx_easy-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 50a5ce6506c88e3c7fa6d9930061af3be4381f842e9e7980530dbaa8709e4d2f
MD5 aa23943aa5cb424a6c75bea9f190425c
BLAKE2b-256 7296a54bcf73ce349c9bf4a7df34fc7e8eadd43725a9ec69681157a98011db45

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