ASGI apprication framework inspired by `responder`, `vibora`, and `express-js`.
Project description
spangle
ASGI application framework inspired by responder, vibora, and express-js.
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
- Component (from
vibora!) - 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.7
- git
- poetry
- yarn
Build
# clone this repository.
git clone http://github.com/tkamenoko/spangle.git
# install dependencies.
poetry install
yarn install
Test
yarn test
Update API docs
yarn 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
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
File details
Details for the file spangle-0.7.0.tar.gz.
File metadata
- Download URL: spangle-0.7.0.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/4.15.0-99-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98d8a5929987308a1201f6b41c74cf45d656eb1ffe047e31f87f5b755961be46
|
|
| MD5 |
e9232b6ae570a1d7e6e6d3c4e8801e89
|
|
| BLAKE2b-256 |
a29eb5591a6e875b994a02c6275ace935c86b36237b3f553bc19fb1e0e78412e
|
File details
Details for the file spangle-0.7.0-py3-none-any.whl.
File metadata
- Download URL: spangle-0.7.0-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/4.15.0-99-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c35f7c154e287d1f0d94fadaacc20a286a5f49c34bc88690f6f02531c983cead
|
|
| MD5 |
5320998c6f4357722c780eaadb2a3c88
|
|
| BLAKE2b-256 |
68a23d3581b76bca150668ee6b6b4f4965df25dca33fdd9e50258536d38a5dd2
|