SELKIELogger
1.0.0
|
Represent a channel mapping (.var) file, caching information as necessary. More...
Public Member Functions | |
def | __init__ (self, filename) |
Create VarFile instance. More... | |
def | getSourceMap (self, force=False) |
Get source/channel map from file, or return from cache if available. More... | |
def | printSourceMap (self, fancy=True) |
Print a source/channel map, optionally using the tools provided in the "rich" package to provide a prettier output. More... | |
Private Attributes | |
_fn | |
File name and path. | |
_sm | |
Source/Channel Map. | |
Represent a channel mapping (.var) file, caching information as necessary.
Definition at line 34 of file SLFiles.py.
def SELKIELogger.SLFiles.VarFile.__init__ | ( | self, | |
filename | |||
) |
Create VarFile instance.
Does not open or parse file.
filename | File name and path |
Definition at line 37 of file SLFiles.py.
def SELKIELogger.SLFiles.VarFile.getSourceMap | ( | self, | |
force = False |
|||
) |
Get source/channel map from file, or return from cache if available.
force | Read file again, even if source map exists |
Definition at line 47 of file SLFiles.py.
def SELKIELogger.SLFiles.VarFile.printSourceMap | ( | self, | |
fancy = True |
|||
) |
Print a source/channel map, optionally using the tools provided in the "rich" package to provide a prettier output.
Falls back to standard print output if fancy
is False or if the rich package is not installed.
fancy | Enable/disable use of rich features. |
Definition at line 70 of file SLFiles.py.