Warning

This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

galaxy.webapps.galaxy package

Subpackages

Submodules

galaxy.webapps.galaxy.buildapp module

Provides factory methods to assemble the Galaxy web application

class galaxy.webapps.galaxy.buildapp.GalaxyWebApplication(galaxy_app, session_cookie='galaxysession', name=None)[source]

Bases: galaxy.webapps.base.webapp.WebApplication

injection_aware: bool = True
galaxy.webapps.galaxy.buildapp.app_factory(*args, **kwargs)[source]

Return a wsgi application serving the root object

galaxy.webapps.galaxy.buildapp.app_pair(global_conf, load_app_kwds=None, wsgi_preflight=True, **kwargs)[source]

Return a wsgi application serving the root object and the Galaxy application.

When creating an app for asgi, set wsgi_preflight to False to allow FastAPI middleware to handle CORS options, etc..

galaxy.webapps.galaxy.buildapp.uwsgi_app()[source]
galaxy.webapps.galaxy.buildapp.uwsgi_app_factory()
galaxy.webapps.galaxy.buildapp.postfork_setup()[source]
galaxy.webapps.galaxy.buildapp.populate_api_routes(webapp, app)[source]
galaxy.webapps.galaxy.buildapp.wrap_in_middleware(app, global_conf, application_stack, **local_conf)[source]

Based on the configuration wrap app in a set of common and useful middleware.

galaxy.webapps.galaxy.buildapp.wrap_in_static(app, global_conf, plugin_frameworks=None, **local_conf)[source]

galaxy.webapps.galaxy.fast_app module

class galaxy.webapps.galaxy.fast_app.GalaxyCORSMiddleware(*args, **kwds)[source]

Bases: starlette.middleware.cors.CORSMiddleware

__init__(*args, **kwds)[source]

Initialize self. See help(type(self)) for accurate signature.

is_allowed_origin(origin: str)bool[source]
galaxy.webapps.galaxy.fast_app.add_galaxy_middleware(app: fastapi.applications.FastAPI, gx_app)[source]
galaxy.webapps.galaxy.fast_app.initialize_fast_app(gx_webapp, gx_app)[source]