Add your description here
Project description
aiohttp app declaration API
Adding sub-apps into aiohttp does not add nesting
and hierarchy is not well readable. Using create_app makes each
sub-app nest which makes it clear which apps are under which path.
Declare your API instead of using imperative approach:
app = create_app(
(
web.get("/hello", handle_hello),
web.get("/world", handle_world),
),
# add sub apps
(
"/api/v1",
create_app(
web.get("/foo", handle_api_foo),
middlewares=(auth,),
),
),
)
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
aiohttp_declare_app-0.1.0.tar.gz
(13.4 kB
view details)
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 aiohttp_declare_app-0.1.0.tar.gz.
File metadata
- Download URL: aiohttp_declare_app-0.1.0.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48c9e9f4d87376310c18c447d793684b95a9fd75082d6fdca7ce7b5835981965
|
|
| MD5 |
521ea7f09d19e1a452ff86063e388e4a
|
|
| BLAKE2b-256 |
e5673aec6dce2d1dc57c86cc4f830ca654612646c75ee09a09faf11cebef5336
|
File details
Details for the file aiohttp_declare_app-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aiohttp_declare_app-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f963ddbac3666e85038a9733087257f55d91c6e27d9e2502b531c409b7cde614
|
|
| MD5 |
0b1479e5f0e035b21f301871e2ed9165
|
|
| BLAKE2b-256 |
b63ccb24dd0c8aad4344f2444a910b27fd270a43eeadd4d8dc1ec5da0e4e6f48
|