tosclib.tosc

Simplify navigating, editing and generating .tosc files.

Requires python 3.9.

github.com/AlbertoV5

Functions

findChildByName(element, name)

Returns the first child element by name

getTextValueFromKey(properties, key)

Find the value.text from a known key

load([inputPath])

Reads .tosc file as bytes and returns the xml root element

pullValueFromKey(inputFile, key, value, ...)

Find a value from a known key, value and target key

write(root[, outputPath])

Encodes a root element directly to UTF-8 and compresses to .tosc

Classes

ElementTOSC(e)