Metadata-Version: 2.4
Name: httpx-easy
Version: 0.0.2
Summary: Httpx, but made easy
License-File: LICENSE
Author: danialcala94
Author-email: danielalcalavalera@gmail.com
Requires-Python: >=3.8,<3.14
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: aiofiles (>=24.1.0,<9999.9.9)
Requires-Dist: httpx (>=0.28.1,<9999.9.9)
Requires-Dist: pystandards (>=0.0.17,<1.0.0)
Requires-Dist: python-dotenv (>=0.0.1,<9999.0.0)
Project-URL: Homepage, https://github.com/Implosiv3/httpx-easy
Project-URL: Issues, https://github.com/Implosiv3/httpx-easy/issues
Description-Content-Type: text/markdown

# 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.
