Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
unihttp, api-client, sdk-generation, http-client, typed-client, code-generation
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
unihttp is a modern library for creating declarative API clients.
httpx, httpx2, aiohttp, requests, niquests, zapros and the standard library urllib.pip install unihttp
To include a specific HTTP backend (recommended):
pip install "unihttp[httpx]" # For HTTPX (Sync/Async) support
# OR
pip install "unihttp[httpx2]" # For HTTPX2 (Sync/Async) support
# OR
pip install "unihttp[niquests]" # For niquests (Sync/Async) support
# OR
pip install "unihttp[requests]" # For Requests (Sync) support
# OR
pip install "unihttp[aiohttp]" # For Aiohttp (Async) support
# OR
pip install "unihttp[zapros]" # For Zapros (Sync/Async) support
The standard library urllib backend (UrllibSyncClient) requires no extra —
it works out of the box with a plain pip install unihttp, which is handy for
dependency-free environments.
unihttp allows you to choose your preferred serialization framework:
msgspec.Struct models — ideal if you already define your models as structs and want them serialized directly.You will need to pass the appropriate request_dumper and response_loader when initializing your client.
See Powered by Adaptix, Pydantic Integration or
msgspec Integration for configuration details.
unihttp uses markers to map method arguments to HTTP request components.
from dataclasses import dataclass
from unihttp.markers import Path, Query, Body, Header, Form, File
from unihttp.method import BaseMethod
@dataclass
class User:
id: int
name: str
email: str
@dataclass
class GetUser(BaseMethod[User]):
__url__ = "/users/{id}"
__method__ = "GET"
id: Path[int]
compact: Query[bool] = False
@dataclass
class CreateUser(BaseMethod[User]):
__url__ = "/users"
__method__ = "POST"
name: Body[str]
email: Body[str]
You can choose between a purely declarative style using bind_method or a more imperative style using call_method.
bind_method)This is the most concise way to define your client. You simply bind the methods to the client class.
[!NOTE] PyCharm Users: There is currently a known issue with displaying type hints for descriptors like
bind_method( see PY-51768). This is expected to be fixed in the 2026.1 version.
from unihttp.bind_method import bind_method
from unihttp.clients.httpx import HTTPXSyncClient
from unihttp.serializers.adaptix import DEFAULT_RETORT, AdaptixDumper, AdaptixLoader
class UserClient(HTTPXSyncClient):
get_user = bind_method(GetUser)
create_user = bind_method(CreateUser)
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub goduni/unihttp --plugin unihttpPlugins from other owners that cover similar ground