Data Registry

The vibe_core.data.data_registry module provides a mechanism for registering and retrieving custom data types used within the FarmVibes.AI platform.

Documentation

Data registry types and functions used in FarmVibes.AI.

class vibe_core.data.data_registry.GenericTypeVibe

Generic type for data registry.

alias of TypeVar(‘GenericTypeVibe’, bound=Type[Any])

vibe_core.data.data_registry.get_id(classdef)

Get the ID of a class.

Parameters:

classdef (Type[Any]) – The class to get the ID of.

Returns:

The ID of the class.

Return type:

str

vibe_core.data.data_registry.get_name(classdef)

Get the name of a class.

Parameters:

classdef (Type[Any]) – The class to get the name of.

Returns:

The name of the class.

Return type:

str

vibe_core.data.data_registry.register_vibe_datatype(classdef)

Register a class as a data type in the FarmVibes.AI data registry.

Parameters:

classdef (GenericTypeVibe) – The class to register.

Returns:

The class.

Return type:

GenericTypeVibe

vibe_core.data.data_registry.retrieve(id)

Retrieve a registered data type from the FarmVibes.AI data registry.

Parameters:

id (str) – The ID of the data type to retrieve.

Returns:

The registered data type.

Return type:

Type[Any]