Skip to main content

Fast and simple HTTP client library with async support and beautiful logging

Project description

aiohttp ruff mypy Python License

Simple & Fast HTTP Client for Python

DocumentationQuick StartExamples

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

License

MIT License - see LICENSE file for details.

Contributing

See CONTRIBUTING.md for contribution guidelines.

Security

See SECURITY.md for security policies.

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fasthttp_client-0.1.2-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

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

Hashes for fasthttp_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f213eaf3630762f81cda792be60ac3f63609d743f15ebb1b6ed0e0e0c93171e2
MD5 a5f21dbe44f2b51b2c3383751b2462af
BLAKE2b-256 9d589064d6a8bef403df3451832c3f297759a3656c89fe76dc66cf955dccc969

See more details on using hashes here.

File details

Details for the file fasthttp_client-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fasthttp_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb600496bb4950dcb2433ada3f779c3fd8fd4de309ff0a15e469e89e4eb81199
MD5 2bcc5032eaab915c7f890a2c2946e6ce
BLAKE2b-256 70a145a2f4fe26eae4b0b8333c47e6968114d5cce491690ad64e50215cf0b15c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page