Skip to main content

ASF Quart Framework

Project description

asfquart - a Quart framework for the ASF

Unit Tests

This repository will house the future Quart framework for use within ASF web applications. Nothing much to see here yet...

For more detailed documentation, see the documentation page.

Primer

import asfquart
from asfquart.auth import Requirements as R

def my_app():
    # Construct the quart service. By default, the oauth gateway is enabled at /oauth.
    app = asfquart.construct("my_app_service")

    @app.route("/")
    async def homepage():
        return "Hello!"

    @app.route("/secret")
    @asfquart.auth.require(R.committer)
    async def secret_page():
      return "Secret stuff!"
    
    asfquart.APP.run(port=8000)


if __name__ == "__main__":
    my_app()

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

asfquart-0.1.8.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

asfquart-0.1.8-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file asfquart-0.1.8.tar.gz.

File metadata

  • Download URL: asfquart-0.1.8.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for asfquart-0.1.8.tar.gz
Algorithm Hash digest
SHA256 ebede3ab50ae2c6585c4224155bb572b2f4556ffef6c6b6a0154145c4046848d
MD5 bfce1db7833aba198fe7a27f8e8f5e26
BLAKE2b-256 bdcb6ee3abce06aa9c180e1b2d01f04497c70e00e1961f0c935a9b3eb77cf596

See more details on using hashes here.

Provenance

File details

Details for the file asfquart-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: asfquart-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for asfquart-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 96e0f2facac949ad35fecc4bc44ee3fe00b70b7182bf678b7a67eddcbeafa495
MD5 1a806984e35a62ca0246a1b71b17fdec
BLAKE2b-256 45475473c3d1cf94b53ee055ee473a4ec2f92f5e6b04f546f00488785242182e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page