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.7.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

asfquart-0.1.7-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asfquart-0.1.7.tar.gz
  • Upload date:
  • Size: 19.6 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.7.tar.gz
Algorithm Hash digest
SHA256 18299cb0ef23484bd55604d530f5789140d2459f6630808335afb2371944bb50
MD5 c661e4d5c93bbc67dff6994ae719497b
BLAKE2b-256 6986e07f037611705c9675fbdc6f2f50b85f8cdafd0930da680e0469e6be7463

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: asfquart-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 22.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f631f93ab8b634f4afe924dfa2945457cab8dd35b79ea1e5213afb8da500d2cd
MD5 efb4cb6dffbc13a6c3c95bd69824d351
BLAKE2b-256 f68eef35b54975cb31ac3eedb82ceed22f27f597bbc556f19b510a52a44d62ec

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