Serve the current directory over HTTP using Python's standard library.
Project description
serve
A tiny command-line HTTP server built on Python's standard library. It can serve a directory or expose a single file.
Usage
Serve the current directory on port 8000:
uvx --from srve serve
Use a different port:
uvx --from srve serve 8080
Serve a single file:
uvx --from srve serve ./document.pdf
Serve a single file on a different port:
uvx --from srve serve ./document.pdf 8080
Bind to a specific address or serve another directory:
uvx --from srve serve --bind 127.0.0.1 --directory ./public 8080
Run a local checkout:
uvx --from ~/serve serve
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file srve-0.2.0.tar.gz.
File metadata
- Download URL: srve-0.2.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
781c95c7311b4c6a6fd3822e5ff3e3319d0366ae8307f02f6988a4d161b2778f
|
|
| MD5 |
98a38316bb27b545680fea5d5e1ba5a3
|
|
| BLAKE2b-256 |
7b9e3efed35c495319ee75ed398740d2b35fa8c1dd46a8d1be32d85e0b1babd9
|
File details
Details for the file srve-0.2.0-py3-none-any.whl.
File metadata
- Download URL: srve-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5646fe751d615de5bd168aff1f73e98bbf16dea044eedaf3c733fe3d0cad0925
|
|
| MD5 |
7e805601d00f1bf8e8196d3e4062dd4a
|
|
| BLAKE2b-256 |
1ef50801c5c49faa26afe81ae9cfd9af477ab5f9f4df504ea21a55900f976cd0
|