Python 115 SFTP Server.
Project description
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 输出版本号
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
p115sftp-0.0.1.1.tar.gz
(17.2 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 p115sftp-0.0.1.1.tar.gz.
File metadata
- Download URL: p115sftp-0.0.1.1.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.5 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b1f6e8c80fd6d03d1995b712d52092f0dc1e57554646b64fef7e94f101fe552
|
|
| MD5 |
1d7666f1fb01c57c35e9c68e1ae90382
|
|
| BLAKE2b-256 |
09a8c7b3d4010e2fd88d1a4ab05bacde1095fb296cf101d9c547692925232740
|
File details
Details for the file p115sftp-0.0.1.1-py3-none-any.whl.
File metadata
- Download URL: p115sftp-0.0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da42c68bf0ba4c93b60cb7d15329d9c91175d6750ea2e8df2273786532531903
|
|
| MD5 |
977d348d7f81cca31701247261eecdbf
|
|
| BLAKE2b-256 |
ecffcb08d33510cb6e8ba1edad9ab37589f979df1784e4693be8f731af36443a
|