chemprop.utils.registry#

Module Contents#

Classes#

ClassRegistry

dict() -> new empty dictionary

Factory

Attributes#

T

chemprop.utils.registry.T#
class chemprop.utils.registry.ClassRegistry[source]#

Bases: dict[str, Type[T]]

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

__call__#
register(alias=None)[source]#
Parameters:

alias (Any | Iterable[Any] | None)

__repr__()[source]#

Return repr(self).

Return type:

str

__str__()[source]#

Return str(self).

Return type:

str

class chemprop.utils.registry.Factory[source]#
classmethod build(clz_T, *args, **kwargs)[source]#
Parameters:

clz_T (Type[T])

Return type:

T