Skip to main content

Unnoficial Python SDK for 123Pan Open Platform

Project description

py-123pan-client

123云盘开放平台 (123Pan Open Platform) 非官方 Python SDK

基于 httpxpydantic 构建,提供现代化、类型安全且易于使用的接口封装。支持自动鉴权、智能断点续传、大文件上传、直链管理、离线下载等核心功能。

✨ 特性

  • 🔐 自动鉴权:自动管理 Access Token 生命周期,过期自动刷新,开发者无需操心。
  • 🚀 智能上传
    • 小文件 (<100MB) 自动使用单步上传。
    • 大文件自动切换为分片上传 (Chunked Upload),支持秒传检测。
    • 自动计算 MD5,内存占用低(流式处理)。
  • ⚡ 高性能:底层使用 httpx,支持 HTTP/2 (依赖服务端支持),为未来异步化预留空间。
  • 📦 类型安全:所有请求与响应均通过 Pydantic 模型验证,提供完美的 IDE 代码补全体验。
  • 🛠 全功能覆盖:文件管理、分享管理(含付费分享)、离线下载、直链加速、开发者安全配置。

📦 安装

推荐使用 uvpip 进行安装:

# 使用 pip
pip install py-123pan-client

# 或者使用 uv (推荐)
uv add py-123pan-client

Project details


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.7.tar.gz (93.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_123pan_client-0.1.7-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file py_123pan_client-0.1.7.tar.gz.

File metadata

  • Download URL: py_123pan_client-0.1.7.tar.gz
  • Upload date:
  • Size: 93.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.30

File hashes

Hashes for py_123pan_client-0.1.7.tar.gz
Algorithm Hash digest
SHA256 e511b84a39b748f0a77ca3c28976a20bff21bd7eb58cb8f8c73ccc90ad266ce2
MD5 8229ea1c44f4578c2272360a88f1c6ef
BLAKE2b-256 d1c362b417b9c884413399f80e3fd14b580e254d41145cd6cfc5088376eefef9

See more details on using hashes here.

File details

Details for the file py_123pan_client-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for py_123pan_client-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7d4bd0b0264470b4b980e5e11020f6037ca1dedf53a5d67616dc31805244aaaa
MD5 b39852c1d36b2eb3b2de09f80a3f21c1
BLAKE2b-256 74e201d7a2d7b02f65fe4421e4dc534d4ab5a4ec16b2fff17380f8d9ba0303f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page