Launch a local website in just 3 lines of Python. Zero dependencies.
Project description
EasySite
Launch a local website in just 3 lines of Python. Zero dependencies.
Install
pip install easysite
Quick Start
Local mode (only your PC)
import easysite
site = easysite.local()
site.html = "index.html"
site.run()
Router mode (all devices on your Wi-Fi / LAN)
import easysite
site = easysite.router()
site.html = "index.html"
site.run()
Open http://<your-ip>:8080 on your phone or any other device connected to the same router!
Router with multiple pages
import easysite
site = easysite.router()
site.route("/", "index.html")
site.route("/about", "about.html")
site.run()
What's the difference?
| Mode | Who can access | Bind address |
|---|---|---|
easysite.local() |
Only this computer | 127.0.0.1 |
easysite.router() |
All devices on your network | 0.0.0.0 (your router IP) |
Features
- 3 lines to launch a site
- Zero dependencies — pure Python standard library
- Auto-detects your IP and prints it on startup
- Static file serving — CSS, JS, images served automatically
- Router mode — share your site with phones, tablets, other PCs
- Multiple pages — register routes for multi-page sites
- Colored terminal output with ASCII banner
Custom port
site = easysite.router(port=3000)
Output example
___ __ _ ___ _ _ ___(_) |_ ___
/ _ \/ _` / __| | | / __| | __/ _ \
| __/ (_| \__ \ |_| \__ \ | || __/
\___|\__,_|___/\__, |___/_|\__\___|
|___/
[OK] Site launched successfully!
Mode: NETWORK (all devices on your router)
-> This PC: http://127.0.0.1:8080
-> Network: http://192.168.1.42:8080
Your IP: 192.168.1.42
Anyone on your Wi-Fi/LAN can open the Network link above.
Press Ctrl+C to stop the server.
License
MIT
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
easysite-1.0.0.tar.gz
(5.7 kB
view details)
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 easysite-1.0.0.tar.gz.
File metadata
- Download URL: easysite-1.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c67f52d5bafe992776fb22a082cbff22fe2d36c379a07ead0f8118e4048325f5
|
|
| MD5 |
2fbf63a8d3db13b42d39db000918a14b
|
|
| BLAKE2b-256 |
90b0e134ceed2e539839eb879c82c3b0fb4481a56c1305fd73f4352aa19e5626
|
File details
Details for the file easysite-1.0.0-py3-none-any.whl.
File metadata
- Download URL: easysite-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f033da3a0210cbeb0f70293e0766de88036217f760ab2b19d52102e09a87395
|
|
| MD5 |
d5dddc535b8cd6d7c418dc393bb6678e
|
|
| BLAKE2b-256 |
cf1a056d95a2c62e158324add047659e02dadaeadfc95096416609e40a48e252
|