Module Descriptor

pcapkit.corekit.module contains tuple like class ModuleDescriptor, which is originally designed as tuple[str, str].

class pcapkit.corekit.module.ModuleDescriptor(module, name)[source]

Bases: ModuleDescriptor, Generic[_T]

Module descriptor contains module name and class name, the actual class can be imported by from module import name.

property klass: Type[_T]

Import class from module.

property module: str

Module name.

property name: str

Class name.

Type Variables

pcapkit.corekit.module._T: Any