vtools package

Subpackages

Submodules

vtools.plugins module

Discover ordinary callables advertised by installed packages.

load_plugins(group, *, overrides=None)[source]

Load named callables from an entry-point group.

Parameters:
groupstr

Entry-point group, such as timeseries.transforms or timeseries.readers.

overridesmapping of str to callable, optional

Explicit local implementations. These replace advertised entries with the same name without loading those entries.

Returns:
dict of str to callable

A new dictionary owned by the caller. Discovery is not cached.

Raises:
ValueError

Multiple providers advertise the same name without an override.

TypeError

An implementation is not callable.

RuntimeError

An advertised implementation cannot be imported.

Module contents

Top-level package for vtools. Most functions can be directly imported from vtools namespace