Simple HTTP server with custom commands and HTML support
Project description
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
webserverautofileswitch
📦 Usage
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!
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 ezhttpy-0.1.1.tar.gz.
File metadata
- Download URL: ezhttpy-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38410d7e40434a0fb3136edd25eaa367db6bb5034ab2a27617103a1eb16e817e
|
|
| MD5 |
40632dfb4f5b98933976c1a81351d83c
|
|
| BLAKE2b-256 |
f8534e731aa109a6898b429cd05da86dff830f2585bfd4ee6abeef066a1c46bc
|
File details
Details for the file ezhttpy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ezhttpy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
063c4bfef4a9187403dc50ddf53d151c4260e59f22e3f7f60a472c5947318592
|
|
| MD5 |
d0eb569fa8eb31e6dda6baa08a5686ba
|
|
| BLAKE2b-256 |
ca8a90965bd38cf7abc22b9ada0d53a06326b04f0759c679b02940b54b7e75c0
|