A small and flexible ASGI application framework for modern web.
Project description
version: v0.8.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.8.0.tar.gz
(25.0 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.8.0-py3-none-any.whl
(29.9 kB
view details)
File details
Details for the file spangle-0.8.0.tar.gz.
File metadata
- Download URL: spangle-0.8.0.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.9.0 Linux/5.4.0-56-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b382f189810c75c6f53caf750f22ea6addcf44cf3c81b85e66bd384ed828274
|
|
| MD5 |
059a77c98ee3e379a0f08d4d669c7233
|
|
| BLAKE2b-256 |
8e96e8297e6fe29cf644ece0580b6437638ea193ff47a5056a4e34d4a9f813b2
|
File details
Details for the file spangle-0.8.0-py3-none-any.whl.
File metadata
- Download URL: spangle-0.8.0-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.9.0 Linux/5.4.0-56-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7c7761532772a016df4e414c1dc42f0b535321c457567933aced03a3ff0ca81
|
|
| MD5 |
5ec61a004a02e74ca1e00cc8c20508a1
|
|
| BLAKE2b-256 |
208358f38c6a17ce35d48a6c99a58932020c2e1d063fda2b1e50bd09971810fa
|