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.

galaxy.quota package

Galaxy Quotas

class galaxy.quota.NoQuotaAgent(model)[source]

Bases: object

Base quota agent, always returns no quota


Initialize self. See help(type(self)) for accurate signature.

get_quota(user, nice_size=False)[source]
property default_quota
get_usage(trans=None, user=False, history=False)[source]
get_percent(trans=None, user=False, history=False, usage=False, quota=False)[source]
class galaxy.quota.QuotaAgent(model)[source]

Bases: galaxy.quota.NoQuotaAgent

Class that handles galaxy quotas

get_quota(user, nice_size=False)[source]

Calculated like so:

  1. Anonymous users get the default quota.

  2. Logged in users start with the highest of their associated ‘=’ quotas or the default quota, if there are no associated ‘=’ quotas. If an ‘=’ unlimited (-1 in the database) quota is found during this process, the user has no quota (aka unlimited).

  3. Quota is increased or decreased by any corresponding ‘+’ or ‘-‘ quotas.

property default_unregistered_quota
property default_registered_quota
set_default_quota(default_type, quota)[source]
get_percent(trans=None, user=False, history=False, usage=False, quota=False)[source]

Return the percentage of any storage quota applicable to the user/transaction.

set_entity_quota_associations(quotas=None, users=None, groups=None, delete_existing_assocs=True)[source]