Universal HTTP API Client
Universal HTTP API client with platform-specific adapters for GitHub, GitLab, Slack, and Notion.
Features
- Multi-Platform Support: GitHub, GitLab, Slack, Notion APIs
- Smart Caching: Automatic request caching with configurable TTL
- Rate Limiting: Built-in rate limiting with platform-specific rules
- Error Handling: Comprehensive error handling with custom exceptions
- Async Support: Full async/await support for all operations
- Type Safety: Complete type annotations with mypy support
Installation
pip install yeonjae-universal-http-api-client
Quick Start
from yeonjae_universal_http_api_client import HTTPAPIClient, Platform
# GitHub API
client = HTTPAPIClient(Platform.GITHUB, "your-token")
repo = client.get_repository("owner/repo")
client.close()
# Slack API
slack_client = HTTPAPIClient(Platform.SLACK, "your-slack-token")
response = slack_client.send_message("channel", "Hello World!")
slack_client.close()
License
MIT License
Metadata
Release files for yeonjae-universal-http-api-client 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yeonjae_universal_http_api_client-1.0.5.tar.gz | 15.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yeonjae_universal_http_api_client-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.4 kB
Release files / yeonjae_universal_http_api_client-1.0.5.tar.gz
| Download URL | yeonjae_universal_http_api_client-1.0.5.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
232649c49ea147324624bfb316f9faedb62f109062a34b44deeeaafd3adc8d82
|
|
BLAKE2b-256 checksum How to use checksums |
6827be46acfb6f971f5d83fda46b8ce684d0fa2ad62c553e19ef0c0be32f8ca6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / yeonjae_universal_http_api_client-1.0.5-py3-none-any.whl
| Download URL | yeonjae_universal_http_api_client-1.0.5-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebfe2ba0b82ba8e5842bd8534ef100027277d48350fc802bf01e1df83996cbb8
|
|
BLAKE2b-256 checksum How to use checksums |
0cc85efc21121cde61d4da08f96a4a04b803209bbde1a0d555c34f8f88b5121b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|