
goduni/unihttp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Declarative API 클라이언트를 만드는 현대 도서관.
개요
declarative API 클라이언트를 만드는 현대 도서관입니다. - : 표준 Python 유형 hints를 사용하여 API 메소드 정의. - : 정적 유형 검사를 위한 가득 차있는 지원. - : httpx, httpx2, aiohttp, 요청, niquests, zapros 및 표준 라이브러리 URLlib와 함께 작동합니다. - : 강력한 미들웨어 및 오류 처리 시스템. 특정 HTTP 백엔드를 포함하려면 (추천): 표준 라이브러리 urllib 백엔드 (UrllibSyncClient)는 추가가 필요하지 않습니다. 일반 pip가 unihttp를 설치하면 신뢰할 수 없는 환경에 적합합니다. unihttp는 당신의 선호한 serialization 기구를 선택할 수 있습니다: 1. (추천): 표준 Python 유형 (dataclasses, TypedDict)를 위한 고성능 serialization. 2.: Pydantic 모형을 위한 Native 지원. 3.: msgspec를 위한 기본 지원. Struct 모델 - 이미 구조로 모델을 정의하고 직접 일련을 원하면 이상적입니다. 클라이언트를 초기화할 때 적절한 request dumper 및 response loader를 통과해야 합니다.
개요(AI 번역)
unihttp는 선언적인 API 클라이언트를 만드는 현대 도서관입니다.
회사연혁
내용 표
- 특징
- 설치
- 직렬화 백엔드
- 빠른 시작
-
- 정의 방법
-
- 클라이언트 구현 전략
- Markers 참조
- 스트리밍 방법
- 기타
- Per-Call 및 Per-Method 미들웨어
- 오류 처리
-
- 방법 수준 취급
-
- 클라이언트 수준 취급
-
- Middleware-Level 처리
-
- 응답 몸 유효성
- 사용자 정의 JSON 직렬화
- Adaptix에 의해 구동
- Pydantic 통합
- msgspec 통합
- 에이전트 기술
특징
- Declarative: 표준 파이썬 타입 힌트를 사용하여 API 메소드를 정의합니다.
- Type-Safe: 정적 유형 검사를 위한 가득 차있는 지원.
- Backend Agnostic:
httpx,httpx2,aiohttp],requests],niquests,zapros및 표준 라이브러리urllib. - Extensible: 강력한 미들웨어 및 오류 처리 시스템.
설치
특정 HTTP 백엔드를 포함하려면 (추천):
표준 라이브러리 urllib 백엔드 (UrllibSyncClient])에는 추가가 필요하지 않습니다.
그것은 평야와 상자에서 작동 pip install unihttp], 이는 편리
믿을 수 없는 환경.
직렬화 백엔드
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
unihttp
unihttp is a modern library for creating declarative API clients.
Table of Contents
- Features
- Installation
- Serialization Backends
- Quick Start
- Markers Reference
- Streaming Methods
- Middleware
- Error Handling
- Custom JSON Serialization
- Powered by Adaptix
- Pydantic Integration
- msgspec Integration
- Agent Skills
Features
- Declarative: Define API methods using standard Python type hints.
- Type-Safe: Full support for static type checking.
- Backend Agnostic: Works with
httpx,httpx2,aiohttp,requests,niquests,zaprosand the standard libraryurllib. - Extensible: Powerful middleware and error handling systems.
Installation
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.
Serialization Backends
unihttp allows you to choose your preferred serialization framework:
- Adaptix (recommended): High-performance serialization for standard Python types (dataclasses, TypedDict).
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add goduni/unihttp