PAOFLOW.gen.qe_input.sources#

Database source registry.

Adding a new database = implement a DatabaseSource subclass in this package and register it in _SOURCES below.

Submodules#

Functions#

available_sources()

Return the list of registered source names.

get_source(name)

Return the source adapter registered under name.

detect_source(identifier)

Return the adapter whose matches() accepts identifier.

Package Contents#

PAOFLOW.gen.qe_input.sources.available_sources()[source]#

Return the list of registered source names.

PAOFLOW.gen.qe_input.sources.get_source(name)[source]#

Return the source adapter registered under name.

PAOFLOW.gen.qe_input.sources.detect_source(identifier)[source]#

Return the adapter whose matches() accepts identifier.

Raises RuntimeError when no registered source recognizes it.