Willpyre. Fasten your seatbelts!
Project description
Willpyre
Willpyre is a micro ASGI framework. Willpyre gives flexibility and control, but abstracts ASGI to some extent and adds reusability to your code.
Quickstart
It is quite simple to use Willpyre.
from willpyre import App, Router
router = Router()
@router.get('/')
async def index(req,res):
res.body = "<h1>Please fasten your seatbelts!!</h1>"
return res
app = App(router)
It should run with any ASGI server like Uvicorn
, Daphne
, Hypercorn
.
To run with Uvicorn, install Uvicorn using
pip install uvicorn
and then
uvicorn <file>:app
The framework is written in pure-python and can run in PyPy or CPython. Tested on version 3.6 and above.
Features
- Predefined response objects for fast development.
- Optional base response object passed to handlers.
- Async.
- Light and tiny.
- And lots more..
Contributions
It is open to contributors willing to commit. Please open issues if you find something wierd. Fork this if you want to propose changes.
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
willpyre-0.0.15.tar.gz
(3.6 MB
view hashes)
Built Distribution
Close
Hashes for willpyre-0.0.15-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc15a37efd09a191d6d0cea7d717917052c3763bbd084992c4f9c3a4a5cf0eda |
|
MD5 | 7918b4c26dfd7d98d6e350f142ef259a |
|
BLAKE2b-256 | ec8bf08dbd573c3d477e9d8f89e033e1928da5acacaad806c5aed6859a4b0a57 |