dhcpkit.registry module

Base class for pkg_resources based registries

class dhcpkit.registry.Registry[source]

Bases: collections.UserDict

Base class for registries

by_name = None

An alternative name-based mapping

entry_point = 'dhcpkit.NONE'

The name of the entry_point group

get_name(item: object) → str[source]

Get the name for the by_name mapping.

Parameters:item – The item to determine the name of
Returns:The name to use as key in the mapping