version |
---|
v0.12.0 |
A small and flexible ASGI application framework for modern web.
Note: spangle
is on pre-alpha stage, so any updates may contain breaking changes.
pip install spangle
pip install hypercorn # or your favorite ASGI server
# hello.py
import spangle
api = spangle.Api()
@api.route("/")
class Index:
async def on_request(self, req, resp):
resp.set_status(418).set_text("Hello world!")
return resp
hypercorn hello:api
- Components with dependencies
- Flexible url params
Jinja2
built-in support- Uniformed API
- Single page application friendly
...and more features. See documents.
Contributions are welcome!
- New features
- Bug fix
- Documents
- Python>=3.9
- git
- poetry
# clone this repository.
git clone http://github.com/tkamenoko/spangle.git
# install dependencies.
poetry install
poetry run poe test
poetry run poe doc:build