Apache infrastructure

Clone this repo:
  1. 99c7378 Merge pull request #2 from apache/gs/runner by Greg Stein · 19 hours ago main
  2. f0c7dc1 Merge pull request #7 from apache/sebbASF-patch-1 by Greg Stein · 20 hours ago
  3. 8695396 use the base_format parameter by Greg Stein · 20 hours ago
  4. a03e62b Docco by Sebb · 20 hours ago
  5. c47f3c5 use frozenset() to ensure no mutations by Greg Stein · 20 hours ago

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
import asfquart.auth

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

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

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


if __name__ == "__main__":
    my_app()