Skip to main content

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.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 py-file-server 1.1.1
File Size Uploaded Provenance
py_file_server-1.1.1.tar.gz 18.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 38.4 kB

Release files / py_file_server-1.1.1.tar.gz

Download URL py_file_server-1.1.1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2de88a2e1a04b1a04a7eae1947c553e0908a1970b48498cd380f5f6cef150a08
BLAKE2b-256 checksum
How to use checksums
ba31c23f97ef71c94266eadbe17ae8d6bfd88806d05d26248963efe056c24a43
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.1-py3-none-any.whl

Download URL py_file_server-1.1.1-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db4c7996cc68bd1aaa54f0c12573a21a126a11fc42cc4b91b0d7efdcc20b5738
BLAKE2b-256 checksum
How to use checksums
7d137fa504d027d6df7cf77146ccc1726edfc47ec792006f2c9d81a6135a497d
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.1

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