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.web package¶
The Galaxy web application framework
- galaxy.web.expose_api(func, to_json=True, user_required=True, user_or_session_required=True, handle_jsonp=True)[source]¶
Expose this function via the API.
- galaxy.web.expose_api_anonymous(func, to_json=True)[source]¶
Expose this function via the API but don’t require a set user.
- galaxy.web.expose_api_anonymous_and_sessionless(func, to_json=True)[source]¶
Expose this function via the API but don’t require a user or a galaxy_session.
- galaxy.web.format_return_as_json(rval, jsonp_callback=None, pretty=False)[source]¶
Formats a return value as JSON or JSONP if jsonp_callback is present.
Use pretty=True to return pretty printed json.
- galaxy.web.json(func, pretty=False)[source]¶
Format the response as JSON and set the response content type to JSON_CONTENT_TYPE.
- galaxy.web.legacy_expose_api(func, to_json=True, user_required=True)[source]¶
Expose this function via the API.
- galaxy.web.legacy_expose_api_anonymous(func, to_json=True)[source]¶
Expose this function via the API but don’t require a set user.
- galaxy.web.legacy_expose_api_raw(func)[source]¶
Expose this function via the API but don’t dump the results to JSON.
- galaxy.web.legacy_expose_api_raw_anonymous(func)[source]¶
Expose this function via the API but don’t dump the results to JSON.
- galaxy.web.legacy_url_for(mapper, *args, **kwargs) str [source]¶
Re-establishes the mapper for legacy WSGI routes.
- galaxy.web.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.
Subpackages¶
- galaxy.web.framework package
handle_url_for()
legacy_url_for()
url_for()
- Subpackages
- galaxy.web.framework.helpers package
- galaxy.web.framework.middleware package
- Submodules
- galaxy.web.framework.middleware.error module
- galaxy.web.framework.middleware.profile module
- galaxy.web.framework.middleware.remoteuser module
- galaxy.web.framework.middleware.request_id module
- galaxy.web.framework.middleware.sqldebug module
- galaxy.web.framework.middleware.static module
- galaxy.web.framework.middleware.statsd module
- galaxy.web.framework.middleware.translogger module
- galaxy.web.framework.middleware.xforwardedhost module
- Submodules
- galaxy.web.framework.base module
DefaultWebTransaction
lazy_property
server_starttime
walk_controller_modules()
WebApplication
WebApplication.__init__()
WebApplication.add_ui_controller()
WebApplication.add_api_controller()
WebApplication.add_route()
WebApplication.add_client_route()
WebApplication.set_transaction_factory()
WebApplication.finalize_config()
WebApplication.trace()
WebApplication.handle_request()
WebApplication.make_body_iterable()
WebApplication.handle_controller_exception()
- galaxy.web.framework.decorators module
error()
expose()
json()
json_pretty()
require_login()
require_admin()
require_admin_message()
do_not_cache()
legacy_expose_api()
legacy_expose_api_raw()
legacy_expose_api_raw_anonymous()
legacy_expose_api_anonymous()
expose_api()
format_return_as_json()
validation_error_to_message_exception()
api_error_message()
expose_api_anonymous()
expose_api_anonymous_and_sessionless()
expose_api_raw()
expose_api_raw_anonymous()
expose_api_raw_anonymous_and_sessionless()
- galaxy.web.legacy_framework package
- Submodules
- galaxy.web.legacy_framework.grids module
GridColumn
ReverseSortColumn
TextColumn
DateTimeColumn
BooleanColumn
IntegerColumn
CommunityRatingColumn
OwnerAnnotationColumn
CommunityTagsColumn
IndividualTagsColumn
MulticolFilterColumn
OwnerColumn
PublicURLColumn
DeletedColumn
StateColumn
SharingStatusColumn
GridOperation
DisplayByUsernameAndSlugGridOperation
GridAction
GridColumnFilter
Grid
Grid.title
Grid.model_class
Grid.show_item_checkboxes
Grid.template
Grid.async_template
Grid.use_async
Grid.use_hide_message
Grid.global_actions
Grid.columns
Grid.operations
Grid.standard_filters
Grid.default_filter
Grid.default_sort_key
Grid.use_paging
Grid.num_rows_per_page
Grid.num_page_links
Grid.allow_fetching_all_results
Grid.cur_filter_pref_name
Grid.cur_sort_key_pref_name
Grid.legend
Grid.info_text
Grid.__init__()
Grid.get_ids()
Grid.handle_operation()
Grid.get_current_item()
Grid.build_initial_query()
Grid.apply_query_filter()
- galaxy.web.proxy package
- galaxy.web.short_term_storage package
now()
ShortTermStorageConfiguration
ShortTermStorageTargetSecurity
ShortTermStorageTarget
ShortTermStorageServeCompletedInformation
ShortTermStorageServeCancelledInformation
ShortTermStorageAllocator
ShortTermStorageMonitor
ShortTermStorageManager
ShortTermStorageManager.__init__()
ShortTermStorageManager.new_target()
ShortTermStorageManager.recover_target()
ShortTermStorageManager.is_ready()
ShortTermStorageManager.get_serve_info()
ShortTermStorageManager.cancel()
ShortTermStorageManager.finalize()
ShortTermStorageManager.target_path()
ShortTermStorageManager.cleanup()
storage_context()
Submodules¶
galaxy.web.form_builder module¶
- class galaxy.web.form_builder.AddressField(name, user=None, value=None, security=None, **kwds)[source]¶
Bases:
BaseField
- class galaxy.web.form_builder.BaseField(name, value=None, label=None, **kwds)[source]¶
Bases:
object
- class galaxy.web.form_builder.CheckboxField(name, value=None, label=None, **kwds)[source]¶
Bases:
BaseField
A checkbox (boolean input)
- class galaxy.web.form_builder.HistoryField(name, user=None, value=None, security=None, **kwds)[source]¶
Bases:
BaseField
- class galaxy.web.form_builder.PasswordField(name, value=None, label=None, **kwds)[source]¶
Bases:
BaseField
A password input box. text appears as “**”
- class galaxy.web.form_builder.SelectField(name, multiple=None, display=None, field_id=None, value=None, selectlist=None, refresh_on_change=False, **kwds)[source]¶
Bases:
BaseField
A select field.
- class galaxy.web.form_builder.TextArea(name, value=None, label=None, **kwds)[source]¶
Bases:
BaseField
A standard text area box.
- class galaxy.web.form_builder.TextField(name, value=None, label=None, **kwds)[source]¶
Bases:
BaseField
A standard text input box.
galaxy.web.statsd_client module¶
- galaxy.web.statsd_client.GalaxyStatsdClient¶
alias of
VanillaGalaxyStatsdClient