goduni

goduni / unihttp

Public

Modern library for creating declarative API clients.

38
1
100% credibility
Found Feb 05, 2026 at 29 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

unihttp is a Python library for defining type-safe methods to interact with online services using simple descriptions, supporting various connection styles and data handlers.

How It Works

1
🕵️‍♀️ Hear about unihttp

You learn about a handy tool that makes grabbing info from online services a breeze, without the usual headaches.

2
📥 Bring it into your project

You easily add the tool to your Python setup so it's ready to use.

3
✏️ Sketch your info requests

You describe exactly what data you want, like 'get user details by number', using simple notes and shapes.

4
🔗 Connect to the service

You link it to the online service's main address and choose how data gets packed and unpacked.

5
🚀 Send your first request

You call for the info with a few details, and it flows back perfectly shaped just like you asked.

6
🔄 Add extras if needed

You layer on things like logging or retries to make it even smoother for repeated use.

🎉 Data arrives reliably

Your app now chats effortlessly with services, delivering clean, ready-to-use info every time.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 29 to 38 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is unihttp?

unihttp is a Python library for declarative API clients, letting you define endpoints as dataclasses with type hints and markers for paths, queries, bodies, headers, forms, and files. It binds these to backends like httpx, aiohttp, requests, or niquests for sync/async calls, handling serialization via Adaptix or Pydantic. You get type-safe requests without boilerplate builders, perfect for clean SDKs.

Why is it gaining traction?

Backend-agnostic design swaps HTTP libs easily, while middleware adds retries, logging, and error mapping without custom wrappers. Declarative style with per-method error hooks and response validation beats verbose alternatives like raw httpx. High-perf serialization and custom JSON like orjson appeal to speed-focused devs.

Who should use this?

Python backend engineers building internal API wrappers or SDKs for REST services. Async-heavy teams juggling sync prototypes. Pydantic/Adaptix users tired of manual request/response plumbing in scripts or microservices.

Verdict

Alpha-stage (33 stars, 1.0% credibility) with strong docs and coverage, but lacks battle-testing—prototype only. Grab it if declarative APIs excite you; skip for prod until adoption grows.

(187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.