https://github.com/jamesob/tiny-http-get-server
A tiny, dependency-free HTTP server for Python 3
https://github.com/jamesob/tiny-http-get-server
http http-server no-dependencies python3 tiny
Last synced: 7 months ago
JSON representation
A tiny, dependency-free HTTP server for Python 3
- Host: GitHub
- URL: https://github.com/jamesob/tiny-http-get-server
- Owner: jamesob
- Created: 2022-09-18T01:55:13.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-18T02:00:33.000Z (over 3 years ago)
- Last Synced: 2025-07-15T09:06:31.227Z (9 months ago)
- Topics: http, http-server, no-dependencies, python3, tiny
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tiny-http-get-server
A single-file, dependency free way to create a simple webserver that responds to
GET requests with Python 3 stdlib. Oddly enough, `http.server` doesn't provide an
easy way to do this out of the box.
## Install and usage
1. Copy this file
2. Modify `MyReqHandler.get_content()` - and whatever else you'd like!
## Example usages
- Making a simple, dependency free [Prometheus
exporter](https://github.com/prometheus/docs/blob/main/content/docs/instrumenting/exposition_formats.md).