Skip to main content

Python 115 WsgiDAV.

安装

你可以通过 pypi 安装

pip install -U p115wsgidav

用法

模块

from p115wsgidav import P115FileSystemProvider

P115FileSystemProvider().run_forever()

命令行

$ p115wsgidav -h
usage: p115wsgidav [-h] [-H HOST] [-P PORT] [-cp COOKIES_PATH] [-cl] [-nt] [-o ORIGIN_302] [-wc WSGIDAV_CONFIG_PATH] [-l] [-v]

    🕸️ Python 115 WsgiDAV 🕷️

██████╗  ██╗ ██╗███████╗██╗    ██╗███████╗██████╗ ██████╗  █████╗ ██╗   ██╗
██╔══██╗███║███║██╔════╝██║    ██║██╔════╝██╔══██╗██╔══██╗██╔══██╗██║   ██║
██████╔╝╚██║╚██║███████╗██║ █╗ ██║█████╗  ██████╔╝██║  ██║███████║██║   ██║
██╔═══╝  ██║ ██║╚════██║██║███╗██║██╔══╝  ██╔══██╗██║  ██║██╔══██║╚██╗ ██╔╝
██║      ██║ ██║███████║╚███╔███╔╝███████╗██████╔╝██████╔╝██║  ██║ ╚████╔╝ 
╚═╝      ╚═╝ ╚═╝╚══════╝ ╚══╝╚══╝ ╚══════╝╚═════╝ ╚═════╝ ╚═╝  ╚═╝  ╚═══╝  

options:
  -h, --help            show this help message and exit
  -H, --host HOST       ip 或 hostname,默认值:'0.0.0.0'
  -P, --port PORT       端口号,默认值:8115
  -cp, --cookies-path COOKIES_PATH
                        cookies 文件保存路径,默认为当前工作目录下的 115-cookies.txt
                        如果你需要直接传入一个 cookies 字符串,需要这样写
                        
                        .. code:: shell
                        
                            COOKIES='UID=...; CID=..., SEID=...'
                            p115dav --cookies-path <(echo "$COOKIES")
                        
  -nt, --no-thumbs      不要为请求图片链接提供缩略图
  -o, --origin-302 ORIGIN_302
                        设置 302 请求转发。如果为空,则由此模块提供;特别的,如果缺省此参数,则视为缓存链接;如果为空字符串 '',则不缓存
  -wc, --wsgidav-config-path WSGIDAV_CONFIG_PATH
                        WsgiDAV 启动时的配置文件路径,支持 JSON、YAML 或 TOML 格式,会根据扩展名确定,不能确定时视为 JSON
                        如需样板文件,请阅读:
                        
                            https://wsgidav.readthedocs.io/en/latest/user_guide_configure.html#sample-wsgidav-yaml
                        
  -l, --license         输出授权信息
  -v, --version         输出版本号

Metadata

Release files for p115wsgidav 0.0.4

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

Source distribution (sdist)

Source distribution for p115wsgidav 0.0.4
File Size Uploaded
p115wsgidav-0.0.4.tar.gz 20.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for p115wsgidav 0.0.4
File Interpreter ABI Platform
p115wsgidav-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 42.7 kB

Release files / p115wsgidav-0.0.4.tar.gz

Download URL p115wsgidav-0.0.4.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2549d5ec3704e38c4ad22e95b1aded0bfec906f011e34e1faa7c1b1edafa4a1f
BLAKE2b-256 checksum
How to use checksums
5740fcb7ed8d54285c48c992bb70aca705a8a88aac0c83c5e2af11645fe8d02b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.5 Darwin/25.0.0

Release files / p115wsgidav-0.0.4-py3-none-any.whl

Download URL p115wsgidav-0.0.4-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08c759e2bd450fd08c2f504bc793ac8d97859ce8338c00f9a042863ffa6357aa
BLAKE2b-256 checksum
How to use checksums
5a3dc7e1b609310e6ba15f87a41cedd250be64bdd995b07b5c2c925a6e813b4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.5 Darwin/25.0.0

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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