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.

Source Distribution

spangle-0.3.0.tar.gz (22.5 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.3.0-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spangle-0.3.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/4.15.0-70-generic

File hashes

Hashes for spangle-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ce9c4e5de42190e006d0283ad90adba14f2a53710bdc9c849eb6ebb8972986f0
MD5 243b0b42527159454baf973a0ef9b58d
BLAKE2b-256 43fa2b4ff7ef9e1c1552dda1cdfc9c150246016426204f5e56bd50ed163fd90d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spangle-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/4.15.0-70-generic

File hashes

Hashes for spangle-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 070058e5f2b67050281d01b30152bef296ad5c1b4e2c259bc96c86bebb533a40
MD5 03cfdec02ad12f5087bec7062bf33b1e
BLAKE2b-256 338759ba2969094e2c5f4db7b1688e16a649473a1cd3aa436c6cc5790f14ec08

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