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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: asfquart-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 508b4754429a1fbe94bec4b4e4e0d1e534b21483e55aab1479dea52c2025707d
MD5 3b67cf5d3a7a961305cee821cc38d565
BLAKE2b-256 50128d9a40c1d8e183bb90cb2ce7b14b99eda10d0f42bc0c7907f78c6acda610

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: asfquart-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4a258742719ec3fedd8f593df53fbbd47fa721e915317f1db75c7282e856979f
MD5 70af52f502cc50fe7e12690b123cc1e0
BLAKE2b-256 571bd0df246f3da7be2c9b36d319cb0150bafe7cf1bf7cfc6452496c3b83d417

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