Flask App

The RelengAPI Flask App is mostly a normal Flask App, but has a few additional attributes that may be of use:

class flask.Flask
authz

Access to authorization functionality outside of a request context. See Authentication and Authorization.

aws

Amazon Web Services functionality. See Using AWS.

celery

A [Celery](http://www.celeryproject.org/) app -- for internal use. See Using Celery Tasks.

db

Database access. See Using Databases.

layout

Control of the global Jinja2 layout. See Web User Interface.

memcached

Access to configured memcached caches. See Using Memcached

relengapi_blueprints

This attribute gives a list of all RelengAPI blueprints. It is different from current_app.blueprints in that it does not include blueprints from Flask extensions. Each RelengAPI blueprint has a dist attribute giving the SetupTools distribution from which the blueprint came.

Blueprints can add their own attributes to the application as necessary. These should generally begin with the name of the blueprint to avoid name collisions.