Skip to main content

Python 115 FTP Server.

安装

你可以通过 pypi 安装

pip install -U p115ftp

用法

模块

from p115ftp import P115FS

P115FS.run_forever()

命令行

$ p115ftp -h
usage: p115ftp [-h] [-H HOST] [-P PORT] [-cp COOKIES_PATH] [-cl] [-ut] [-ll LOG_LEVEL] [-l] [-v]

    🕸️ Python 115 FTP Server 🕷️

             88      88  8888888888      ad88                        
           ,d88    ,d88  88             d8"      ,d                  
         888888  888888  88  ____       88       88                  
8b,dPPYba,   88      88  88a8PPPP8b,  MM88MMM  MM88MMM  8b,dPPYba,   
88P'    "8a  88      88  PP"     `8b    88       88     88P'    "8a  
88       d8  88      88           d8    88       88     88       d8  
88b,   ,a8"  88      88  Y8a     a8P    88       88,    88b,   ,a8"  
88`YbbdP"'   88      88   "Y88888P"     88       "Y888  88`YbbdP"'   
88                                                      88           
88                                                      88           

options:
  -h, --help            show this help message and exit
  -H, --host HOST       ip 或 hostname,默认值:'0.0.0.0'
  -P, --port PORT       端口号,默认值:7115
  -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
                        当风控时,自动重新扫码登录
  -ut, --use-thumbs     为请求图片链接提供缩略图 CDN 链接
  -ll, --log-level LOG_LEVEL
                        指定日志级别,可以是数字或名称,不传此参数则不输出日志,默认值: 'ERROR'
  -l, --license         输出授权信息
  -v, --version         输出版本号

Metadata

Release files for p115ftp 0.0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for p115ftp 0.0.5.1
File Size Uploaded
p115ftp-0.0.5.1.tar.gz 19.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for p115ftp 0.0.5.1
File Interpreter ABI Platform
p115ftp-0.0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 41.0 kB

Release files / p115ftp-0.0.5.1.tar.gz

Download URL p115ftp-0.0.5.1.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1e007a2b3be23db2e08df5c49c22f4cbc8f9a8f4abc29a76ae06febef98e76c1
BLAKE2b-256 checksum
How to use checksums
f64204f16a826a509af5803f8774673d31c2dc7c3d6184000032710e812a6d85
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 / p115ftp-0.0.5.1-py3-none-any.whl

Download URL p115ftp-0.0.5.1-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1d27c8a8a483df346ed95e0463fa6ebf3b287ad26c073f0438563c8b8bbc77f
BLAKE2b-256 checksum
How to use checksums
df01a7cdeaa0f24bc606f086388a1343946b8083f32176086dc46cde340b41f7
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 history Release notifications | RSS feed

This release

0.0.5.1 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page