Classes#

class dls_servbase_lib.datafaces.datafaces.Datafaces(name=None)[source]#

Factory for creating instances of dls_servbase_dataface.

Since it is based on Things, it also can maintain a list of named instances.

There are currently two class types which implement dls_servbase_dataface:

AIOHTTP - This is a networked service with an HTTP protocol. NORMSQL - This is implement directly on a sqlite/mysql/postgres database.

Parameters:

name (_type_, optional) – Name of this list used in debug messages. Defaults to None.

build_object(specification)[source]#

Build an object whose type is contained in the specification as a string.

Parameters:

specification (Dict) – Specification, must contain at least the keyword “type”.

Returns:

The dls_servbase_dataface instance.

Return type:

Any

lookup_class(class_type)[source]#

From the given class type string, return a class corresponding to the type.

Returns:

A class which can be instantiated.

Parameters:

class_type (str) –

Return type:

Type