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.6.3.tar.gz (24.4 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.6.3-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spangle-0.6.3.tar.gz
  • Upload date:
  • Size: 24.4 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.6.3.tar.gz
Algorithm Hash digest
SHA256 8321292885374057a617bd965a28fca7ba816f721a5d9926413501da794d2482
MD5 869363388bf4daa2cb04ad7f5b43fb12
BLAKE2b-256 fde27fe7c2277ac0db30db7b0f8ca69b3ca6cede110facb7d762c298fcba4ddf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spangle-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 28.7 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.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 31ca61dbae5803759276cd9162d51df36b0248e60a0dc3773e194ec4c466aa26
MD5 819630db8455347146e51b79e1389dbb
BLAKE2b-256 27d7ed38c1b14c9ba70958eaf3d11599580f3c40c9f9f64fdfeb3cff977f8e9c

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