115 tiny WebDAV.
Project description
115 tiny WebDAV.
安装
你可以通过 pypi 安装
pip install -U p115tinydav
用法
作为模块
from p115tinydav import make_application
from uvicorn import run
run(
make_application(debug=True),
host="0.0.0.0",
port=8000,
proxy_headers=True,
server_header=False,
forwarded_allow_ips="*",
timeout_graceful_shutdown=1,
access_log=False,
)
作为命令
$ p115tinydav -h
usage: p115tinydav [-h] [-c COOKIES] [-cp COOKIES_PATH] [-H HOST] [-P PORT] [-nc] [-d]
[-uc UVICORN_RUN_CONFIG_PATH] [-v] [-l]
[dbfile]
╭───────────────────────── Welcome to 115 tiny dav ────────────────────────────╮
│ │
│ maintained by ❤ ChenyangGao https://chenyanggao.github.io │
│ │
│ Github https://github.com/ChenyangGao/p115client/ │
│ │
│ license https://www.gnu.org/licenses/gpl-3.0.txt │
│ │
│ version 0.0.4 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
positional arguments:
dbfile 数据库文件路径,如果不传,则自动确定
options:
-h, --help show this help message and exit
-c, --cookies COOKIES
cookies 字符串,优先级高于 -cp/--cookies-path
-cp, --cookies-path COOKIES_PATH
cookies 文件保存路径,默认为当前工作目录下的 115-cookies.txt
-H, --host HOST ip 或 hostname,默认值:'0.0.0.0'
-P, --port PORT 端口号,默认值:8000,如果为 0 则自动确定
-nc, --not-cache-url 缓存下载链接
-d, --debug 启用调试,会输出更详细信息
-uc, --uvicorn-run-config-path UVICORN_RUN_CONFIG_PATH
uvicorn 启动时的配置文件路径,会作为关键字参数传给 `uvicorn.run`,支持 JSON、YAML 或 TOML 格式,会根据扩展名确定,不能确定时视为 JSON
-v, --version 输出版本号
-l, --license 输出授权信息
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
p115tinydav-0.0.4.tar.gz
(34.1 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 p115tinydav-0.0.4.tar.gz.
File metadata
- Download URL: p115tinydav-0.0.4.tar.gz
- Upload date:
- Size: 34.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.13.5 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2cdd190ed86320603e60cf7cdfde7c424ac664fa911056cb491a026ebc82ced
|
|
| MD5 |
600cd90bc3e15d988a5e7991f1e7ae69
|
|
| BLAKE2b-256 |
d6a8722dea98e2e1b87dabe27cead3c043d66c079124d2a00e477904121b8c0f
|
File details
Details for the file p115tinydav-0.0.4-py3-none-any.whl.
File metadata
- Download URL: p115tinydav-0.0.4-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.13.5 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7aec847ee15ec5b8bd3bacacf7c686e753b6f1e95dc0e05b4cdb100202926e3c
|
|
| MD5 |
a67d254c7ab83a52f4c646d74c33f76f
|
|
| BLAKE2b-256 |
c80c763132a488f8dcbf4ac3181156e56bc69e9de8b3582d57e713aaa012c5b4
|