phe.mapping.mapping_factory module

Date:22 Sep, 2015
Author:Alex Jironkin
available_mappers()[source]

Return a list of available mappers.

dynamic_mapper_loader()[source]

Fancy way of dynamically importing existing mappers.

Returns:
dict:

Available mappers dictionary. Keys are names that can be used for existing mapper implementations.

factory(mapper=None, custom_options=None)[source]

Create an instance of a mapper from _config_.

Parameters:
mapper: str, optional

Name of the mapper to initialise.

custom_options: str, optional

Custom options to be passed to the mapper.

Returns:
:py:class:`phe.mapping.Mapper`:

Instance of a phe.mapping.Mapper with provided name, or None if the mapper could not be found.