https://github.com/benzlokzik/singlefile-webserver
Python 🐍 from-scratch file webserver 🌐 without any dependencies 🚀 except Python 🐍 (with good page render 🎨)
https://github.com/benzlokzik/singlefile-webserver
backend fileserver fileserver-python gpl3 gplv3 opensource python python3 script single-file spaghetti spaghetti-code web
Last synced: about 20 hours ago
JSON representation
Python 🐍 from-scratch file webserver 🌐 without any dependencies 🚀 except Python 🐍 (with good page render 🎨)
- Host: GitHub
- URL: https://github.com/benzlokzik/singlefile-webserver
- Owner: benzlokzik
- License: gpl-3.0
- Created: 2025-02-01T13:52:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-21T14:14:08.000Z (6 months ago)
- Last Synced: 2025-08-21T16:56:01.033Z (6 months ago)
- Topics: backend, fileserver, fileserver-python, gpl3, gplv3, opensource, python, python3, script, single-file, spaghetti, spaghetti-code, web
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌐 Singlefile Web Server
This is a simple web server that serves with a single file ⚡️
## ✨ Features
- 🚀 Has no dependencies
- 📂 Renders HTML for folders/directories
- 📝 Renders Markdown
- ⚡️ Asynchronous
- 🌚 Dark and 🌞 light themes
## 🛠️ How to Run
- 🌍 From Web (always latest version)
```shell
curl -LsSf https://raw.githubusercontent.com/benzlokzik/singlefile-webserver/refs/heads/main/server.py | python3
```
- 💻 From Code
```shell
python3 server.py
```
## 📋 TODO
- 🛠️ Build binaries
- 🧠 Optimize render, add more markup languages
- 📡 Make better streams for large files
- 📥 Add download availability via compressed/archive files (e.g., `.zip`, `.tar.gz`)