dismantle.extension package#

Submodules#

dismantle.extension.extensions module#

Extensions locator.

class dismantle.extension.extensions.Extensions(types, packages, prefix)[source]#

Bases: object

Search through the installed packages and find extensions.

category(category) list[source]#

Return the list of extensions for a category.

property extensions: dict#

Return the full list of extensions.

property imports: dict#

Return the fill list of imports.

property types: list#

Return the list of supported types.

dismantle.extension.iextension module#

Creates an interface to allow all other extensions to extend.

class dismantle.extension.iextension.IExtension[source]#

Bases: object

Extension interface to recognise what needs to be processed.

activate() bool[source]#

Activate an extension.

property active: bool#

Return the extensions active state.

property category: str#

Return the extensions category.

deactivate() bool[source]#

Deactivate an extension.

property name: str#

Return the extensions name.

Module contents#

Provide the ability to extend a module.

Extensions provide the abiity to add additional functionality to a defined module by providing an interface that can be extended by multiple classes each with a new provider.

class dismantle.extension.Extensions(types, packages, prefix)[source]#

Bases: object

Search through the installed packages and find extensions.

category(category) list[source]#

Return the list of extensions for a category.

property extensions: dict#

Return the full list of extensions.

property imports: dict#

Return the fill list of imports.

property types: list#

Return the list of supported types.

class dismantle.extension.IExtension[source]#

Bases: object

Extension interface to recognise what needs to be processed.

activate() bool[source]#

Activate an extension.

property active: bool#

Return the extensions active state.

property category: str#

Return the extensions category.

deactivate() bool[source]#

Deactivate an extension.

property name: str#

Return the extensions name.