Unnoficial Python SDK for 123Pan Open Platform
Project description
py-123pan-client
123云盘开放平台 (123Pan Open Platform) 非官方 Python SDK
基于 httpx 和 pydantic 构建,提供现代化、类型安全且易于使用的接口封装。支持自动鉴权、智能断点续传、大文件上传、直链管理、离线下载等核心功能。
✨ 特性
- 🔐 自动鉴权:自动管理 Access Token 生命周期,过期自动刷新,开发者无需操心。
- 🚀 智能上传:
- 小文件 (<100MB) 自动使用单步上传。
- 大文件自动切换为分片上传 (Chunked Upload),支持秒传检测。
- 自动计算 MD5,内存占用低(流式处理)。
- ⚡ 高性能:底层使用
httpx,支持 HTTP/2 (依赖服务端支持),为未来异步化预留空间。 - 📦 类型安全:所有请求与响应均通过
Pydantic模型验证,提供完美的 IDE 代码补全体验。 - 🛠 全功能覆盖:文件管理、分享管理(含付费分享)、离线下载、直链加速、开发者安全配置。
📦 安装
推荐使用 uv 或 pip 进行安装:
# 使用 pip
pip install py-123pan-client
# 或者使用 uv (推荐)
uv add py-123pan-client
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_123pan_client-0.1.13.tar.gz
(96.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_123pan_client-0.1.13.tar.gz.
File metadata
- Download URL: py_123pan_client-0.1.13.tar.gz
- Upload date:
- Size: 96.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecd9765f631213749836c45352997ec7befe1db9b1e6a5b987e99b2e34e65a29
|
|
| MD5 |
484ecc06f69b28eb6832bdd24ded0d95
|
|
| BLAKE2b-256 |
b195b9773bbaca349ed06da8ee20672379654dea9d3de2a1088b50c01ec657cf
|
File details
Details for the file py_123pan_client-0.1.13-py3-none-any.whl.
File metadata
- Download URL: py_123pan_client-0.1.13-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a961fc89d306988beba6a17e374f79ef07cf902f5cc577ed8b6ef5e4cbcecda
|
|
| MD5 |
96e80d337a271cabf7ac4247141f96e2
|
|
| BLAKE2b-256 |
fe1e1a9b63942b8068dcff6713b3c1ce54b90fa3f0b1645b32c9d49ab881bc7e
|