apollo package¶
Subpackages¶
Submodules¶
apollo.client module¶
Base apollo client
-
class
apollo.client.
Client
(webapolloinstance, **requestArgs)¶ Bases:
object
Base client class implementing methods to make requests to the server
-
CLIENT_BASE
= '/'¶
-
get
(client_method, get_params, is_json=True)¶ Make a GET request
-
post
(client_method, data, post_params=None, is_json=True, files=None, autoconvert_to_json=True)¶ Make a POST request
-
apollo.decorators module¶
apollo.exceptions module¶
-
exception
apollo.exceptions.
APIErrorResponseException
¶ Bases:
Exception
-
exception
apollo.exceptions.
UnknownUserException
¶ Bases:
Exception
apollo.util module¶
-
apollo.util.
AssertAdmin
(user)¶
-
apollo.util.
AssertUser
(user_list)¶
-
apollo.util.
CnOrGuess
(parser)¶
-
apollo.util.
GuessCn
(args, wa)¶
-
apollo.util.
GuessOrg
(args, wa)¶
-
apollo.util.
OrgOrGuess
(parser)¶
-
apollo.util.
WAAuth
(parser)¶
-
apollo.util.
add_property_to_feature
(feature, property_key, property_value)¶ Parameters: - feature –
- property_key (str) –
- property_value (str) –
Returns:
-
apollo.util.
features_to_apollo_schema
(features, use_name=False, disable_cds_recalculation=False)¶ Parameters: - disable_cds_recalculation –
- use_name –
- features –
Returns:
-
apollo.util.
features_to_feature_schema
(features, use_name=False, disable_cds_recalculation=False)¶ Parameters: - disable_cds_recalculation –
- use_name –
- features –
Returns:
-
apollo.util.
retry
(closure, sleep=1, limit=5)¶ Apollo has the bad habit of returning 500 errors if you call APIs too quickly, largely because of the unholy things that happen in grails.
To deal with the fact that we cannot send an addComments call too quickly after a createFeature call, we have this function that will keep calling a closure until it works.
-
apollo.util.
yieldApolloData
(feature, use_name=False, disable_cds_recalculation=False)¶
Module contents¶
-
class
apollo.
ApolloInstance
(url, username, password)¶ Bases:
object
-
apollo.
accessible_organisms
(user, orgs, permission=None)¶ Get the list of organisms accessible to a user, filtered by orgs
-
apollo.
galaxy_list_groups
(trans, *args, **kwargs)¶
-
apollo.
galaxy_list_orgs
(trans, *args, **kwargs)¶
-
class
apollo.
obj
¶ Bases:
object
-
apollo.
require_user
(wa, email)¶ Require that the user has an account
-
apollo.
set_logging_level
(level)¶