p115nano302


Namep115nano302 JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/ChenyangGao/p115client/tree/main/modules/p115nano302
Summary115 nano 302 backend.
upload_time2025-01-18 09:56:22
maintainerNone
docs_urlNone
authorChenyangGao
requires_python<4.0,>=3.12
licenseMIT
keywords python-115 302 backend
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 115 nano 302 backend

## 安装

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

```console
pip install -U p115nano302
```

## 用法

### 作为模块

```python
from p115nano302 import make_application
from uvicorn import run

cookies = "UID=...; CID=...; SEID=...; KID=..."
run(
    make_application(cookies, debug=True), 
    host="0.0.0.0", 
    port=8000, 
    proxy_headers=True, 
    server_header=False, 
    forwarded_allow_ips="*", 
    timeout_graceful_shutdown=1, 
)
```

### 作为命令

```console
$ p115nano302 -h
usage: p115nano302 [-h] [-c COOKIES] [-cp COOKIES_PATH] [-p PASSWORD] [-t TOKEN] [-H HOST] [-P PORT] [-cu] [-d]
                   [-uc UVICORN_RUN_CONFIG_PATH] [-v] [-l]

    ╭───────────────────────── Welcome to 115 nano 302 ────────────────────────────╮
    │                                                                              │
    │  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.1.1                                       │
    │                                                                              │
    ╰──────────────────────────────────────────────────────────────────────────────╯

> 网盘文件支持用 pickcode、id、sha1、name 或 path 查询
> 指定 is_path=1 或 is_path=true 即可启用 path 查询,会以 \ 作为路径分隔符
> 分享文件支持用 id 或 name 查询

< 支持参数 user_id,以指定用户 id,并在实际执行时使用此用户的 cookies 和网盘数据(未指定时,使用所传入的第 1 个 cookies)
< 支持参数 refresh,指定 bool 值,用于搜索名字时忽略缓存(强制刷新)
< 支持参数 is_path,指定 bool 值,要求搜索路径而不是名字(仅限你自己的网盘文件,对于分享链接无效)
< 支持参数 app,用于指定从此设备的接口获取下载链接(可以不管)

⏰ 此版本不依赖于 p115client 和 pycryptodome,至少要求 python 3.12

🌰 携带 sign

通过命令行参数 -t/--token 指定令牌后,你就必须在请求时携带签名,即 sign 参数
计算方式为

    hashlib.sha1(bytes(f"302@115-{token}-{t}-{value}", "utf-8")).hexdigest()

其中
- token 就是命令行所传入的令牌
- t 为过期时间点(默认值为 0,即永不过期)
- value 就是值,像这样的链接,优先级顺序为 pickcode > id > sha1 > name > name2

    http://localhost:8000/{name2}?id={id}&name={name}&sha1={sha1}&pickcode={pickcode}

🌰 更新 cookies

通过命令行参数 -p/--password 指定密码后,你就可以一次性更新很多个 cookies,使用接口(请求时需携带和命令行传入的相同的密码)

    POST http://localhost:8000/<cookies?password={password}

请求体为 json 数据

    {"cookies": "一行写一个 cookies"}

如果要查询目前所有的 cookies,使用接口(请求时需携带和命令行传入的相同的密码)

    GET http://localhost:8000/<cookies?password={password}

🌰 查询示例:

    0. 查询 pickcode
        http://localhost:8000?ecjq9ichcb40lzlvx
        http://localhost:8000/ecjq9ichcb40lzlvx
        http://localhost:8000?pickcode=ecjq9ichcb40lzlvx
    1. 带(任意)名字查询 pickcode
        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?ecjq9ichcb40lzlvx
        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?pickcode=ecjq9ichcb40lzlvx
        http://localhost:8000/ecjq9ichcb40lzlvx/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv
    2. 查询 id
        http://localhost:8000?2691590992858971545
        http://localhost:8000/2691590992858971545
        http://localhost:8000?id=2691590992858971545
    3. 带(任意)名字查询 id
        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?2691590992858971545
        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?id=2691590992858971545
        http://localhost:8000/2691590992858971545/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv
    4. 查询 sha1
        http://localhost:8000?E7FAA0BE343AF2DA8915F2B694295C8E4C91E691
        http://localhost:8000/E7FAA0BE343AF2DA8915F2B694295C8E4C91E691
        http://localhost:8000?sha1=E7FAA0BE343AF2DA8915F2B694295C8E4C91E691
    5. 带(任意)名字查询 sha1
        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?E7FAA0BE343AF2DA8915F2B694295C8E4C91E691
        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?sha1=E7FAA0BE343AF2DA8915F2B694295C8E4C91E691
        http://localhost:8000/E7FAA0BE343AF2DA8915F2B694295C8E4C91E691/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv
    6. 查询 name(直接以路径作为 name,且不要有 pickcode、id、sha1 或 name)
        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv
        http://localhost:8000?Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv
        http://localhost:8000?name=Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv
    7. 查询分享文件(如果是你自己的分享,则无须提供密码 receive_code)
        http://localhost:8000?share_code=sw68md23w8m&receive_code=q353&id=2580033742990999218
        http://localhost:8000?share_code=sw68md23w8m&id=2580033742990999218
    8. 带(任意)名字查询分享文件(如果是你自己的分享,则无须提供密码 receive_code)
        http://localhost:8000/Cosmos.S01E01.1080p.AMZN.WEB-DL.DD+5.1.H.264-iKA.mkv?share_code=sw68md23w8m&receive_code=q353&id=2580033742990999218
        http://localhost:8000/Cosmos.S01E01.1080p.AMZN.WEB-DL.DD+5.1.H.264-iKA.mkv?share_code=sw68md23w8m&id=2580033742990999218
    9. 用 name 查询分享文件(直接以路径作为 name,且不要有 id 查询参数。如果是你自己的分享,则无须提供密码 receive_code)
        http://localhost:8000/Cosmos.S01E01.1080p.AMZN.WEB-DL.DD+5.1.H.264-iKA.mkv?share_code=sw68md23w8m&receive_code=q353
        http://localhost:8000/Cosmos.S01E01.1080p.AMZN.WEB-DL.DD+5.1.H.264-iKA.mkv?share_code=sw68md23w8m
        http://localhost:8000?name=Cosmos.S01E01.1080p.AMZN.WEB-DL.DD%2B5.1.H.264-iKA.mkv&share_code=sw68md23w8m&receive_code=q353
        http://localhost:8000?name=Cosmos.S01E01.1080p.AMZN.WEB-DL.DD%2B5.1.H.264-iKA.mkv&share_code=sw68md23w8m
   10. 用 path 查询网盘中的文件(限制同第 6 条,但需要指定 is_path)
        http://localhost:8000/a/b/c/movie.mkv?is_path=1
        http://localhost:8000?/a/b/c/movie.mkv&is_path=1
        http://localhost:8000?name=/a/b/c/movie.mkv&is_path=1

再推荐一个命令行使用,用于执行 HTTP 请求的工具,类似 wget

    https://pypi.org/project/httpie/

options:
  -h, --help            show this help message and exit
  -c COOKIES, --cookies COOKIES
                        cookies 字符串,优先级高于 -cp/--cookies-path,如果有多个则一行写一个
  -cp COOKIES_PATH, --cookies-path COOKIES_PATH
                        cookies 文件保存路径,默认为当前工作目录下的 115-cookies.txt,如果有多个则一行写一个
  -p PASSWORD, --password PASSWORD
                        执行后台信息操作请求所需密码,仅当提供时,才会启用一组后台信息操作接口
  -t TOKEN, --token TOKEN
                        签名所用的 token,如果提供,则请求必须携带签名,即 sign 查询参数
  -H HOST, --host HOST  ip 或 hostname,默认值:'0.0.0.0'
  -P PORT, --port PORT  端口号,默认值:8000,如果为 0 则自动确定
  -cu, --cache-url      缓存下载链接
  -d, --debug           启用调试,会输出更详细信息
  -uc UVICORN_RUN_CONFIG_PATH, --uvicorn-run-config-path UVICORN_RUN_CONFIG_PATH
                        uvicorn 启动时的配置文件路径,会作为关键字参数传给 `uvicorn.run`,支持 JSON、YAML 或 TOML 格式,会根据扩展名确定,不能确定时视为 JSON
  -v, --version         输出版本号
  -l, --license         输出授权信息
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ChenyangGao/p115client/tree/main/modules/p115nano302",
    "name": "p115nano302",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.12",
    "maintainer_email": null,
    "keywords": "python-115, 302, backend",
    "author": "ChenyangGao",
    "author_email": "wosiwujm@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a5/a8/ca1f93d349fb1e8d7dba25a87a014361e51dcc6ff1a5e77ef3ba9cbeb9f5/p115nano302-0.1.1.tar.gz",
    "platform": null,
    "description": "# 115 nano 302 backend\n\n## \u5b89\u88c5\n\n\u4f60\u53ef\u4ee5\u901a\u8fc7 [pypi](https://pypi.org/project/p115nano302/) \u5b89\u88c5\n\n```console\npip install -U p115nano302\n```\n\n## \u7528\u6cd5\n\n### \u4f5c\u4e3a\u6a21\u5757\n\n```python\nfrom p115nano302 import make_application\nfrom uvicorn import run\n\ncookies = \"UID=...; CID=...; SEID=...; KID=...\"\nrun(\n    make_application(cookies, debug=True), \n    host=\"0.0.0.0\", \n    port=8000, \n    proxy_headers=True, \n    server_header=False, \n    forwarded_allow_ips=\"*\", \n    timeout_graceful_shutdown=1, \n)\n```\n\n### \u4f5c\u4e3a\u547d\u4ee4\n\n```console\n$ p115nano302 -h\nusage: p115nano302 [-h] [-c COOKIES] [-cp COOKIES_PATH] [-p PASSWORD] [-t TOKEN] [-H HOST] [-P PORT] [-cu] [-d]\n                   [-uc UVICORN_RUN_CONFIG_PATH] [-v] [-l]\n\n    \u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Welcome to 115 nano 302 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n    \u2502                                                                              \u2502\n    \u2502  maintained by \u2764     ChenyangGao https://chenyanggao.github.io               \u2502\n    \u2502                                                                              \u2502\n    \u2502                      Github      https://github.com/ChenyangGao/p115client/  \u2502\n    \u2502                                                                              \u2502\n    \u2502                      license     https://www.gnu.org/licenses/gpl-3.0.txt    \u2502\n    \u2502                                                                              \u2502\n    \u2502                      version     0.1.1                                       \u2502\n    \u2502                                                                              \u2502\n    \u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\n> \u7f51\u76d8\u6587\u4ef6\u652f\u6301\u7528 pickcode\u3001id\u3001sha1\u3001name \u6216 path \u67e5\u8be2\n> \u6307\u5b9a is_path=1 \u6216 is_path=true \u5373\u53ef\u542f\u7528 path \u67e5\u8be2\uff0c\u4f1a\u4ee5 \\ \u4f5c\u4e3a\u8def\u5f84\u5206\u9694\u7b26\n> \u5206\u4eab\u6587\u4ef6\u652f\u6301\u7528 id \u6216 name \u67e5\u8be2\n\n< \u652f\u6301\u53c2\u6570 user_id\uff0c\u4ee5\u6307\u5b9a\u7528\u6237 id\uff0c\u5e76\u5728\u5b9e\u9645\u6267\u884c\u65f6\u4f7f\u7528\u6b64\u7528\u6237\u7684 cookies \u548c\u7f51\u76d8\u6570\u636e\uff08\u672a\u6307\u5b9a\u65f6\uff0c\u4f7f\u7528\u6240\u4f20\u5165\u7684\u7b2c 1 \u4e2a cookies\uff09\n< \u652f\u6301\u53c2\u6570 refresh\uff0c\u6307\u5b9a bool \u503c\uff0c\u7528\u4e8e\u641c\u7d22\u540d\u5b57\u65f6\u5ffd\u7565\u7f13\u5b58\uff08\u5f3a\u5236\u5237\u65b0\uff09\n< \u652f\u6301\u53c2\u6570 is_path\uff0c\u6307\u5b9a bool \u503c\uff0c\u8981\u6c42\u641c\u7d22\u8def\u5f84\u800c\u4e0d\u662f\u540d\u5b57\uff08\u4ec5\u9650\u4f60\u81ea\u5df1\u7684\u7f51\u76d8\u6587\u4ef6\uff0c\u5bf9\u4e8e\u5206\u4eab\u94fe\u63a5\u65e0\u6548\uff09\n< \u652f\u6301\u53c2\u6570 app\uff0c\u7528\u4e8e\u6307\u5b9a\u4ece\u6b64\u8bbe\u5907\u7684\u63a5\u53e3\u83b7\u53d6\u4e0b\u8f7d\u94fe\u63a5\uff08\u53ef\u4ee5\u4e0d\u7ba1\uff09\n\n\u23f0 \u6b64\u7248\u672c\u4e0d\u4f9d\u8d56\u4e8e p115client \u548c pycryptodome\uff0c\u81f3\u5c11\u8981\u6c42 python 3.12\n\n\ud83c\udf30 \u643a\u5e26 sign\n\n\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570 -t/--token \u6307\u5b9a\u4ee4\u724c\u540e\uff0c\u4f60\u5c31\u5fc5\u987b\u5728\u8bf7\u6c42\u65f6\u643a\u5e26\u7b7e\u540d\uff0c\u5373 sign \u53c2\u6570\n\u8ba1\u7b97\u65b9\u5f0f\u4e3a\n\n    hashlib.sha1(bytes(f\"302@115-{token}-{t}-{value}\", \"utf-8\")).hexdigest()\n\n\u5176\u4e2d\n- token \u5c31\u662f\u547d\u4ee4\u884c\u6240\u4f20\u5165\u7684\u4ee4\u724c\n- t \u4e3a\u8fc7\u671f\u65f6\u95f4\u70b9\uff08\u9ed8\u8ba4\u503c\u4e3a 0\uff0c\u5373\u6c38\u4e0d\u8fc7\u671f\uff09\n- value \u5c31\u662f\u503c\uff0c\u50cf\u8fd9\u6837\u7684\u94fe\u63a5\uff0c\u4f18\u5148\u7ea7\u987a\u5e8f\u4e3a pickcode > id > sha1 > name > name2\n\n    http://localhost:8000/{name2}?id={id}&name={name}&sha1={sha1}&pickcode={pickcode}\n\n\ud83c\udf30 \u66f4\u65b0 cookies\n\n\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570 -p/--password \u6307\u5b9a\u5bc6\u7801\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u4e00\u6b21\u6027\u66f4\u65b0\u5f88\u591a\u4e2a cookies\uff0c\u4f7f\u7528\u63a5\u53e3\uff08\u8bf7\u6c42\u65f6\u9700\u643a\u5e26\u548c\u547d\u4ee4\u884c\u4f20\u5165\u7684\u76f8\u540c\u7684\u5bc6\u7801\uff09\n\n    POST http://localhost:8000/<cookies?password={password}\n\n\u8bf7\u6c42\u4f53\u4e3a json \u6570\u636e\n\n    {\"cookies\": \"\u4e00\u884c\u5199\u4e00\u4e2a cookies\"}\n\n\u5982\u679c\u8981\u67e5\u8be2\u76ee\u524d\u6240\u6709\u7684 cookies\uff0c\u4f7f\u7528\u63a5\u53e3\uff08\u8bf7\u6c42\u65f6\u9700\u643a\u5e26\u548c\u547d\u4ee4\u884c\u4f20\u5165\u7684\u76f8\u540c\u7684\u5bc6\u7801\uff09\n\n    GET http://localhost:8000/<cookies?password={password}\n\n\ud83c\udf30 \u67e5\u8be2\u793a\u4f8b\uff1a\n\n    0. \u67e5\u8be2 pickcode\n        http://localhost:8000?ecjq9ichcb40lzlvx\n        http://localhost:8000/ecjq9ichcb40lzlvx\n        http://localhost:8000?pickcode=ecjq9ichcb40lzlvx\n    1. \u5e26\uff08\u4efb\u610f\uff09\u540d\u5b57\u67e5\u8be2 pickcode\n        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?ecjq9ichcb40lzlvx\n        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?pickcode=ecjq9ichcb40lzlvx\n        http://localhost:8000/ecjq9ichcb40lzlvx/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv\n    2. \u67e5\u8be2 id\n        http://localhost:8000?2691590992858971545\n        http://localhost:8000/2691590992858971545\n        http://localhost:8000?id=2691590992858971545\n    3. \u5e26\uff08\u4efb\u610f\uff09\u540d\u5b57\u67e5\u8be2 id\n        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?2691590992858971545\n        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?id=2691590992858971545\n        http://localhost:8000/2691590992858971545/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv\n    4. \u67e5\u8be2 sha1\n        http://localhost:8000?E7FAA0BE343AF2DA8915F2B694295C8E4C91E691\n        http://localhost:8000/E7FAA0BE343AF2DA8915F2B694295C8E4C91E691\n        http://localhost:8000?sha1=E7FAA0BE343AF2DA8915F2B694295C8E4C91E691\n    5. \u5e26\uff08\u4efb\u610f\uff09\u540d\u5b57\u67e5\u8be2 sha1\n        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?E7FAA0BE343AF2DA8915F2B694295C8E4C91E691\n        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv?sha1=E7FAA0BE343AF2DA8915F2B694295C8E4C91E691\n        http://localhost:8000/E7FAA0BE343AF2DA8915F2B694295C8E4C91E691/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv\n    6. \u67e5\u8be2 name\uff08\u76f4\u63a5\u4ee5\u8def\u5f84\u4f5c\u4e3a name\uff0c\u4e14\u4e0d\u8981\u6709 pickcode\u3001id\u3001sha1 \u6216 name\uff09\n        http://localhost:8000/Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv\n        http://localhost:8000?Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv\n        http://localhost:8000?name=Novembre.2022.FRENCH.2160p.BluRay.DV.HEVC.DTS-HD.MA.5.1.mkv\n    7. \u67e5\u8be2\u5206\u4eab\u6587\u4ef6\uff08\u5982\u679c\u662f\u4f60\u81ea\u5df1\u7684\u5206\u4eab\uff0c\u5219\u65e0\u987b\u63d0\u4f9b\u5bc6\u7801 receive_code\uff09\n        http://localhost:8000?share_code=sw68md23w8m&receive_code=q353&id=2580033742990999218\n        http://localhost:8000?share_code=sw68md23w8m&id=2580033742990999218\n    8. \u5e26\uff08\u4efb\u610f\uff09\u540d\u5b57\u67e5\u8be2\u5206\u4eab\u6587\u4ef6\uff08\u5982\u679c\u662f\u4f60\u81ea\u5df1\u7684\u5206\u4eab\uff0c\u5219\u65e0\u987b\u63d0\u4f9b\u5bc6\u7801 receive_code\uff09\n        http://localhost:8000/Cosmos.S01E01.1080p.AMZN.WEB-DL.DD+5.1.H.264-iKA.mkv?share_code=sw68md23w8m&receive_code=q353&id=2580033742990999218\n        http://localhost:8000/Cosmos.S01E01.1080p.AMZN.WEB-DL.DD+5.1.H.264-iKA.mkv?share_code=sw68md23w8m&id=2580033742990999218\n    9. \u7528 name \u67e5\u8be2\u5206\u4eab\u6587\u4ef6\uff08\u76f4\u63a5\u4ee5\u8def\u5f84\u4f5c\u4e3a name\uff0c\u4e14\u4e0d\u8981\u6709 id \u67e5\u8be2\u53c2\u6570\u3002\u5982\u679c\u662f\u4f60\u81ea\u5df1\u7684\u5206\u4eab\uff0c\u5219\u65e0\u987b\u63d0\u4f9b\u5bc6\u7801 receive_code\uff09\n        http://localhost:8000/Cosmos.S01E01.1080p.AMZN.WEB-DL.DD+5.1.H.264-iKA.mkv?share_code=sw68md23w8m&receive_code=q353\n        http://localhost:8000/Cosmos.S01E01.1080p.AMZN.WEB-DL.DD+5.1.H.264-iKA.mkv?share_code=sw68md23w8m\n        http://localhost:8000?name=Cosmos.S01E01.1080p.AMZN.WEB-DL.DD%2B5.1.H.264-iKA.mkv&share_code=sw68md23w8m&receive_code=q353\n        http://localhost:8000?name=Cosmos.S01E01.1080p.AMZN.WEB-DL.DD%2B5.1.H.264-iKA.mkv&share_code=sw68md23w8m\n   10. \u7528 path \u67e5\u8be2\u7f51\u76d8\u4e2d\u7684\u6587\u4ef6\uff08\u9650\u5236\u540c\u7b2c 6 \u6761\uff0c\u4f46\u9700\u8981\u6307\u5b9a is_path\uff09\n        http://localhost:8000/a/b/c/movie.mkv?is_path=1\n        http://localhost:8000?/a/b/c/movie.mkv&is_path=1\n        http://localhost:8000?name=/a/b/c/movie.mkv&is_path=1\n\n\u518d\u63a8\u8350\u4e00\u4e2a\u547d\u4ee4\u884c\u4f7f\u7528\uff0c\u7528\u4e8e\u6267\u884c HTTP \u8bf7\u6c42\u7684\u5de5\u5177\uff0c\u7c7b\u4f3c wget\n\n    https://pypi.org/project/httpie/\n\noptions:\n  -h, --help            show this help message and exit\n  -c COOKIES, --cookies COOKIES\n                        cookies \u5b57\u7b26\u4e32\uff0c\u4f18\u5148\u7ea7\u9ad8\u4e8e -cp/--cookies-path\uff0c\u5982\u679c\u6709\u591a\u4e2a\u5219\u4e00\u884c\u5199\u4e00\u4e2a\n  -cp COOKIES_PATH, --cookies-path COOKIES_PATH\n                        cookies \u6587\u4ef6\u4fdd\u5b58\u8def\u5f84\uff0c\u9ed8\u8ba4\u4e3a\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4e0b\u7684 115-cookies.txt\uff0c\u5982\u679c\u6709\u591a\u4e2a\u5219\u4e00\u884c\u5199\u4e00\u4e2a\n  -p PASSWORD, --password PASSWORD\n                        \u6267\u884c\u540e\u53f0\u4fe1\u606f\u64cd\u4f5c\u8bf7\u6c42\u6240\u9700\u5bc6\u7801\uff0c\u4ec5\u5f53\u63d0\u4f9b\u65f6\uff0c\u624d\u4f1a\u542f\u7528\u4e00\u7ec4\u540e\u53f0\u4fe1\u606f\u64cd\u4f5c\u63a5\u53e3\n  -t TOKEN, --token TOKEN\n                        \u7b7e\u540d\u6240\u7528\u7684 token\uff0c\u5982\u679c\u63d0\u4f9b\uff0c\u5219\u8bf7\u6c42\u5fc5\u987b\u643a\u5e26\u7b7e\u540d\uff0c\u5373 sign \u67e5\u8be2\u53c2\u6570\n  -H HOST, --host HOST  ip \u6216 hostname\uff0c\u9ed8\u8ba4\u503c\uff1a'0.0.0.0'\n  -P PORT, --port PORT  \u7aef\u53e3\u53f7\uff0c\u9ed8\u8ba4\u503c\uff1a8000\uff0c\u5982\u679c\u4e3a 0 \u5219\u81ea\u52a8\u786e\u5b9a\n  -cu, --cache-url      \u7f13\u5b58\u4e0b\u8f7d\u94fe\u63a5\n  -d, --debug           \u542f\u7528\u8c03\u8bd5\uff0c\u4f1a\u8f93\u51fa\u66f4\u8be6\u7ec6\u4fe1\u606f\n  -uc UVICORN_RUN_CONFIG_PATH, --uvicorn-run-config-path UVICORN_RUN_CONFIG_PATH\n                        uvicorn \u542f\u52a8\u65f6\u7684\u914d\u7f6e\u6587\u4ef6\u8def\u5f84\uff0c\u4f1a\u4f5c\u4e3a\u5173\u952e\u5b57\u53c2\u6570\u4f20\u7ed9 `uvicorn.run`\uff0c\u652f\u6301 JSON\u3001YAML \u6216 TOML \u683c\u5f0f\uff0c\u4f1a\u6839\u636e\u6269\u5c55\u540d\u786e\u5b9a\uff0c\u4e0d\u80fd\u786e\u5b9a\u65f6\u89c6\u4e3a JSON\n  -v, --version         \u8f93\u51fa\u7248\u672c\u53f7\n  -l, --license         \u8f93\u51fa\u6388\u6743\u4fe1\u606f\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "115 nano 302 backend.",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/ChenyangGao/p115client/tree/main/modules/p115nano302",
        "Repository": "https://github.com/ChenyangGao/p115client/tree/main/modules/p115nano302"
    },
    "split_keywords": [
        "python-115",
        " 302",
        " backend"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "84aafc51d23274d08704ea5d48c2d376c646415a7bf131ccf456be00168a5108",
                "md5": "5530e1d9fa565028eb5fd4013f3efea5",
                "sha256": "c9133e2b3a486e410d321e9453a0af7d1efbd2e877adeb271fe18fa2be107af3"
            },
            "downloads": -1,
            "filename": "p115nano302-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5530e1d9fa565028eb5fd4013f3efea5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.12",
            "size": 50514,
            "upload_time": "2025-01-18T09:56:20",
            "upload_time_iso_8601": "2025-01-18T09:56:20.100012Z",
            "url": "https://files.pythonhosted.org/packages/84/aa/fc51d23274d08704ea5d48c2d376c646415a7bf131ccf456be00168a5108/p115nano302-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a5a8ca1f93d349fb1e8d7dba25a87a014361e51dcc6ff1a5e77ef3ba9cbeb9f5",
                "md5": "fc315b0e5d003c512973c1ba11eddef5",
                "sha256": "1ba579733f41f18a5079b0b6236fbafe4e690cabd20aa5ab0e8a47f4891d2a0e"
            },
            "downloads": -1,
            "filename": "p115nano302-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fc315b0e5d003c512973c1ba11eddef5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.12",
            "size": 36017,
            "upload_time": "2025-01-18T09:56:22",
            "upload_time_iso_8601": "2025-01-18T09:56:22.970433Z",
            "url": "https://files.pythonhosted.org/packages/a5/a8/ca1f93d349fb1e8d7dba25a87a014361e51dcc6ff1a5e77ef3ba9cbeb9f5/p115nano302-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-18 09:56:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ChenyangGao",
    "github_project": "p115client",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "p115nano302"
}
        
Elapsed time: 2.06681s