A small and flexible ASGI application framework for modern web.
Project description
version: v0.9.0
spangle
A small and flexible ASGI application framework for modern web.
Note: spangle is on pre-alpha stage, so any updates may contain breaking changes.
Getting Started
Install
pip install spangle
pip install hypercorn # or your favorite ASGI server
Hello world
# 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
Features
- Components with dependencies
- Flexible url params
Jinja2built-in support- Uniformed API
- Single page application friendly
...and more features. See documents.
Contribute
Contributions are welcome!
- New features
- Bug fix
- Documents
Prerequisites
- Python>=3.9
- git
- poetry
Build
# clone this repository.
git clone http://github.com/tkamenoko/spangle.git
# install dependencies.
poetry install
Test
poetry run poe test
Update API docs
poetry run poe doc:build
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
spangle-0.9.0.tar.gz
(26.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
spangle-0.9.0-py3-none-any.whl
(32.2 kB
view details)
File details
Details for the file spangle-0.9.0.tar.gz.
File metadata
- Download URL: spangle-0.9.0.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.4.0-77-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e918b7efd1703586eff40524d3fa9a81699c9c75416dde6466904a468085693
|
|
| MD5 |
685bb19542514421eab859976b180b91
|
|
| BLAKE2b-256 |
320906222d4337d82ecaed9ea859fc6cd3c9c1556ab836af383f9d39ad6de3d2
|
File details
Details for the file spangle-0.9.0-py3-none-any.whl.
File metadata
- Download URL: spangle-0.9.0-py3-none-any.whl
- Upload date:
- Size: 32.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.4.0-77-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4234ef56c09763a8f341ce3baa3a944c7d01289105bd6378726d8681192d3c50
|
|
| MD5 |
276aa518f7ee02a6851291bbc2949825
|
|
| BLAKE2b-256 |
2df78ced6fc16738356ae9ede06c96dae483ae40e975704688affa72398a20d8
|