Web API Utils
Project description
wau — Web API Utils
Web API Utils, or short wau, is a thin layer on top of Werkzeug to provide a simple and consistent interface for writing APIs in Python. wau is built for educational purposes and is not intended for production use. It is opinionated, as it only supports JSON as data format. It uses simple type annotations to define the expected input and output of the API endpoints. Common tasks as authentication, CORS and server-sent events are supported by default.
Installation
Install from PyPI:
pip install wau
or with uv:
uv add wau
Testing
Test dependencies are separated from runtime dependencies in pyproject.toml
using the test dependency group.
Run the test suite:
uv run --group test python -m pytest -q
Run doctests:
uv run --group test python -m doctest .\wau.py
Publishing
Build package artifacts:
uv build
Validate metadata and README rendering:
uvx twine check dist/*
Upload to TestPyPI first:
uv publish --publish-url https://test.pypi.org/legacy/
Then publish to PyPI:
uv publish
License
This project is licensed under GNU LGPL v3 or later (LGPL-3.0-or-later).
If you distribute modified versions of this library, those library modifications must be published under the same license terms.
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 wau-0.1.0.tar.gz.
File metadata
- Download URL: wau-0.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaa95af726258d7530b24f552e667300294a0ed60f7ceb41d87d86ed0cb3b803
|
|
| MD5 |
790820e6e226ffcc5cf08ace227d9228
|
|
| BLAKE2b-256 |
80422788485ef1d5bdb7a30dfa59aca0a6af85b2fe413dc1a28db2e64ab1c50a
|
File details
Details for the file wau-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wau-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a137250bac4fb608b9367da55210d2dd72479481093de2b2edde3b04dd251703
|
|
| MD5 |
9e17b64e7408b474fd06c0300ddc6b61
|
|
| BLAKE2b-256 |
a69a326edcff77d9a9c390d24b997ba22dc6250547c37ba9ab704231cba1f55f
|