Simple and generic python web server and utils
Project description
Simple Python Server
Simple and generic python web server, designed with simplicity and extendability in mind.
Background & motivation
I really like the simplicity and elegance of frameworks like FastAPI
, Flask
, Express.js
and Koa.js
.
# Typical usage for defining routes
app = FastAPI() # Or some other framework like flask
@app.get("/")
async def root():
return {"message": "Hello World"}
What I don't like, is the boilerplate and dependencies, for very simple use cases.
All of the above frameworks have some requirements and dependencies, meaning its not completely portable to all environments, without the need to download dependencies from the internet.
What I wanted was something that:
- A zero-dependency
server.py
that just works as a simple web server. - Handle
HTTP
routes with a simplerequest
-response
model. - Have a way to serve static content (HTML, CSS, JS) from a folder
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
anyserver-0.3.0.tar.gz
(20.0 kB
view hashes)