Skip to main content

A small and flexible ASGI application framework for modern web.

Project description

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.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.7.3.tar.gz (24.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.7.3-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spangle-0.7.3.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/4.15.0-106-generic

File hashes

Hashes for spangle-0.7.3.tar.gz
Algorithm Hash digest
SHA256 c99c1d7578ca3c3918ac3357bbc18d792de8c1cba074ce9dad90f29cf140e96c
MD5 eb3c275c467df4e13fe0e6cc82880532
BLAKE2b-256 c17702029fd791e29460d1508861b277a32f365ab88a9688889ccad0844bfa75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spangle-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.2 Linux/4.15.0-106-generic

File hashes

Hashes for spangle-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1de2937c5672e7bc7145fcf788de6a9398f0a629ed746b1a67044c4014ea691b
MD5 b4ef853a32a1979135135a9375a4d1ac
BLAKE2b-256 676ef19f44e41a0231119524beff993143d9f1c52978b86dd5175a40cf95bfa8

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