Metadata-Version: 2.5
Name: standard-http
Version: 0.2.4
Summary: Async HTTP client and authentication helpers for Standard
Project-URL: Documentation, https://appunni-m.github.io/python-standard/http/
Project-URL: Repository, https://github.com/appunni-m/python-standard
Author: Standard contributors
License-Expression: MIT
License-File: LICENSE
Keywords: async,authentication,http,httpx,standard
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: httpx<1,>=0.27
Requires-Dist: standard==0.2.4
Description-Content-Type: text/markdown

# standard-http

`standard-http` adds an asynchronous HTTP client and authentication helpers to
the `standard` Python library. Install the package to use the `std.http`
import namespace:

From this repository, install the core and HTTP projects together:

```shell
python -m pip install . packages/standard-http
```

For an application, install the provider with
`python -m pip install 'standard[http]'` or install `standard-http` directly.

```python
from std.http import AuthConfig, BearerAuth, HttpClient, RetryConfig

client = HttpClient(
    base_url="https://api.example.com/v1/",
    auth_config=AuthConfig(auth=BearerAuth("your-token")),
    retries=RetryConfig(max_attempts=3),
)

async with client:
    response = await client.get("users", params={"active": "true"})
    response.raise_for_status()
    print(response.json())
```

The package also provides `BasicAuth`, `ApiKeyAuth`, `AuthBase`, `AuthConfig`,
and Pydantic response helpers such as `get_model`. See the [HTTP guide](../../docs/http.md)
for retry, timeout, token refresh, error, transport injection, and lifecycle
behavior.

The wheel contains only `std.http`; it does not bundle FastAPI, AWS, or other
integration modules.
