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.4.0.tar.gz (23.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.4.0-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spangle-0.4.0.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.0 Linux/4.15.0-72-generic

File hashes

Hashes for spangle-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f5f82e3d77118388877f2550dbffe460546147b29c08e0cd3690690b43aa8c23
MD5 2a253887e74fe55bce72f71076df86d4
BLAKE2b-256 d5484d8ad9d82e6008da9f82be64abdcb0698abcca45ce07d06d9ef194dfe952

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spangle-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.0 Linux/4.15.0-72-generic

File hashes

Hashes for spangle-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ee6ddd82b19688585ad83cbe20c2fb260bd1d2323d8bc44154098893b9c5319
MD5 a890c42280b94edea7d837dc79af40c0
BLAKE2b-256 e8e619ed2ddadb62a33ff2689076627d34853d4821058434e6d9a2cedd58dd06

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