Skip to main content

ASGI apprication framework inspired by `responder`, `vibora`, and `express-js`.

Project description

spangle

PyPI PyPI - License

ASGI application framework inspired by responder, vibora, and express-js.

Note: spangle is on pre-alpha stage, so any updates may contain broken 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
  • Jinja2 built-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


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.3.0
Filename, size File type Python version Upload date Hashes
Filename, size spangle-0.3.0-py3-none-any.whl (26.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size spangle-0.3.0.tar.gz (22.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page