Skip to main content

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

Metadata

Release files for py-123pan-client 0.1.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-123pan-client 0.1.15
File Size Uploaded Provenance Actions
py_123pan_client-0.1.15.tar.gz 97.3 kB Without provenance Details for py_123pan_client-0.1.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-123pan-client 0.1.15
File Interpreter ABI Platform Actions
py_123pan_client-0.1.15-py3-none-any.whl Python 3 none any Details for py_123pan_client-0.1.15-py3-none-any.whl

Total release size: 111.6 kB

Release files / py_123pan_client-0.1.15.tar.gz

Download URL py_123pan_client-0.1.15.tar.gz
Size 97.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3a090f9adb4194fa0cf1a2aa2c4b0a8b3aeec832d6083ee0aa4be20256c82e8c
BLAKE2b-256 checksum
How to use checksums
965f4d739a4d56c5409944c9cf32a22bacab439a20bc066f50463e1150bf0c31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.30

Release files / py_123pan_client-0.1.15-py3-none-any.whl

Download URL py_123pan_client-0.1.15-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fca8f75c452582db4d116e790984d3e5357636d98f663ee397820cae7312905
BLAKE2b-256 checksum
How to use checksums
fa853f6523c8cfcc4213836349dd2591dd7875d0a2e1a307733f75358f1b52cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.30

Security for py-123pan-client 0.1.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page