pyftpdlib
Very fast asynchronous FTP server library
Decision gist · record as of 2026-08-14
Yes, if you need to embed FTP capability in a Python application or run a lightweight FTP server. The library is actively maintained, has no known vulnerabilities, and is production-stable. However, install friction is high due to backport dependencies (pyasynchat, pyasyncore), and the license status is unclear—verify the license before use in proprietary contexts. Not recommended if you need a standalone, battle-tested FTP daemon; use vsftpd or proftpd instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later; runtime dependencies pyasynchat and pyasyncore must be installed and available.
- High install friction due to two runtime dependencies (pyasynchat, pyasyncore) that are themselves maintained as backports of deprecated stdlib modules.
- The package itself is actively maintained with recent commits, but the dependency chain adds complexity.
License · maintenance · safety
(unclear) — License status is unclear—no SPDX identifier or raw license text is available in the metadata. Verify the actual license before use in proprietary or restricted-license contexts.
last release 2026-02-07 (188 days) · last repo commit 2026-04-23 · 1,816 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 592,649 downloads/mo, #5,852 on PyPI
Alternatives
Verify before relying
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
authorizer = DummyAuthorizer()
authorizer.add_user("user", "12345", "/home/user", perm="elradfmwMT")
handler = FTPHandler
handler.authorizer = authorizer
server = FTPServer(("127.0.0.1", 21), handler)
server.serve_forever()- Whether pyasynchat and pyasyncore are actively maintained or have known stability issues in current Python versions.
- Actual license identifier and any restrictions on commercial or proprietary use.
- Performance characteristics on modern Python versions and whether benchmarks cited are current.
What it is and what it does
pyftpdlib is a pure-Python library for building FTP servers that handle concurrency asynchronously using event-driven I/O (epoll, kqueue, or select). It implements RFC-959 FTP and supports modern extensions like FTPS encryption, IPv6, Unicode filenames, and the MLSD/MLST commands. The library can run as a standalone command-line server or be embedded in an application via its API, with pluggable authorizers for managing virtual and real users on both Unix and Windows.
The package depends on pyasynchat and pyasyncore, which are maintained backports of Python's deprecated stdlib async modules. It is actively maintained and positioned as a lightweight alternative to traditional FTP daemons like vsftpd or proftpd, trading some raw throughput for better concurrent-client scaling in single-process mode. It is suitable for scenarios where you need to embed FTP capability in a Python application or run a quick file-sharing server without external dependencies.
Use it for
- Embed an FTP server directly in a Python application to serve files to remote clients without spawning a separate process.
- Set up a quick file-sharing server with command-line flags (e.g., `python3 -m pyftpdlib --write`) for ad-hoc file distribution.
- Build a custom FTP service with virtual users and per-user filesystem restrictions using the DummyAuthorizer or custom authorizer classes.
- Handle many concurrent FTP clients efficiently in a single process using asynchronous I/O instead of forking or threading.
- Implement FTPS (FTP over TLS) for encrypted file transfers in environments where traditional FTP is insufficient.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to embed FTP capability in a Python application or run a lightweight FTP server.
The library is actively maintained, has no known vulnerabilities, and is production-stable. However, install friction is high due to backport dependencies (pyasynchat, pyasyncore), and the license status is unclear—verify the license before use in proprietary contexts. Not recommended if you need a standalone, battle-tested FTP daemon; use vsftpd or proftpd instead.
Install
pyftpdlib on PyPI
Before you install
High install friction due to two runtime dependencies (pyasynchat, pyasyncore) that are themselves maintained as backports of deprecated stdlib modules. The package itself is actively maintained with recent commits, but the dependency chain adds complexity.
Requires Python 3.6 or later; runtime dependencies pyasynchat and pyasyncore must be installed and available.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the metadata. Verify the actual license before use in proprietary or restricted-license contexts.
Quickstart
from pyftpdlib.authorizers import DummyAuthorizer
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
authorizer = DummyAuthorizer()
authorizer.add_user("user", "12345", "/home/user", perm="elradfmwMT")
handler = FTPHandler
handler.authorizer = authorizer
server = FTPServer(("127.0.0.1", 21), handler)
server.serve_forever()
Verify before relying
- Whether pyasynchat and pyasyncore are actively maintained or have known stability issues in current Python versions.
- Actual license identifier and any restrictions on commercial or proprietary use.
- Performance characteristics on modern Python versions and whether benchmarks cited are current.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.6 |
| Install friction | High. Source build required |
| Runtime dependencies | 2 packagespyasynchatpyasyncore |
| Maintenance | Actively maintained 188 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 592,649 / month, #5,852 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: System AdministratorsOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Internet :: File Transfer Protocol (FTP)Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Filesystems |
Evidence: pyftpdlib-2.2.0.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ftp server library python”
- pyftpdlibBuilds asynchronous FTP servers in Python with RFC-959 compliance,…
- aioftpaioftp provides an async FTP client and server implementation for…
- pytest-localftpserverProvides pytest fixtures for running local FTP and TLS-FTP servers in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also aioftp · ftputil · proxy.py · pyforked-daapd · jeedomdaemon · parfive · pysmb · pytest-localftpserver · aiosmtplib · apache-airflow-providers-ftp