Skip to main content

Douftp Server

基于 pyftpdlib 的图形界面 FTP 服务器(tkinter)。

功能特性

  • 图形界面启动/停止 FTP 服务,状态栏颜色指示运行状态
  • 虚拟用户(账号/密码/共享目录/读写权限)
  • 被动模式端口范围配置
  • 匿名访问开关(默认只读)
  • 配置持久化到 ~/.douftpserver/config.json(不保存密码)
  • 服务线程异常安全回传主线程提示,不崩溃

安装

pip install douftp-server
douftp-server        # 启动服务器 GUI

tkinter 需由系统 Python 提供(Debian/Ubuntu: sudo apt install python3-tk)。

从源码安装:

git clone https://github.com/douftp/douftp-server.git
cd douftp-server
pip install -e ".[dev]"
douftp-server
# 或
python -m douftp_server

使用

  1. 填写账号、密码、监听地址、端口、共享路径
  2. 点击「启动」,状态栏变绿并显示监听地址
  3. 菜单「Douftp Server → 设置 / 偏好设置」配置被动端口范围与匿名访问
  4. 客户端用该账号密码连接即可

匿名用户默认只读;写入操作请使用配置的账号登录。

项目结构

douftp-server/
├── pyproject.toml          # PEP 621 打包配置
├── build.spec / build.sh   # PyInstaller 桌面打包(可选)
├── src/
│   ├── douftpserver.py     # 兼容入口(PyInstaller 使用)
│   └── douftp_server/      # 包
│       ├── __init__.py     # 版本信息
│       ├── __main__.py     # python -m douftp_server
│       ├── cli.py          # douftp-server 命令入口
│       ├── app.py          # Tk 主窗口与 FTP 服务逻辑
│       ├── utils/          # 配置存储、通用函数、全局变量
│       └── window/         # 关于窗口
└── resources/              # PyInstaller 图标

发布(PyPI)

python -m pip install -U build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

许可证

MIT,见 LICENSE。

Metadata

Release files for douftp-server 0.1.0

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

Source distribution (sdist)

Source distribution for douftp-server 0.1.0
File Size Uploaded Provenance Actions
douftp_server-0.1.0.tar.gz 11.7 kB Without provenance Details for douftp_server-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for douftp-server 0.1.0
File Interpreter ABI Platform Actions
douftp_server-0.1.0-py3-none-any.whl Python 3 none any Details for douftp_server-0.1.0-py3-none-any.whl

Total release size: 24.8 kB

Release files / douftp_server-0.1.0.tar.gz

Download URL douftp_server-0.1.0.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1440c62a170075cc0428d8f8f22ec2ff93ee2bf73be77128172289ce561d8537
BLAKE2b-256 checksum
How to use checksums
1ae517314f1a8d9f8d195906f34484f46046446e8bd24f398e4450a11f5d1bd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.11

Release files / douftp_server-0.1.0-py3-none-any.whl

Download URL douftp_server-0.1.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f95585587b98a8e46b6f4e8aa25281dfd69c8166fabe3df010460a4f2f2da21a
BLAKE2b-256 checksum
How to use checksums
4c3dd9c032fd2d52584ef06c2ce0003b4bd6d62381f855d9378fef17720c931e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.11

Security for douftp-server 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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