Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.1.2 instead.
Reason given by maintainers: superseded by 1.1.1, packaging fix

py-file-server

Lightweight HTTP file server with a modern web UI. Python 3.10+, no third-party dependencies.

Disclaimer. Provided AS IS, without warranty of any kind, express or implied. Use entirely at your own risk. This tool exposes a folder on your machine over the network: anyone who can reach the port can list and download its files, and an authenticated admin can upload, rename and delete them. The author accepts no liability for data loss, corruption, unauthorised access or disclosure, business interruption, or consequential damages. You are responsible for checking which folder you expose, setting a strong ADMIN_PASSWORD, limiting the server to a network you trust, keeping tested backups, and being authorised to share the files. Not certified for regulated, forensic, safety-critical or high-assurance use. See DISCLAIMER.md; LICENSE is the governing text and prevails where the two differ.

Install

pip install py-file-server

Run

set ADMIN_PASSWORD=yourpassword
py-file-server

pfs is installed as a shorter alias for the same command:

pfs --dir D:\MyFiles

Open http://localhost:8113

Options

py-file-server --port 9000 --dir D:\MyFiles
Option Default Description
--port 8113 TCP port
--dir ./share Root folder exposed in the browser

Environment

Variable Default Description
ADMIN_PASSWORD admin123 Admin login password — set this in production

Logging

Access lines and events go to both the console and share.log, a rotating file capped at 5 MB with 5 backups. Clients that drop a connection (a browser opening a speculative socket, or a cancelled download) are recorded at debug level rather than raising a traceback.

Upload settings live in config.json inside the shared folder. The file is created automatically on first run if missing (default: 100 MB max upload, .sh blocked).

Metadata

Release files for py-file-server 1.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 py-file-server 1.1.0
File Size Uploaded Provenance
py_file_server-1.1.0.tar.gz 18.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py-file-server 1.1.0
File Interpreter ABI Platform
py_file_server-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.0 kB

Release files / py_file_server-1.1.0.tar.gz

Download URL py_file_server-1.1.0.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e434454b18714d1996cfe1693285990f588a3f46e7e02a861309f4d2f62fbb4e
BLAKE2b-256 checksum
How to use checksums
f152097bb3bb675dd984ca64683c2e45066a9c89d5065965ab86331747481f9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / py_file_server-1.1.0-py3-none-any.whl

Download URL py_file_server-1.1.0-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c54a3eb98f3d385d0da394212fec894383cd39ff936d337567640eb1da6b108
BLAKE2b-256 checksum
How to use checksums
a466e118accfe038fb89e7ebfd8838235a7cf8d1fbc0e09e203b331f8ce70fc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for py-file-server 1.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

1.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