Skip to main content

A small and flexible ASGI application framework for modern web.

Project description


version: v0.12.0

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.12.0.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

spangle-0.12.0-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for spangle-0.12.0.tar.gz
Algorithm Hash digest
SHA256 8b2b718192e6c67bac4adf0b605bdc68b984b6a4c373d3a1ad2629f2067e1ac4
MD5 a0d37c6f0b1e54952a62408191220145
BLAKE2b-256 16f6ffa831f9d249eb31e09106b0060e20ce2002fa41a27af5ff76c690634d64

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for spangle-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27db89d487e6c2793471d561dc2db2688b9569fef7bb25ab49f13bb469bd161f
MD5 de017362844261ee0f2b2bfe7d5c24ed
BLAKE2b-256 a136ea34eafbf1e652bdd74cc6097e905a3fd5c541c71dbed6a6f51fa5eace07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page