- 移除 docs/ 和 Release CI,文档维护点收归 mipu-api 子模块 - 新增 sdk/mipu_requests Python SDK(构造参数传入凭据) - 新增 CLAUDE.md 标注文档维护路径 - 精简 README Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
42 lines
873 B
Python
42 lines
873 B
Python
"""
|
|
mipu_requests — 通过米普代理转发 HTTP 请求的 requests 兼容客户端
|
|
|
|
API 与 requests 完全一致,用户可平滑切换:
|
|
|
|
import mipu_requests
|
|
|
|
s = mipu_requests.session(
|
|
base_url="https://api-eu.mipuyun.com",
|
|
client_key="your_key",
|
|
client_secret="your_secret",
|
|
agent="JQ",
|
|
)
|
|
s.proxies = "res_mipu_bookxWdyg"
|
|
|
|
resp = s.get(url, headers={...}, params={...})
|
|
resp = s.post(url, data=form, headers={...})
|
|
resp.raise_for_status()
|
|
data = resp.json()
|
|
"""
|
|
|
|
from .session import session, Session
|
|
from .response import Response
|
|
from .exceptions import (
|
|
RequestException,
|
|
HTTPError,
|
|
APIError,
|
|
PollTimeoutError,
|
|
)
|
|
|
|
__version__ = "1.0.0"
|
|
|
|
__all__ = [
|
|
"session",
|
|
"Session",
|
|
"Response",
|
|
"RequestException",
|
|
"HTTPError",
|
|
"APIError",
|
|
"PollTimeoutError",
|
|
]
|