Warning

This document is for an in-development version 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.managers package

Submodules

tool_shed.managers.groups module

Manager and Serializer for TS groups.

class tool_shed.managers.groups.GroupManager(*args, **kwargs)[source]

Bases: object

Interface/service object for interacting with TS groups.

__init__(*args, **kwargs)[source]
get(trans, decoded_group_id=None, name=None)[source]

Get the group from the DB based on its ID or name.

Parameters

decoded_group_id (int) – decoded group id

Returns

the requested group

Return type

tool_shed.model.Group

create(trans, name, description='')[source]

Create a new group.

update(trans, group, name=None, description=None)[source]

Update the given group

delete(trans, group, undelete=False)[source]

Mark given group deleted/undeleted based on the flag.

list(trans, deleted=False)[source]

Return a list of groups from the DB.

Returns

query that will emit all groups

Return type

sqlalchemy query

tool_shed.managers.repositories module

Manager and Serializer for TS repositories.

class tool_shed.managers.repositories.RepoManager(*args, **kwargs)[source]

Bases: object

Interface/service object for interacting with TS repositories.

__init__(*args, **kwargs)[source]
get(trans, decoded_repo_id)[source]

Get the repo from the DB.

Parameters

decoded_repo_id (int) – decoded repo id

Returns

the requested repo

Return type

tool_shed.webapp.model.Repository

list_by_owner(trans, user_id)[source]

Return a list of of repositories owned by a given TS user from the DB.

Returns

query that will emit repositories owned by given user

Return type

sqlalchemy query

create(trans, name, description='')[source]

Create a new group.

update(trans, group, name=None, description=None)[source]

Update the given group

delete(trans, group, undelete=False)[source]

Mark given group deleted/undeleted based on the flag.