Metadata-Version: 2.5
Name: crumpet
Version: 0.1.0
Summary: Cosy local HTTP hosting
Project-URL: Issues, https://github.com/cariad/crumpet/issues
Project-URL: Source, https://github.com/cariad/crumpet
Author-email: Cariad Eccleston <cariad@cariad.earth>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 1 - Planning
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Typed
Requires-Python: >=3.14
Requires-Dist: notwork<2,>=1.1.0
Requires-Dist: rootle<2,>=1.2.0
Description-Content-Type: text/markdown

# crumpet

Cosy local HTTP hosting.

## Usage

### Command line

```text
crumpet [DIRECTORY] [--port PORT]
python -m crumpet [DIRECTORY] [--port PORT]
```

Serves `DIRECTORY` (default: the working directory) on `localhost` at `PORT` (default: 8000) until Ctrl+C.

### Python

`Server` is a context manager that serves a directory on `localhost` for the duration of the `with` block:

```python
from crumpet import Server

with Server("build", port=8000) as server:
    print(server.url)  # http://localhost:8000/
```
