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.
tool_shed.webapp package¶
The Galaxy Tool Shed application.
- tool_shed.webapp.url_for(*args, **kwargs) str ¶
Tries to resolve the URL using the routes module.
This only works in a WSGI app so a deprecation message is returned when running an ASGI app.
- tool_shed.webapp.expose(func)[source]¶
Decorator: mark a function as ‘exposed’ and thus web accessible
Subpackages¶
- tool_shed.webapp.api package
- Submodules
- tool_shed.webapp.api.authenticate module
- tool_shed.webapp.api.categories module
- tool_shed.webapp.api.configuration module
- tool_shed.webapp.api.groups module
- tool_shed.webapp.api.repositories module
- tool_shed.webapp.api.repository_revisions module
- tool_shed.webapp.api.tools module
- tool_shed.webapp.api.users module
- tool_shed.webapp.controllers package
- Submodules
- tool_shed.webapp.controllers.admin module
- tool_shed.webapp.controllers.groups module
- tool_shed.webapp.controllers.hg module
- tool_shed.webapp.controllers.repository module
- tool_shed.webapp.controllers.repository_review module
- tool_shed.webapp.controllers.upload module
- tool_shed.webapp.controllers.user module
- tool_shed.webapp.framework package
- tool_shed.webapp.model package
- tool_shed.webapp.search package
- tool_shed.webapp.security package
- tool_shed.webapp.util package
Submodules¶
tool_shed.webapp.app module¶
- class tool_shed.webapp.app.UniverseApplication(**kwd)[source]¶
Bases:
galaxy.structured_app.BasicSharedApp
,galaxy.app.SentryClientMixin
Encapsulates the state of a Universe application
- __init__(**kwd) None [source]¶
- Parameters
container – Optional container if provided the existing definitions will be copied
:param log_undefined_deps indicates if a log message should be emmited when an undefined dep is loaded
- config: Any¶
- application_stack: galaxy.web_stack.ApplicationStack¶
- auth_manager: galaxy.auth.AuthManager¶
- security_agent: Any¶
- quota_agent: galaxy.quota.QuotaAgent¶
- toolbox: Any¶
tool_shed.webapp.buildapp module¶
Provides factory methods to assemble the Galaxy web application
- class tool_shed.webapp.buildapp.CommunityWebApplication(galaxy_app, session_cookie='galaxysession', name=None)[source]¶
- tool_shed.webapp.buildapp.add_ui_controllers(webapp, app)[source]¶
Search for controllers in the ‘galaxy.webapps.controllers’ module and add them to the webapp.
- tool_shed.webapp.buildapp.app_factory(global_conf, load_app_kwds=None, **kwargs)[source]¶
Return a wsgi application serving the root object
tool_shed.webapp.config module¶
Universe configuration builder.
- class tool_shed.webapp.config.ToolShedAppConfiguration(**kwargs)[source]¶
Bases:
galaxy.config.BaseAppConfiguration
,galaxy.config.CommonConfigurationMixin
- default_config_file_name = 'tool_shed.yml'¶
- property shed_tool_data_path¶
- tool_shed.webapp.config.Configuration¶
tool_shed.webapp.fast_factory module¶
Module containing factory class for building uvicorn app for the Galaxy Tool Shed.
Information on uvicorn, its various settings, and how to invoke it can be found at https://www.uvicorn.org/.
The Galaxy Tool Shed can be launched with uvicorn using the following invocation:
uvicorn --app-dir lib --factory tool_shed.webapp.fast_factory:factory
Use the environment variable TOOL_SHED_CONFIG_FILE
to specify a Tool Shed
configuration file.
TOOL_SHED_CONFIG_FILE=config/tool_shed.yml uvicorn --app-dir lib --factory tool_shed.webapp.fast_factory:factory
Note
Information on additional ways to configure uvicorn can be found at https://www.uvicorn.org/.
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 'tool_shed.webapp.fast_factory:factory()' --env TOOL_SHED_CONFIG_FILE=config/tool_shed.yml --pythonpath lib -w 4 -k uvicorn.workers.UvicornWorker --config lib/galaxy/web_stack/gunicorn_config.py