Metadata-Version: 2.4
Name: sf-th-requests
Version: 0.1.0
Summary: A simple, clean library for making HTTP requests — no dependencies needed.
Project-URL: Homepage, https://github.com/yourusername/easyrequests
License: MIT
Keywords: api,http,requests,web
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# easyrequests

A simple, lightweight Python library for making HTTP requests — with zero external dependencies.

## Installation

```bash
pip install easyrequests
```

## Usage

```python
import easyrequests

# GET request
response = easyrequests.get("https://api.example.com/users")
print(response.status)       # 200
print(response.text)         # raw text body
print(response.json())       # parsed JSON

# GET with query params
response = easyrequests.get("https://api.example.com/search", params={"q": "python"})

# POST with JSON body
response = easyrequests.post("https://api.example.com/users", json={"name": "Alice"})

# Custom headers
response = easyrequests.get(
    "https://api.example.com/private",
    headers={"Authorization": "Bearer YOUR_TOKEN"}
)

# PUT, PATCH, DELETE
easyrequests.put("https://api.example.com/users/1", json={"name": "Bob"})
easyrequests.patch("https://api.example.com/users/1", json={"name": "Charlie"})
easyrequests.delete("https://api.example.com/users/1")
```

## Response Object

| Property / Method | Description                        |
|-------------------|------------------------------------|
| `.status`         | HTTP status code (e.g. `200`)      |
| `.text`           | Response body as a string          |
| `.content`        | Response body as raw bytes         |
| `.json()`         | Parse response body as JSON        |
| `.headers`        | Response headers as a dict         |
| `.url`            | Final URL after any redirects      |

## License

MIT
