pingwyn.core.types.profile.Driver
- class pingwyn.core.types.profile.Driver(paths=[], enable_multicore=True, force_multicore=False, enable_cache=True, is_live_env=False)
Bases:
object- __init__(paths=[], enable_multicore=True, force_multicore=False, enable_cache=True, is_live_env=False)
Methods
__init__([paths, enable_multicore, ...])get_content()get_filename_components(cls, fn)Split the filename into its static and dynamic components.
Attributes
CACHE_VERSIONCAN_MULTICORE_OPENCAN_MULTICORE_POSTCAN_MULTICORE_PREMULTICORE_THRESHOLDbufcache_data_dircache_metadata_direnable_cacheenable_multicoreforce_multicoreis_live_envpathsres- static get_filename_components(cls, fn)
Split the filename into its static and dynamic components. For example, the file “STM-experiment_2000-01-01_0001_z.txt” will split into (”STM-experiment_2000-01-01_”, “_z.txt”) and (“0001”).
- Parameters:
fn (str) – The filename to split
- Returns:
The split static and dynamic components.
- Return type:
tuple, str