pydft_qmmm.plugins package

Subpackages

Submodules

pydft_qmmm.plugins.plugin module

Abstract base classes for plugins.

class pydft_qmmm.plugins.plugin.CalculatorPlugin[source]

Bases: Plugin

The plugin base class for modifying calculator routines.

abstract modify(calculator)[source]

Modify the functionality of a calculator.

Parameters:

calculator (Calculator) – The calculator whose functionality will be modified by the plugin.

Return type:

None

class pydft_qmmm.plugins.plugin.CompositeCalculatorPlugin[source]

Bases: Plugin

The plugin base class for modifying composite calculator routines.

abstract modify(calculator)[source]

Modify the functionality of a calculator.

Parameters:

calculator (CompositeCalculator) – The composite calculator whose functionality will be modified by the plugin.

Return type:

None

class pydft_qmmm.plugins.plugin.IntegratorPlugin[source]

Bases: Plugin

The plugin base class for modifying integrator routines.

abstract modify(integrator)[source]

Modify the functionality of an integrator.

Parameters:

integrator (Integrator) – The integrator whose functionality will be modified by the plugin.

Return type:

None

class pydft_qmmm.plugins.plugin.PartitionPlugin[source]

Bases: CompositeCalculatorPlugin

The plugin base class for modifying partitioning routines.

_query

The VMD-like query representing atoms which will be evaluated with the partitioning scheme.

Type:

str

abstract generate_partition()[source]

Perform the system partitioning.

Return type:

None

class pydft_qmmm.plugins.plugin.Plugin[source]

Bases: ABC

The abstract plugin base class.

_modifieds

A list of names of objects that have been modified by the plugin.

Type:

list[str]

_key

The type of object that the plugin modifies.

Type:

str

pydft_qmmm.plugins.plugin_manager module

Functionality for handling external plugin imports.

pydft_qmmm.plugins.plugin_manager.DISCOVERED_PLUGINS

A list of entry points into the plugin architecture of PyDFT-QMMM within installed package metadata.

pydft_qmmm.plugins.plugin_manager.get_external_plugins()[source]

Get PyDFT-QMMM plugins from externally installed packages.

Returns:

A dictionary of plugin names and loaded classes for the PyDFT-QMMM plugin sub-package.

Return type:

dict[str, Plugin]

Module contents

A sub-package for defining and dynamically loading plugins.