Skip to main content

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,),
        ),
    ),
)

Metadata

Release files for aiohttp-declare-app 0.1.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 aiohttp-declare-app 0.1.0
File Size Uploaded Provenance Actions
aiohttp_declare_app-0.1.0.tar.gz 13.4 kB Without provenance Details for aiohttp_declare_app-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiohttp-declare-app 0.1.0
File Interpreter ABI Platform Actions
aiohttp_declare_app-0.1.0-py3-none-any.whl Python 3 none any Details for aiohttp_declare_app-0.1.0-py3-none-any.whl

Total release size: 16.1 kB

Release files / aiohttp_declare_app-0.1.0.tar.gz

Download URL aiohttp_declare_app-0.1.0.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
48c9e9f4d87376310c18c447d793684b95a9fd75082d6fdca7ce7b5835981965
BLAKE2b-256 checksum
How to use checksums
e5673aec6dce2d1dc57c86cc4f830ca654612646c75ee09a09faf11cebef5336
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.21

Release files / aiohttp_declare_app-0.1.0-py3-none-any.whl

Download URL aiohttp_declare_app-0.1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f963ddbac3666e85038a9733087257f55d91c6e27d9e2502b531c409b7cde614
BLAKE2b-256 checksum
How to use checksums
b63ccb24dd0c8aad4344f2444a910b27fd270a43eeadd4d8dc1ec5da0e4e6f48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.21

Security for aiohttp-declare-app 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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