awslimitchecker.version module

class awslimitchecker.version.AWSLimitCheckerVersion(release, url, commit=None, tag=None)[source]

Bases: object

__dict__ = mappingproxy({'__dict__': <attribute '__dict__' of 'AWSLimitCheckerVersion' objects>, '__repr__': <function AWSLimitCheckerVersion.__repr__>, '__init__': <function AWSLimitCheckerVersion.__init__>, 'version_str': <property object>, '__weakref__': <attribute '__weakref__' of 'AWSLimitCheckerVersion' objects>, '__doc__': None, '__module__': 'awslimitchecker.version', '__str__': <function AWSLimitCheckerVersion.__str__>})
__init__(release, url, commit=None, tag=None)[source]

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

__module__ = 'awslimitchecker.version'
__repr__()[source]

Return a representation of this object that is valid Python and will create an idential AWSLimitCheckerVersion object.

Return type:str
__str__()[source]

Human-readable string representation of this version object, in the format: “version_str <url>”

Return type:str
__weakref__

list of weak references to the object (if defined)

version_str

The version string for the currently-running awslimitchecker; includes git branch and tag information.

Return type:str
awslimitchecker.version._get_version_info()[source]

Returns the currently-installed awslimitchecker version, and a best-effort attempt at finding the origin URL and commit/tag if installed from an editable git clone.

Returns:awslimitchecker version
Return type:str