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.5.3.tar.gz (24.2 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.5.3-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spangle-0.5.3.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.8.1 Linux/4.15.0-74-generic

File hashes

Hashes for spangle-0.5.3.tar.gz
Algorithm Hash digest
SHA256 83def780fd820d552572c6841128e2bb23b341e72132e2ddd8c4dcf0094422cd
MD5 d6576b571348bd0d4d825cc152aca9c4
BLAKE2b-256 aabe8dad85fc2b00d0a88dfe46acafdb8e7916dbccabe3f120b730b4521130f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spangle-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.2 CPython/3.8.1 Linux/4.15.0-74-generic

File hashes

Hashes for spangle-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cc3b4c9fc33c6fe5ce5c2d557aa5c73d9c3fb4968fc85cdaaba1d0a8f3ab5f2d
MD5 00f47967f9a2483eb5a23bd181b572ab
BLAKE2b-256 5833a0c214625fbc7b99b076d30ae1250cf44abc62383aeae756b4967f8d850b

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