Metadata-Version: 2.4
Name: ezhttpy
Version: 0.1.1
Summary: Simple HTTP server with custom commands and HTML support
Home-page: https://easy_http.denisvarga.eu/
Author: Denis Varga
Author-email: mail@denisvarga.eu
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary




# Easy HTTP Server

This is a simple HTTP server for Raspberry Pi or PC that can:

* ✅ Display custom HTML files
* ✅ Respond to custom POST requests (e.g. save form input to `output.txt`)
* ✅ Enable static file serving using the `webserverautofile` switch

---

## 📦 Usage

```python
from easy_http import EasyHTTPServer

server = EasyHTTPServer(
    ip='auto',
    port=8000,
    webserverautofile=True,
    webdir=None,
    custom_html_path=None
)
server.start()
```

---

## ⚙️ Arguments

| Argument            | Type   | Default       | Description                                                      |
| ------------------- | ------ | ------------- | ---------------------------------------------------------------- |
| `ip`                | `str`  | `'auto'`      | IP address to bind (`'auto'`, `'localhost'`, or a specific IP)   |
| `port`              | `int`  | `8080`        | Port to run the server on                                        |
| `webserverautofile` | `bool` | `False`       | If `True`, serves files from directory like a static file server |
| `webdir`            | `str`  | `os.getcwd()` | Directory to serve when `webserverautofile=True`                 |
| `custom_html_path`  | `str`  | `None`        | Path to custom HTML file (used when `webserverautofile=False`)   |

---

ℹ️ When `webserverautofile` is `False` and `custom_html_path` is not provided, the server shows a simple form and saves input to `output.txt`.

---

🔧 Simple, light, and useful for local web control panels or project dashboards!

