Skip to main content

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

Metadata

Release files for spangle 0.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spangle 0.12.0
File Size Uploaded Provenance
spangle-0.12.0.tar.gz 27.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for spangle 0.12.0
File Interpreter ABI Platform
spangle-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 61.2 kB

Release files / spangle-0.12.0.tar.gz

Download URL spangle-0.12.0.tar.gz
Size 27.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8b2b718192e6c67bac4adf0b605bdc68b984b6a4c373d3a1ad2629f2067e1ac4
BLAKE2b-256 checksum
How to use checksums
16f6ffa831f9d249eb31e09106b0060e20ce2002fa41a27af5ff76c690634d64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Linux/5.4.0-90-generic

Release files / spangle-0.12.0-py3-none-any.whl

Download URL spangle-0.12.0-py3-none-any.whl
Size 33.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27db89d487e6c2793471d561dc2db2688b9569fef7bb25ab49f13bb469bd161f
BLAKE2b-256 checksum
How to use checksums
a136ea34eafbf1e652bdd74cc6097e905a3fd5c541c71dbed6a6f51fa5eace07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Linux/5.4.0-90-generic

Security for spangle 0.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page