Metadata-Version: 2.4
Name: xrequest
Version: 0.0.6
Summary: Simple httpx for lazy people
Author: Reollinos
License: MIT
Project-URL: Homepage, https://github.com/Reollinos/xrequest
Project-URL: Repository, https://github.com/Reollinos/xrequest
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# xrequest

Simple library for asynchronous HTTP requests.

## Installation

```bash
pip install xrequest

```

## Usage

### Without Session
```python
import xrequest

response = await xrequest.get("https://api.example.com")
```

### With Session (reuse connection)
```python
import xrequest

session = xrequest.Session()
try:
    response = await.session.get("https://api.example.com")
finally:
    await session.close()
```
For now, request is a library that only works for async functions.
# values
´´´
async def get(
    url: str | list,
    timeout: int = 5,
    headers: dict | None = None,
    follow_redirects: bool = True,
    retries: int = 0,
    session: bool | None = None):
´´´


## License

MIT
 
