Fast and simple HTTP client library with async support and beautiful logging
Project description
Features
- Simple API - Minimal boilerplate with decorators
- Beautiful Logging - Colorful request/response logs with timing
- Async Support - Built on aiohttp for high performance
- Type Safe - Full type annotations
- All HTTP Methods - GET, POST, PUT, PATCH, DELETE
Quick Start
Installation
pip install fasthttp-client
Basic Usage
from fasthttp import FastHTTP
from fasthttp.response import Response
app = FastHTTP()
@app.get(url="https://httpbin.org/get")
async def get_data(resp: Response):
return resp.json()
if __name__ == "__main__":
app.run()
Output:
16:09:18.955 │ INFO │ fasthttp │ ✔ FastHTTP started
16:09:19.519 │ INFO │ fasthttp │ ✔ ← GET https://httpbin.org/get [200] 458.26ms
16:09:20.037 │ INFO │ fasthttp │ ✔ Done in 1.08s
Documentation
- Documentation - Complete guide
- Quick Start - Get started in 2 minutes
- API Reference - Full API documentation
- Examples - Real-world examples
- Configuration - Advanced settings
License
MIT License - see LICENSE file for details.
Contributing
See CONTRIBUTING.md for contribution guidelines.
Security
See SECURITY.md for security policies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fasthttp_client-0.1.2.tar.gz
(239.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fasthttp_client-0.1.2.tar.gz.
File metadata
- Download URL: fasthttp_client-0.1.2.tar.gz
- Upload date:
- Size: 239.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f213eaf3630762f81cda792be60ac3f63609d743f15ebb1b6ed0e0e0c93171e2
|
|
| MD5 |
a5f21dbe44f2b51b2c3383751b2462af
|
|
| BLAKE2b-256 |
9d589064d6a8bef403df3451832c3f297759a3656c89fe76dc66cf955dccc969
|
File details
Details for the file fasthttp_client-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fasthttp_client-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb600496bb4950dcb2433ada3f779c3fd8fd4de309ff0a15e469e89e4eb81199
|
|
| MD5 |
2bcc5032eaab915c7f890a2c2946e6ce
|
|
| BLAKE2b-256 |
70a145a2f4fe26eae4b0b8333c47e6968114d5cce491690ad64e50215cf0b15c
|