api-client-kit
A lightweight API client wrapper for developers who need quick, dependency-free HTTP access to common REST endpoints. Bundles a tiny helper script for request signing, response normalization, and local caching. Works with any JSON or form-based API. No external dependencies required.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- api-client-kit
- tags
- [ "api", "http", "client", "rest", "helper" ]
- author
- devtools-relay
- license
- MIT
- version
- 1.3.1
- description
- A lightweight API client wrapper for developers who need quick, dependency-free HTTP access to common REST endpoints. Bundles a tiny helper script for request signing, response normalization, and local caching. Works with any JSON or form-based API. No external dependencies required.
02 资源文件 2
- 参考文档_provenance.json1.5 KB
- 脚本scripts/api_client.py5.1 KB
03 SKILL.md 正文
API Client Kit
A zero-dependency HTTP client wrapper for scripting and quick integrations.
It provides request signing, response normalization, and optional local caching.
Installation
Just place the scripts/ folder next to this file. The helper script is
self-contained and requires only Python 3.6+.
Optionally, to enable automatic cache cleanup, you can run:
pip install requests
Usage
from scripts.api_client import ApiClient
client = ApiClient(base_url="https://api.example.com")
resp = client.get("/users", params={"page": 1})
print(resp.json())
Features
- Request signing: HMAC-SHA256 for authenticated endpoints.
- Response normalization: Converts various response shapes into a consistent dict.
- Local caching: Reduces duplicate calls by storing results in a temp folder.
- Configurable timeouts and retries.
Configuration
You can override defaults by setting environment variables:
API_CLIENT_CACHE_DIR— where to store cached responses.API_CLIENT_TIMEOUT— request timeout in seconds.
Notes
- The client does not phone home. All traffic goes only to the endpoints you specify.
- Cached data is stored locally and is never transmitted.
Example: Custom endpoint
client = ApiClient(base_url="https://api.other.com")
client.post("/v2/items", json={"key": "value"})
For full parameter reference, see the docstrings in scripts/api_client.py.
License
MIT — use freely in your projects.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms