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, for very simple use cases, is the boilerplate and dependencies.
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.
At its core, this project was designed with the following features in mind:
- Handle
HTTProutes with a simplerequest-responsemodel. - Support ways to serve static content from a folder (eg: HTML, CSS, JS).
- A zero-dependency
server.pythat just works out of the box as a simple web server. - Supports multiple response types, with ability to render custom templated responses.
With these basic requirements in place, rapid prototyping is possible with very little overhead.
Metadata
Release files for anyserver 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anyserver-0.3.4.tar.gz | 19.9 kB | Without provenance | Details for anyserver-0.3.4.tar.gz |
Release files / anyserver-0.3.4.tar.gz
| Download URL | anyserver-0.3.4.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d35a0285f5f9361f0918da5c68fef2f5b2f9cbfbc9a4a258bd8a1b3b43247e6
|
|
BLAKE2b-256 checksum How to use checksums |
975f664926e17cae03a711bc8c54431faf7e4e30c6e08b9e4ece301ac905de48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for anyserver 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.