Python 115 SFTP Server.
安装
你可以通过 pypi 安装
pip install -U p115sftp
用法
模块
from p115sftp import P115RequestHandler
P115RequestHandler.run_forever()
命令行
$ p115sftp -h
usage: p115sftp [-h] [-H HOST] [-P PORT] [-cp COOKIES_PATH] [-cl] [-ll LOG_LEVEL] [-k KEY_FILE] [-l] [-v]
🕸️ Python 115 SFTP Server 🕷️
.-. ___
/ \ ( )
.-.. .--. .--. ,-----. .--. | .`. ; | |_ .-..
/ \ (_ | (_ | | ___) / _ \ | |(___) ( __) / \
' .-, ; | | | | | | . .' `. ; | |_ | | ' .-, ;
| | . | | | | | | '-. | ' | | ( __) | | ___ | | . |
| | | | | | | | '---. . _\_`.(___) | | | |( ) | | | |
| | | | | | | | ___ ` \ ( ). '. | | | | | | | | | |
| | ' | | | | | ( ) | | | | `\ | | | | ' | | | | ' |
| `-' ' | | | | ; `-' / ; '._,' ' | | ' `-' ; | `-' '
| \__.' (___) (___) '.__.' '.___.' (___) `.__. | \__.'
| | | |
(___) (___)
options:
-h, --help show this help message and exit
-H, --host HOST ip 或 hostname,默认值:'0.0.0.0'
-P, --port PORT 端口号,默认值:6115
-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
当风控时,自动重新扫码登录
-ll, --log-level LOG_LEVEL
指定日志级别,可以是数字或名称,不传此参数则不输出日志,默认值: 'INFO'
-k, --key-file KEY_FILE
服务器私钥文件,如果不提供则随机生成
-l, --license 输出授权信息
-v, --version 输出版本号
Metadata
Release files for p115sftp 0.0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| p115sftp-0.0.1.1.tar.gz | 17.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| p115sftp-0.0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.4 kB
Release files / p115sftp-0.0.1.1.tar.gz
| Download URL | p115sftp-0.0.1.1.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b1f6e8c80fd6d03d1995b712d52092f0dc1e57554646b64fef7e94f101fe552
|
|
BLAKE2b-256 checksum How to use checksums |
09a8c7b3d4010e2fd88d1a4ab05bacde1095fb296cf101d9c547692925232740
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0
|
Release files / p115sftp-0.0.1.1-py3-none-any.whl
| Download URL | p115sftp-0.0.1.1-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da42c68bf0ba4c93b60cb7d15329d9c91175d6750ea2e8df2273786532531903
|
|
BLAKE2b-256 checksum How to use checksums |
ecffcb08d33510cb6e8ba1edad9ab37589f979df1784e4693be8f731af36443a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0
|