spux.io package

Submodules

spux.io.checkpointer module

class spux.io.checkpointer.Checkpointer(period)[source]

Bases: object

check(force=0)[source]

Return timestamp.

init(verbosity)[source]

spux.io.dumper module

spux.io.formatter module

spux.io.formatter.compactify(resources)[source]

Improve format of ‘resources’ dictionary.

spux.io.formatter.intf(number, table=1, empty=0, bar=0)[source]

Integer format with multipliers K, M, etc.

spux.io.formatter.plain(name)[source]

Filter to remove special characters from strings to be used as filenames.

spux.io.formatter.timestamp(time, precise=False, expand=False)[source]

Formats time in seconds into a string of (years and days - only if needed), hours and minutes.

spux.io.loader module

spux.io.parameters module

spux.io.parameters.load(filename, names=None, dtypes=None)[source]
spux.io.parameters.save(data, filename, delimiter='\t')[source]

spux.io.report module

spux.io.report.report(instance, method, extras={})[source]

Report name, method, root, sandbox, and any specified extras provided verbosity is enabled.