gradient package

Subpackages

Submodules

gradient.cli_constants module

gradient.clilogger module

class gradient.clilogger.CliLogger

Bases: gradient.api_sdk.logger.Logger

log(message, color=None, err=False)
error(message, *args, **kwargs)
warning(message, *args, **kwargs)
debug(message, *args, **kwargs)

gradient.cliutils module

gradient.cliutils.get_terminal_lines(fallback=48)
gradient.cliutils.print_json_pretty(res)
gradient.cliutils.response_error_check(res)
gradient.cliutils.requests_exception_to_error_obj(e)
gradient.cliutils.status_code_to_error_obj(status_code)
gradient.cliutils.validate_auth_options(kwargs)
gradient.cliutils.none_strings_to_none_objects(lst)
class gradient.cliutils.TerminalPrinter

Bases: object

__init__()
init()
cleanup()

Cleanup before program ends or terminal may stop working correlctly

rewrite_screen(s)
add_line(s)
add_str(s)
refresh()
clear()

gradient.config module

gradient.exceptions module

exception gradient.exceptions.ApplicationError

Bases: Exception

exception gradient.exceptions.BadResponseError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.PresignedUrlUnreachableError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.ProjectAccessDeniedError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.PresignedUrlAccessDeniedError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.PresignedUrlConnectionError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.PresignedUrlMalformedResponseError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.PresignedUrlError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.S3UploadFailedError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.ReceivingDataFailedError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.WrongPathError

Bases: gradient.exceptions.ApplicationError

exception gradient.exceptions.MutuallyExclusiveParametersUsedError

Bases: Exception

gradient.login module

gradient.login.is_error_or_missing_keys_print(res, *required_keys)
gradient.login.login(email=None, password=None, apiToken=None)
gradient.login.apikey()
gradient.login.set_apikey(apikey)
gradient.login.logout()

gradient.main module

gradient.main.main()

gradient.version module

gradient.version_checker module

exception gradient.version_checker.PackageNotFoundError

Bases: Exception

class gradient.version_checker.VersionChecker

Bases: object

is_up_to_date(module_name, current_version)
get_version_from_repository(module_name, repository_url='http://pypi.python.org/pypi')
class gradient.version_checker.GradientVersionChecker

Bases: object

classmethod look_for_new_version_with_timeout()
static look_for_new_version()

Module contents