Skip to main content

Local network file server with browser UI — browse, upload, and delete files over WiFi

Project description

LANserve

A lightweight local file server with a clean browser UI — browse, upload, and delete files over your WiFi network from any device.

No dependencies. No config. Just run it.


Install

pip install lanserve

Quick start

lanserve

That's it. Open the printed URL in any browser on your network:

 LANserve running!
   Local:   http://localhost:8080
   Network: http://192.168.x.x:8080
   Serving: /your/current/directory

On mobile, open the Network URL. On desktop, use either.


Features

  • Browse your file system from any device on the same network
  • Upload files via drag-and-drop or file picker, with a real-time progress bar
  • Delete files directly from the UI
  • Choose upload folder from a dropdown
  • File type icons and human-readable file sizes
  • Threaded — large uploads don't freeze browsing
  • Zero external dependencies — Python 3.11+ standard library only

Usage

lanserve [options]

Options:
  --port PORT, -p PORT    Port to listen on        (default: 8080)
  --dir DIR,  -d DIR      Directory to serve        (default: current directory)
  --host HOST             Address to bind to        (default: 0.0.0.0)
  --version, -v           Show version and exit

Examples

# Serve a specific folder
lanserve --dir ~/Downloads

# Use a different port
lanserve --port 9000

# Serve Downloads on port 9000
lanserve --dir ~/Downloads --port 9000

Run without installing

git clone https://github.com/Dev-syphax/lanserve.git
cd lanserve
python -m lanserve

Security

LANserve is designed for trusted local networks only (home, office LAN, dev WiFi).

  • There is no authentication — anyone on the network can browse and upload files.
  • DELETE requests are path-traversal protected — files outside the served directory cannot be deleted.
  • Do not expose this server to the public internet.

Requirements

  • Python 3.11 or newer
  • No dependencies (bundled with Python standard library)

Contributing

See CONTRIBUTING.md.


License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lanserve-1.0.2.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lanserve-1.0.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file lanserve-1.0.2.tar.gz.

File metadata

  • Download URL: lanserve-1.0.2.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lanserve-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fec0a729acc16fae3bfafd80a9525aeeff895ed11ca4971eedcbffabb3492163
MD5 18fedfb7c16126ea2ee051a7a92ab8a6
BLAKE2b-256 937b2e11932400edc07d3c384b40afe0e678353f4eb218b1330ca6c755bd4a64

See more details on using hashes here.

Provenance

The following attestation bundles were made for lanserve-1.0.2.tar.gz:

Publisher: publish.yml on Dev-syphax/lanserve

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lanserve-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: lanserve-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lanserve-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b4400a78fa458854cfce31c51d9bb4ec7b6d63e239dc0e02b85281e34b18a0a5
MD5 4ec6acc7a71866a02c380b5c2dcadd90
BLAKE2b-256 d68b28917a4487645059ff9bd7c60f6e8ac977477444f198c9e0beaf3880c4da

See more details on using hashes here.

Provenance

The following attestation bundles were made for lanserve-1.0.2-py3-none-any.whl:

Publisher: publish.yml on Dev-syphax/lanserve

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page