qgispluginci.utils module

qgispluginci.utils.configure_file(source_file: str, dest_file: str, replace: dict)
qgispluginci.utils.convert_octets(octets: int) str

Convert a mount of octets in readable size.

Parameters:

octets (int) – mount of octets to convert

Example:

>>> convert_octets(1024)
"1ko"
qgispluginci.utils.parse_tag(version_tag: str) VersionNote | None

Parse a tag and determine the semantic version.

qgispluginci.utils.replace_in_file(file_path: str, pattern, new: str, encoding: str = 'utf8')
qgispluginci.utils.touch_file(path, update_time: bool = False, create_dir: bool = True)