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 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
  • 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.

Source Distribution

spangle-0.7.1.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spangle-0.7.1-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file spangle-0.7.1.tar.gz.

File metadata

  • Download URL: spangle-0.7.1.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

Hashes for spangle-0.7.1.tar.gz
Algorithm Hash digest
SHA256 2332fb09e1a4dc8e66133d573ae9070708844051e8b977a3cbf205a5e15b3bde
MD5 4411a90b671324b903bf669befe7683b
BLAKE2b-256 805f751e173a998431e6ce79865d3df1fd5f672324b43b4731660035dfe22dc0

See more details on using hashes here.

File details

Details for the file spangle-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: spangle-0.7.1-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

Hashes for spangle-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 773fe5df121afea79de4b9892b97367c201ededa556217f8a29740b79af45d37
MD5 19571c9996f1c16640fa3f7cd1b4c00f
BLAKE2b-256 152915f69384de84173bb821d96b2d41000bf39e9960a4b5549bfe7b1a45cdfb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page