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
- Create an app in
examples/app.py(see the example in this repo). - 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.pyandmypy --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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pathiumapi-0.1.5.tar.gz.
File metadata
- Download URL: pathiumapi-0.1.5.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c599fdbbda370bf3502d7c2e81c752745d8ef63d8a35699981c1fccdeb3027f
|
|
| MD5 |
547817df7f1eabc7b523233ebbe17cee
|
|
| BLAKE2b-256 |
cc990ab0cc06865dd4f2e2bdc11d07322c84a03b9b1d67b7a5e1298e67034736
|
File details
Details for the file pathiumapi-0.1.5-py3-none-any.whl.
File metadata
- Download URL: pathiumapi-0.1.5-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c8a31cb6909b1a42e636ed3acf925de3ac7ab42cf8998a1d662620008701bb4
|
|
| MD5 |
0574ba5c201593ef951469e04baea698
|
|
| BLAKE2b-256 |
dd60fa9170bfec4890ae71d8445ec21195e309ecaa81a50bea1fde57e2893618
|