Metadata-Version: 2.4
Name: p115tinydav
Version: 0.0.4
Summary: 115 tiny WebDAV.
License: MIT
License-File: LICENSE
Keywords: python-115,webdav
Author: ChenyangGao
Author-email: wosiwujm@gmail.com
Requires-Python: >=3.12,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: blacksheep
Requires-Dist: blacksheep-rich-log (>=0.0.2)
Requires-Dist: cachedict (>=0.0.7)
Requires-Dist: mimetype_more (>=0.0.1)
Requires-Dist: p115client (>=0.0.9.0.2)
Requires-Dist: python-asynctools (>=0.1.3.4)
Requires-Dist: pyyaml
Requires-Dist: sqlitetools (>=0.0.8.1)
Requires-Dist: uvicorn
Requires-Dist: yarl
Project-URL: Homepage, https://github.com/ChenyangGao/p115client/tree/main/modules/p115tinydav
Project-URL: Repository, https://github.com/ChenyangGao/p115client/tree/main/modules/p115tinydav
Description-Content-Type: text/markdown

# 115 tiny WebDAV.

![stats](https://life.115.com/imgload?h=fhnimg_6a3e2a2dabe87e86f7e98216bc26a56433a57212_0_0&i=1&t=0&ss=8f24ee198ce4485c902ba4586890e9ad679a845c&tt=1782458926)
![files](https://life.115.com/imgload?h=fhnimg_6a3e2a7438c36dd1410eff2acd9531a173501f4d_0_0&i=1&t=0&ss=f7d43c462527df909606f73ae6b0171e8b1a9a36&tt=1782458996)

## 安装

你可以通过 [pypi](https://pypi.org/project/p115tinydav/) 安装

```console
pip install -U p115tinydav
```

## 用法

### 作为模块

```python
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, 
)
```

### 作为命令

```console
$ 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         输出授权信息
```

