task_script_utils.random module#
Utility to generate a random UUID
- exception NoPreviouslyCreatedInstanceError[source]#
Bases:
ExceptionNo previously created instance error
- class TSRandom(*seed: Hashable)[source]#
Bases:
objectGenerate random values that are not available from Python 3.7’s random module.
- class TaskScriptUUIDGenerator(*args, **kwargs)[source]#
Bases:
TSRandomUUID generator for use in Task Scripts
- classmethod from_task_script_identifier_parts(namespace: str, slug: str, version: str, file_identifier: Hashable) T[source]#
A convenience method that takes the parts of a task script identifier (namespace, slug, and version) and an identifier for the file (e.g. file location, file contents), then returns an instance of the generator class.