Skip to main content

A minimal ASGI-style API framework

Project description

PathiumAPI — Minimal ASGI API Framework

PathiumAPI is a tiny, synchronous-friendly ASGI-style web framework inspired by FastAPI and other micro-frameworks. It provides routing, request/ response helpers, middleware, and simple route parameter converters.

Quick start

  1. Create an app in examples/app.py (see the example in this repo).
  2. Run using an ASGI server such as uvicorn:
python -m pip install uvicorn
uvicorn examples.app:app --reload

Example

See examples/app.py for a minimal app demonstrating routing, path converters and middleware.

Development

  • Run tests: python -m pytest -q
  • Static checks: flake8 PathiumAPI.py and mypy --ignore-missing-imports PathiumAPI.py

Contributing

PRs welcome. Follow the branch naming in PLANNING.md and open a PR against main when ready.

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

pathiumapi-0.1.2.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pathiumapi-0.1.2-py3-none-any.whl (6.6 MB view details)

Uploaded Python 3

File details

Details for the file pathiumapi-0.1.2.tar.gz.

File metadata

  • Download URL: pathiumapi-0.1.2.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pathiumapi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f4e7578b608885078238590268ad4eb0c4cdc444d27de3a20cebd9f4421adb7c
MD5 8ceb6397433e3a6f009605a32a66c01f
BLAKE2b-256 669f917cc0bc71d0c3d03a65232c9c7a76b7e34885acb3090f35b08877a64839

See more details on using hashes here.

File details

Details for the file pathiumapi-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pathiumapi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pathiumapi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 782f89d4a2842375dcbe2e940658f47b2b6d985e08c3118ad055f8752b76b325
MD5 bd40bf7d0d2297c84d91c7592d3f8b53
BLAKE2b-256 0cc3aacd5c75b5940cf30339485c39d5f43d3aabc9bea28befc645220ec1ecf0

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