Metadata-Version: 2.4
Name: srve
Version: 0.2.0
Summary: Serve the current directory over HTTP using Python's standard library.
Author: Doehyun Baek
Author-email: Doehyun Baek <doehyunbaek@gmail.com>
License-Expression: MIT
Requires-Python: >=3.13
Description-Content-Type: text/markdown

# 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:

```bash
uvx --from srve serve
```

Use a different port:

```bash
uvx --from srve serve 8080
```

Serve a single file:

```bash
uvx --from srve serve ./document.pdf
```

Serve a single file on a different port:

```bash
uvx --from srve serve ./document.pdf 8080
```

Bind to a specific address or serve another directory:

```bash
uvx --from srve serve --bind 127.0.0.1 --directory ./public 8080
```

Run a local checkout:

```bash
uvx --from ~/serve serve
```

## License

MIT
