Class Options
- class ooodev.loader.inst.options.Options(verbose=False, dynamic=True, log_level=20, lo_cache_size=200)[source]
Lo Load options
New in version 0.6.10.
- Parameters:
verbose (bool) –
dynamic (bool) –
log_level (int) –
lo_cache_size (int) –
- __init__(verbose=False, dynamic=True, log_level=20, lo_cache_size=200)
- Parameters:
verbose (bool) –
dynamic (bool) –
log_level (int) –
lo_cache_size (int) –
- Return type:
None
- static deserialize(s)[source]
Deserialize the options from a json string.
- Parameters:
s (str) – Json string
- Returns:
Options object
- Return type:
- dynamic: bool = True
Determines if the script context is dynamic.
Also When loading a component via
LoInst.load_component()
It is recommended to set this value toFalse
.If dynamic the script context is created with the current document; Otherwise, context is static. Static context is useful when the script is only going to operate on a a single document. There may be a performance gain when using static context.
Default
True
New in version 0.11.13.
- lo_cache_size: int = 200
Lo Instance cache size. Default
200
,0
or less means no caching. Normally you should not need to change this value. If you do, it should be a power of 2.
- log_level: int = 20
Logging level. Default
logging.INFO
- verbose: bool = False
Determines if various info is sent to console. Default
False