Skip to main content

A small and flexible ASGI application framework for modern web.

Project description


version: v0.9.1

spangle

PyPI PyPI - License

A small and flexible ASGI application framework for modern web.

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

  • Components with dependencies
  • 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.9
  • git
  • poetry

Build

# clone this repository.
git clone http://github.com/tkamenoko/spangle.git
# install dependencies.
poetry install

Test

poetry run poe test

Update API docs

poetry run poe 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.9.1.tar.gz (26.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.9.1-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spangle-0.9.1.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.4.0-77-generic

File hashes

Hashes for spangle-0.9.1.tar.gz
Algorithm Hash digest
SHA256 8552c250c75904da9472bcae699887ae8f1b16c6b401446de06b00056887b24c
MD5 356fa5a8704acbb41f80325298d0b55e
BLAKE2b-256 0fac8948c497b5a366f13ad4fba69cb0c097fb642f7228459915648610e6aa8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spangle-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.4.0-77-generic

File hashes

Hashes for spangle-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c20f88d1738f31dc0c148f67716b396435735aad7512cb2ad83e0b4b3a49cf35
MD5 3619d051e4ee2b277c3858e7d18c6707
BLAKE2b-256 7ba730ad0a2e339a5702100c6dbe1f666d4258ece9336b4b19e7ebfb7201606c

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