Skip to main content

A small and flexible ASGI application framework for modern web.

Project description

version: v0.8.0


PyPI PyPI - License

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


pip install spangle
pip install hypercorn # or your favorite ASGI server

Hello world

import spangle

api = spangle.Api()

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
# install dependencies.
poetry install


poetry run poe test

Update API docs

poetry run poe doc-build

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for spangle, version 0.8.0
Filename, size File type Python version Upload date Hashes
Filename, size spangle-0.8.0-py3-none-any.whl (29.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size spangle-0.8.0.tar.gz (25.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page