Apache infrastructure

Clone this repo:
  1. 9d226ea Incorporate lint fixes to ldap.py from PR #9 by Greg Stein · 8 days ago main
  2. 97b8d0c remove KW; it is unused by Greg Stein · 8 days ago
  3. 873d37a this part of #8 was not intended to be merged by Greg Stein · 8 days ago
  4. 0f6fd45 Merge pull request #8 from apache/open_fixes by Chris Thistlethwaite · 8 days ago
  5. 99c7378 Merge pull request #2 from apache/gs/runner by Greg Stein · 9 days 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()