labgrid.provider package

Submodules

labgrid.provider.fileprovider module

class labgrid.provider.fileprovider.FileProvider[source]

Bases: abc.ABC

Abstract class for the FileProvider

abstract get(name: str) → dict[source]

Get a dictionary of target paths to local paths for a given name.

abstract list()[source]

Get a list of names.

__abstractmethods__ = frozenset({'get', 'list'})
__dict__ = mappingproxy({'__module__': 'labgrid.provider.fileprovider', '__doc__': 'Abstract class for the FileProvider', 'get': <function FileProvider.get>, 'list': <function FileProvider.list>, '__dict__': <attribute '__dict__' of 'FileProvider' objects>, '__weakref__': <attribute '__weakref__' of 'FileProvider' objects>, '__abstractmethods__': frozenset({'list', 'get'}), '_abc_impl': <_abc_data object>})
__module__ = 'labgrid.provider.fileprovider'
__weakref__

list of weak references to the object (if defined)

labgrid.provider.mediafileprovider module

class labgrid.provider.mediafileprovider.MediaFileProvider(groups={})[source]

Bases: labgrid.provider.fileprovider.FileProvider

get(name)[source]

Get a dictionary of target paths to local paths for a given name.

list()[source]

Get a list of names.

__abstractmethods__ = frozenset({})
__attrs_attrs__ = (Attribute(name='groups', default={}, validator=<instance_of validator for type <class 'dict'>>, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False),)
__init__(groups={}) → None

Initialize self. See help(type(self)) for accurate signature.

__module__ = 'labgrid.provider.mediafileprovider'
__repr__()

Automatically created by attrs.