Skip to main content

Python 115 WsgiDAV

Project description

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")
                        
  -cl, --check-for-relogin
                        当风控时,自动重新扫码登录
  -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         输出版本号

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

p115wsgidav-0.0.2.1.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

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

p115wsgidav-0.0.2.1-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file p115wsgidav-0.0.2.1.tar.gz.

File metadata

  • Download URL: p115wsgidav-0.0.2.1.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0

File hashes

Hashes for p115wsgidav-0.0.2.1.tar.gz
Algorithm Hash digest
SHA256 f6cd1a6dbdbb23bc5493ab9555b0f52ff783b6b9eceee1d56b63d5aae9bcc684
MD5 c4ff0cc0733b0347eec5ae7704669810
BLAKE2b-256 df9bd03741b6f38919878f2b08d4a111d473a8c73f27bfbb351edc72808846b7

See more details on using hashes here.

File details

Details for the file p115wsgidav-0.0.2.1-py3-none-any.whl.

File metadata

  • Download URL: p115wsgidav-0.0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0

File hashes

Hashes for p115wsgidav-0.0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ce9b8925b2a8abc6d7edce7a5534c20205c94cf4c73d43828093094963b46fa
MD5 b91090d99d41aa08310edf85f9894ba2
BLAKE2b-256 fb01fdb3e8c0381e78352edfb7304d42b4cb9312264dfb754911d181161fe37d

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