client package

Submodules

client.client_callback module

class client.client_callback.ClientCallback(job_data=None, cdn_bucket=None, gogs_url=None, logger=None, s3_handler_class=<class 'aws_tools.s3_handler.S3Handler'>)[source]

Bases: object

process_callback()[source]

client.client_webhook module

class client.client_webhook.ClientWebhook(commit_data=None, api_url=None, pre_convert_bucket=None, cdn_bucket=None, gogs_url=None, gogs_user_token=None, logger=None, s3_handler_class=<class 'aws_tools.s3_handler.S3Handler'>)[source]

Bases: object

download_repo(commit_url, repo_dir)[source]

Downloads and unzips a git repository from Github or git.door43.org

Parameters:
  • commit_url (str|unicode) – The URL of the repository to download
  • repo_dir (str|unicode) – The directory where the downloaded file should be unzipped
Returns:

None

process_webhook()[source]
static str_to_class(class_name_string)[source]

Gets a class from a string.

Parameters:class_name_string (str|unicode) – The string of the class name

Module contents