Skip to main content

Srve the current directory over HTTP using Python's standard library.

Project description

srve

A tiny command-line HTTP server built on Python's standard library. It can srve a directory or expose a single file.

Usage

Srve the current directory on port 8000:

uvx srve

Use a different port:

uvx srve 8080

Srve a single file:

uvx srve ./document.pdf

Srve a single file on a different port:

uvx srve ./document.pdf 8080

Bind to a specific address or srve another directory:

uvx srve --bind 127.0.0.1 --directory ./public 8080

Run a local checkout:

uvx --from ~/serve srve

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

srve-0.2.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

srve-0.2.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file srve-0.2.1.tar.gz.

File metadata

  • Download URL: srve-0.2.1.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

Hashes for srve-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6810df0d363b9a6c24ce74d4fa27bfe159e0f5d35d117d921bc49a93f41546ff
MD5 021e369b711cf873d62734e0cbd0368c
BLAKE2b-256 9b1ef98d50b08125a16e70290aa27091b58fefa801aaee3154e949489797fd2c

See more details on using hashes here.

File details

Details for the file srve-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: srve-0.2.1-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

Hashes for srve-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d97e8cc4e9b77ce1670af7eae923899e3f26ab09cc3b275f9802ba805edf77a4
MD5 e95b605e50d3b1b8f86f7fd848c45ced
BLAKE2b-256 65eda6329e2bfd1b5b296bbe4013ebf2020fa7ddfff5b0ae3c9f1cad46ed9f22

See more details on using hashes here.

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