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_VERSION

CAN_MULTICORE_OPEN

CAN_MULTICORE_POST

CAN_MULTICORE_PRE

MULTICORE_THRESHOLD

buf

cache_data_dir

cache_metadata_dir

enable_cache

enable_multicore

force_multicore

is_live_env

paths

res

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