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
get_app()get_app_with_request_session()GalaxyTypeDependsdepends()get_session_manager()get_session()get_api_user()get_user()get_required_user()UrlBuilderGalaxyASGIRequestGalaxyASGIResponseget_current_history_from_session()fix_url_for()get_trans()get_admin_user()BaseGalaxyAPIControllerRestVerbFrameworkRouterRouterAPIContentTypeRouteas_form()try_get_request_body_as_json()IndexQueryTagsearch_query_param()- 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
FastAPIConfigurationFastAPIConfiguration.configuration_managerFastAPIConfiguration.whoami()FastAPIConfiguration.index()FastAPIConfiguration.version()FastAPIConfiguration.dynamic_tool_confs()FastAPIConfiguration.decode_id()FastAPIConfiguration.encode_id()FastAPIConfiguration.tool_lineages()FastAPIConfiguration.reload_toolbox()FastAPIConfiguration.__init__()
- galaxy.webapps.galaxy.api.container_resolution module
ContainerResolutionAPIControllerContainerResolutionAPIController.__init__()ContainerResolutionAPIController.index()ContainerResolutionAPIController.show()ContainerResolutionAPIController.resolve()ContainerResolutionAPIController.resolve_toolbox()ContainerResolutionAPIController.resolve_toolbox_with_install()ContainerResolutionAPIController.resolve_with_install()
- galaxy.webapps.galaxy.api.dataset_collections module
- galaxy.webapps.galaxy.api.datasets module
- galaxy.webapps.galaxy.api.datatypes module
FastAPIDatatypesFastAPIDatatypes.datatypes_registryFastAPIDatatypes.index()FastAPIDatatypes.mapping()FastAPIDatatypes.types_and_mapping()FastAPIDatatypes.sniffers()FastAPIDatatypes.converters()FastAPIDatatypes.edam_formats()FastAPIDatatypes.edam_formats_detailed()FastAPIDatatypes.edam_data()FastAPIDatatypes.edam_data_detailed()FastAPIDatatypes.__init__()
- 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
FastAPILibrariesFastAPILibraries.serviceFastAPILibraries.index()FastAPILibraries.index_deleted()FastAPILibraries.show()FastAPILibraries.create()FastAPILibraries.create_from_store()FastAPILibraries.update()FastAPILibraries.delete()FastAPILibraries.get_permissions()FastAPILibraries.set_permissions()FastAPILibraries.__init__()
- galaxy.webapps.galaxy.api.library_contents module
- galaxy.webapps.galaxy.api.library_datasets module
LibraryDatasetsControllerLibraryDatasetsController.__init__()LibraryDatasetsController.show()LibraryDatasetsController.show_version()LibraryDatasetsController.show_roles()LibraryDatasetsController.update()LibraryDatasetsController.update_permissions()LibraryDatasetsController.delete()LibraryDatasetsController.load()LibraryDatasetsController.download()
- 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
FastAPIPagesFastAPIPages.serviceFastAPIPages.index()FastAPIPages.create()FastAPIPages.delete()FastAPIPages.undelete()FastAPIPages.show_pdf()FastAPIPages.prepare_pdf()FastAPIPages.show()FastAPIPages.sharing()FastAPIPages.enable_link_access()FastAPIPages.disable_link_access()FastAPIPages.publish()FastAPIPages.unpublish()FastAPIPages.share_with_users()FastAPIPages.set_slug()FastAPIPages.__init__()
- 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
ToolDependenciesAPIControllerToolDependenciesAPIController.__init__()ToolDependenciesAPIController.index()ToolDependenciesAPIController.show()ToolDependenciesAPIController.update()ToolDependenciesAPIController.resolver_dependency()ToolDependenciesAPIController.install_dependency()ToolDependenciesAPIController.manager_dependency()ToolDependenciesAPIController.resolver_requirements()ToolDependenciesAPIController.manager_requirements()ToolDependenciesAPIController.clean()ToolDependenciesAPIController.summarize_toolbox()ToolDependenciesAPIController.toolbox_install()ToolDependenciesAPIController.toolbox_uninstall()ToolDependenciesAPIController.unused_dependency_paths()ToolDependenciesAPIController.delete_unused_dependency_paths()
- galaxy.webapps.galaxy.api.tool_entry_points module
- galaxy.webapps.galaxy.api.tool_shed_repositories module
get_message_for_no_shed_tool_config()ToolShedRepositoriesControllerToolShedRepositoriesController.serviceToolShedRepositoriesController.install_repository_revision()ToolShedRepositoriesController.install_repository_revisions()ToolShedRepositoriesController.uninstall_repository()ToolShedRepositoriesController.reset_metadata_on_selected_installed_repositories()ToolShedRepositoriesController.reset_metadata_on_installed_repositories()
FastAPIToolShedRepositories
- galaxy.webapps.galaxy.api.tools module
FormDataApiRouteJsonApiRouteget_files()FetchToolsToolsControllerToolsController.history_managerToolsController.hda_managerToolsController.hdca_managerToolsController.serviceToolsController.index()ToolsController.panel_views()ToolsController.panel_view()ToolsController.show()ToolsController.build()ToolsController.test_data_path()ToolsController.test_data_download()ToolsController.tests_summary()ToolsController.test_data()ToolsController.reload()ToolsController.all_requirements()ToolsController.requirements()ToolsController.install_dependencies()ToolsController.uninstall_dependencies()ToolsController.build_dependency_cache()ToolsController.diagnostics()ToolsController.citations()ToolsController.conversion()ToolsController.xrefs()ToolsController.download()ToolsController.raw_tool_source()ToolsController.error_stack()ToolsController.create()
- 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
FastAPIUsersFastAPIUsers.serviceFastAPIUsers.user_serializerFastAPIUsers.recalculate_disk_usage()FastAPIUsers.recalculate_disk_usage_by_user_id()FastAPIUsers.index_deleted()FastAPIUsers.undelete()FastAPIUsers.show_deleted()FastAPIUsers.get_or_create_api_key()FastAPIUsers.get_api_key()FastAPIUsers.create_api_key()FastAPIUsers.delete_api_key()FastAPIUsers.usage()FastAPIUsers.objectstore_usage()FastAPIUsers.usage_for()FastAPIUsers.get_beacon()FastAPIUsers.set_beacon()FastAPIUsers.remove_favorite()FastAPIUsers.set_favorite()FastAPIUsers.set_theme()FastAPIUsers.add_custom_builds()FastAPIUsers.get_custom_builds()FastAPIUsers.delete_custom_builds()FastAPIUsers.create()FastAPIUsers.index()FastAPIUsers.show()FastAPIUsers.update()FastAPIUsers.delete()FastAPIUsers.send_activation_email()FastAPIUsers.__init__()
UserAPIControllerUserAPIController.serviceUserAPIController.user_managerUserAPIController.get_information()UserAPIController.set_information()UserAPIController.get_password()UserAPIController.set_password()UserAPIController.get_permissions()UserAPIController.set_permissions()UserAPIController.get_toolbox_filters()UserAPIController.set_toolbox_filters()
- galaxy.webapps.galaxy.api.visualizations module
FastAPIVisualizationsFastAPIVisualizations.serviceFastAPIVisualizations.index()FastAPIVisualizations.sharing()FastAPIVisualizations.enable_link_access()FastAPIVisualizations.disable_link_access()FastAPIVisualizations.publish()FastAPIVisualizations.unpublish()FastAPIVisualizations.share_with_users()FastAPIVisualizations.set_slug()FastAPIVisualizations.__init__()
VisualizationsController
- galaxy.webapps.galaxy.api.webhooks module
- galaxy.webapps.galaxy.api.workflows module
- galaxy.webapps.galaxy.controllers package
- Submodules
- galaxy.webapps.galaxy.controllers.admin module
UserListGridRoleListGridGroupListGridQuotaListGridDatatypesEntryTAdminGalaxyAdminGalaxy.user_list_gridAdminGalaxy.role_list_gridAdminGalaxy.group_list_gridAdminGalaxy.quota_list_gridAdminGalaxy.__init__()AdminGalaxy.data_tables_list()AdminGalaxy.data_types_list()AdminGalaxy.users_list()AdminGalaxy.quotas_list()AdminGalaxy.create_quota()AdminGalaxy.rename_quota()AdminGalaxy.manage_users_and_groups_for_quota()AdminGalaxy.edit_quota()AdminGalaxy.set_quota_default()AdminGalaxy.impersonate()AdminGalaxy.roles_list()AdminGalaxy.create_role()AdminGalaxy.rename_role()AdminGalaxy.manage_users_and_groups_for_role()AdminGalaxy.groups_list()AdminGalaxy.rename_group()AdminGalaxy.manage_users_and_roles_for_group()AdminGalaxy.create_group()AdminGalaxy.create_new_user()AdminGalaxy.reset_user_password()AdminGalaxy.manage_roles_and_groups_for_user()
build_select_input()get_user()get_role()get_group()get_quota()
- 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
HistoryControllerHistoryController.history_managerHistoryController.history_serializerHistoryController.slug_builderHistoryController.__init__()HistoryController.index()HistoryController.view()HistoryController.display_by_username_and_slug()HistoryController.permissions()HistoryController.make_private()HistoryController.purge_deleted_datasets()HistoryController.resume_paused_jobs()HistoryController.rename()HistoryController.switch_to_history()HistoryController.get_item()HistoryController.history_data()HistoryController.set_as_current()HistoryController.current_history_json()HistoryController.create_new_current()
- galaxy.webapps.galaxy.controllers.library module
- galaxy.webapps.galaxy.controllers.page module
PageControllerPageController.page_managerPageController.history_managerPageController.history_serializerPageController.hda_managerPageController.workflow_managerPageController.slug_builderPageController.__init__()PageController.create()PageController.edit()PageController.display()PageController.display_by_username_and_slug()PageController.get_page()
- 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.visualization module
VisualizationControllerVisualizationController.hda_managerVisualizationController.slug_builderVisualizationController.__init__()VisualizationController.copy()VisualizationController.imp()VisualizationController.display_by_username_and_slug()VisualizationController.save()VisualizationController.edit()VisualizationController.render()VisualizationController.saved()VisualizationController.trackster()
- galaxy.webapps.galaxy.controllers.workflow module
WorkflowControllerWorkflowController.history_managerWorkflowController.slug_builderWorkflowController.__init__()WorkflowController.display_by_username_and_slug()WorkflowController.imp()WorkflowController.gen_image()WorkflowController.editor()WorkflowController.load_workflow()WorkflowController.for_direct_import()WorkflowController.export_to_file()WorkflowController.build_from_current_history()
- galaxy.webapps.galaxy.services package
- Submodules
- galaxy.webapps.galaxy.services.authenticate module
- galaxy.webapps.galaxy.services.base module
ensure_celery_tasks_enabled()SecurityNotProvidedErrorServiceBaseServiceBase.__init__()ServiceBase.securityServiceBase.decode_id()ServiceBase.encode_id()ServiceBase.decode_ids()ServiceBase.encode_all_ids()ServiceBase.build_order_by()ServiceBase.get_class()ServiceBase.get_object()ServiceBase.check_user_is_authenticated()ServiceBase.get_authenticated_user()
ServedExportStoremodel_store_storage_target()ServesExportStoresConsumesModelStoresasync_task_summary()
- galaxy.webapps.galaxy.services.dataset_collections module
- galaxy.webapps.galaxy.services.datasets module
- galaxy.webapps.galaxy.services.histories module
ShareableHistoryServiceHistoriesServiceHistoriesService.__init__()HistoriesService.index()HistoriesService.index_query()HistoriesService.create()HistoriesService.create_from_store()HistoriesService.create_from_store_async()HistoriesService.show()HistoriesService.prepare_download()HistoriesService.write_store()HistoriesService.update()HistoriesService.delete()HistoriesService.undelete()HistoriesService.shared_with_me()HistoriesService.count()HistoriesService.published()HistoriesService.citations()HistoriesService.index_exports()HistoriesService.archive_export()HistoriesService.get_ready_history_export()HistoriesService.get_archive_download_path()HistoriesService.get_archive_media_type()HistoriesService.legacy_archive_download()HistoriesService.get_custom_builds_metadata()HistoriesService.archive_history()HistoriesService.restore_archived_history()HistoriesService.get_archived_histories()
get_fasta_hdas_by_history()
- 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
LibrariesServiceLibrariesService.__init__()LibrariesService.index()LibrariesService.show()LibrariesService.create()LibrariesService.create_from_store()LibrariesService.update()LibrariesService.delete()LibrariesService.get_permissions()LibrariesService.set_permissions()LibrariesService.set_permissions_old()
- 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
UsersServiceUsersService.__init__()UsersService.recalculate_disk_usage()UsersService.get_api_key()UsersService.get_or_create_api_key()UsersService.create_api_key()UsersService.delete_api_key()UsersService.get_user()UsersService.get_non_anonymous_user_full()UsersService.get_user_full()UsersService.show_user()UsersService.user_to_detailed_model()UsersService.get_index()
- 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: MinimalApp, session_cookie: str = 'galaxysession', name: str | None = None)[source]
Bases:
WebApplication- __init__(galaxy_app: MinimalApp, session_cookie: str = 'galaxysession', name: str | None = None) None[source]
Create a new web application object. To actually connect some controllers use add_controller and add_route. Call finalize_config when all controllers and routes have been added and __call__ to handle a request (WSGI style).
- 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