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¶
- galaxy.webapps.galaxy.api package
- Submodules
- galaxy.webapps.galaxy.api.annotations module
- galaxy.webapps.galaxy.api.authenticate module
- galaxy.webapps.galaxy.api.cloud module
- galaxy.webapps.galaxy.api.cloudauthz module
- galaxy.webapps.galaxy.api.common module
- galaxy.webapps.galaxy.api.configuration module
- galaxy.webapps.galaxy.api.container_resolution module
- galaxy.webapps.galaxy.api.dataset_collections module
- galaxy.webapps.galaxy.api.datasets module
- galaxy.webapps.galaxy.api.datatypes module
- galaxy.webapps.galaxy.api.display_applications module
- galaxy.webapps.galaxy.api.dynamic_tools module
- galaxy.webapps.galaxy.api.extended_metadata module
- galaxy.webapps.galaxy.api.folder_contents module
- galaxy.webapps.galaxy.api.folders module
- galaxy.webapps.galaxy.api.forms module
- galaxy.webapps.galaxy.api.genomes module
- galaxy.webapps.galaxy.api.group_roles module
- galaxy.webapps.galaxy.api.group_users module
- galaxy.webapps.galaxy.api.groups module
- galaxy.webapps.galaxy.api.histories module
- galaxy.webapps.galaxy.api.history_contents module
- galaxy.webapps.galaxy.api.item_tags module
- galaxy.webapps.galaxy.api.job_files module
- galaxy.webapps.galaxy.api.job_lock module
- galaxy.webapps.galaxy.api.job_ports module
- galaxy.webapps.galaxy.api.jobs module
- galaxy.webapps.galaxy.api.libraries module
- galaxy.webapps.galaxy.api.library_contents module
- galaxy.webapps.galaxy.api.library_datasets module
- galaxy.webapps.galaxy.api.licenses module
- galaxy.webapps.galaxy.api.metrics module
- galaxy.webapps.galaxy.api.page_revisions module
- galaxy.webapps.galaxy.api.pages module
- galaxy.webapps.galaxy.api.plugins module
- galaxy.webapps.galaxy.api.provenance module
- galaxy.webapps.galaxy.api.quotas module
- galaxy.webapps.galaxy.api.remote_files module
- galaxy.webapps.galaxy.api.roles module
- galaxy.webapps.galaxy.api.sanitize_allow module
- galaxy.webapps.galaxy.api.search module
- galaxy.webapps.galaxy.api.short_term_storage module
- galaxy.webapps.galaxy.api.tags module
- galaxy.webapps.galaxy.api.tasks module
- galaxy.webapps.galaxy.api.tool_data module
- galaxy.webapps.galaxy.api.tool_dependencies module
- galaxy.webapps.galaxy.api.tool_entry_points module
- galaxy.webapps.galaxy.api.tool_shed_repositories module
- galaxy.webapps.galaxy.api.tools module
- galaxy.webapps.galaxy.api.toolshed module
- galaxy.webapps.galaxy.api.tours module
- galaxy.webapps.galaxy.api.trs_consumer module
- galaxy.webapps.galaxy.api.trs_search module
- galaxy.webapps.galaxy.api.uploads module
- galaxy.webapps.galaxy.api.users module
- galaxy.webapps.galaxy.api.visualizations module
- galaxy.webapps.galaxy.api.webhooks module
- galaxy.webapps.galaxy.api.workflows module
- galaxy.webapps.galaxy.controllers package
- Submodules
- galaxy.webapps.galaxy.controllers.admin module
- galaxy.webapps.galaxy.controllers.admin_toolshed module
- galaxy.webapps.galaxy.controllers.async module
- galaxy.webapps.galaxy.controllers.authnz module
- galaxy.webapps.galaxy.controllers.data_manager module
- galaxy.webapps.galaxy.controllers.dataset module
- galaxy.webapps.galaxy.controllers.error module
- galaxy.webapps.galaxy.controllers.forms module
- galaxy.webapps.galaxy.controllers.history module
- galaxy.webapps.galaxy.controllers.library module
- galaxy.webapps.galaxy.controllers.page module
- galaxy.webapps.galaxy.controllers.root module
- galaxy.webapps.galaxy.controllers.shed_tool_static module
- galaxy.webapps.galaxy.controllers.tag module
- galaxy.webapps.galaxy.controllers.tool_runner module
- galaxy.webapps.galaxy.controllers.user module
- galaxy.webapps.galaxy.controllers.userskeys module
- galaxy.webapps.galaxy.controllers.visualization module
- galaxy.webapps.galaxy.controllers.workflow module
- galaxy.webapps.galaxy.services package
- Submodules
- galaxy.webapps.galaxy.services.authenticate module
- galaxy.webapps.galaxy.services.base module
- galaxy.webapps.galaxy.services.dataset_collections module
- galaxy.webapps.galaxy.services.datasets module
- galaxy.webapps.galaxy.services.histories module
- galaxy.webapps.galaxy.services.history_contents module
- galaxy.webapps.galaxy.services.invocations module
- galaxy.webapps.galaxy.services.jobs module
- galaxy.webapps.galaxy.services.libraries module
- galaxy.webapps.galaxy.services.library_folder_contents module
- galaxy.webapps.galaxy.services.library_folders module
- galaxy.webapps.galaxy.services.pages module
- galaxy.webapps.galaxy.services.quotas module
- galaxy.webapps.galaxy.services.sharable module
- galaxy.webapps.galaxy.services.tools module
- galaxy.webapps.galaxy.services.users module
- galaxy.webapps.galaxy.services.visualizations module
- galaxy.webapps.galaxy.services.workflows module
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:
WebApplication
- 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.fast_app module¶
galaxy.webapps.galaxy.fast_factory module¶
Module containing factory class for building uvicorn app for Galaxy.
Information on uvicorn, its various settings, and how to invoke it can be found at https://www.uvicorn.org/.
Galaxy can be launched with uvicorn using the following invocation:
uvicorn --app-dir lib --factory galaxy.webapps.galaxy.fast_factory:factory
Use the environment variable GALAXY_CONFIG_FILE
to specify a Galaxy
configuration file. Galaxy configuration can be loading from a YAML
or an .ini file (reads app:main currently but can be overridden with
GALAXY_CONFIG_SECTION).
GALAXY_CONFIG_FILE=config/galaxy.yml uvicorn --app-dir lib --factory galaxy.webapps.galaxy.fast_factory:factory
Note
Information on additional ways to configure uvicorn can be found at https://www.uvicorn.org/.
Warning
If an ini file is supplied via GALAXY_CONFIG_FILE, the server properties such as host and port are not read from the file like older forms of configuring Galaxy.
Gunicorn is a server with more complex management options.
This factory function can be executed as a uvicorn worker managed with gunicorn with the following command-line.
gunicorn 'galaxy.webapps.galaxy.fast_factory:factory()' --env GALAXY_CONFIG_FILE=config/galaxy.ini --pythonpath lib -w 4 -k uvicorn.workers.UvicornWorker --config lib/galaxy/web_stack/gunicorn_config.py