igvf_utils¶
- igvf_utils.AWARD_PROP_NAME = 'award'¶
The award property name that is common to all IGVF Portal object profiles.
- igvf_utils.ALIAS_PROP_NAME = 'aliases'¶
The aliases property name that is common to almost all IGVF Portal object profiles. Notably, the following profiles lack this property as of 2018-04-03: [‘access_key_admin’, ‘publication’, ‘award’, ‘organism’, ‘page’, ‘image’, ‘user’, ‘lab’]
- igvf_utils.LAB_PROP_NAME = 'lab'¶
The lab property name that is common to all IGVF Portal object profiles.
- igvf_utils.LAB = {}¶
dict. Stores the lab property to the value of the environment variable IGVF_LAB to serve as the default lab when submitting an object to the Portal.
igvf_utils.connection.Connection.post()will use this default if this property doesn’t appear in the payload.
- igvf_utils.LAB_PREFIX = ''¶
str. Stores the prefix to add to each record alias when doing a POST operation. Most profiles have an ‘alias’ key, which stores a list of alias names that are useful to the lab. When POSTING objects to the Portal, these aliases must be prefixed with the lab name and end with a colon, and this configuration variable stores that prefix value.
- igvf_utils.AWARD = {}¶
dict. Stores the award property to the value of the environment variable IGVF_AWARD to act as the default award when submiting an object to the Portal.
igvf_utils.connection.Connection.post()will use this default if this property doesn’t appear in the payload, and the profile at hand isn’t a member of the listigvf_utils.utils.Profile.AWARDLESS_PROFILES.
- igvf_utils.PROFILES_URL = 'profiles'¶
The relative ENCODE Portal URL that points to all the profiles (schemas).
- igvf_utils.IGVF_MODES = {'prod': {'url': 'https://api.data.igvf.org/'}, 'sandbox': {'url': 'https://api.sandbox.igvf.org/'}, 'staging': {'url': 'https://api.staging.igvf.org/'}}¶
A hash of known hosts one can connect to, where the key can be passed to the igvf_mode argument when instantiating the connection.Connection class.
- igvf_utils.TIMEOUT = 60¶
The timeout in seconds when making HTTP requests via the
requestsmodule.
- igvf_utils.DEBUG_LOGGER_NAME = 'iu_debug'¶
The name of the debug
logginginstance.
- igvf_utils.ERROR_LOGGER_NAME = 'iu_error'¶
The name of the error
logginginstance created inigvf_utils.connection.Connection(), and referenced elsewhere.
- igvf_utils.POST_LOGGER_NAME = 'iu_post'¶
The name of the POST
logginginstance created inigvf_utils.connection.Connection(), and referenced elsewhere.
- igvf_utils.debug_logger = <Logger iu_debug (DEBUG)>¶
A
logginginstance that logs all messages sent to it to STDOUT.
- igvf_utils.error_logger = <Logger iu_error (ERROR)>¶
A
logginginstance that accepts messages at the ERROR level.