pakages package¶
Subpackages¶
Submodules¶
pakages.build module¶
pakages.client module¶
pakages.defaults module¶
pakages.logger module¶
- class pakages.logger.ColorizingStreamHandler(nocolor=False, stream=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>, use_threads=False)[source]¶
Bases:
StreamHandler
- BLACK = 0¶
- BLUE = 4¶
- BOLD_SEQ = '\x1b[1m'¶
- COLOR_SEQ = '\x1b[%dm'¶
- CYAN = 6¶
- GREEN = 2¶
- MAGENTA = 5¶
- RED = 1¶
- RESET_SEQ = '\x1b[0m'¶
- WHITE = 7¶
- YELLOW = 3¶
- colors = {'CRITICAL': 1, 'DEBUG': 4, 'ERROR': 1, 'INFO': 2, 'WARNING': 3}¶
- emit(record)[source]¶
Emit a record.
If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.
- property is_tty¶
pakages.oras module¶
pakages.schemas module¶
pakages.settings module¶
- class pakages.settings.Settings(settings_file, validate=True)[source]¶
Bases:
EmptySettings
The settings class is a wrapper for easily parsing a settings.yml file.
We parse into a query-able class. It also gives us control to update settings, meaning we change the values and then write them to file. It’s basically a dictionary-like class with extra functions.
pakages.version module¶
pakages.worker module¶
- class pakages.worker.Workers(workers=None)[source]¶
Bases:
object
- run(funcs: dict, tasks: dict) dict | None [source]¶
Run will send a list of tasks, a tuple with arguments, through a function. the arguments should be ordered correctly.
- Args:
- funcs (dict)the functions to run with multiprocessing.pool,
a dictionary with lookup by the task name
- tasks (dict)a dict of tasks, each task name (key) with a tuple
of arguments to process