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
- 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)
Gets the ID of a class.
- Parameters:
classdef (
Type
[Any
]) – The class to get the ID of.- Returns:
str
– The ID of the class.
- vibe_core.data.data_registry.get_name(classdef)
Gets the name of a class.
- Parameters:
classdef (
Type
[Any
]) – The class to get the name of.- Returns:
str
– The name of the class.
- vibe_core.data.data_registry.register_vibe_datatype(classdef)
Registers a class as a data type in the FarmVibes.AI data registry.
- Parameters:
classdef (
TypeVar
(GenericTypeVibe
, bound=Type
[Any
])) – The class to register.- Returns:
TypeVar
(GenericTypeVibe
, bound=Type
[Any
]) – The class.
- vibe_core.data.data_registry.retrieve(id)
Retrieves a registered data type from the FarmVibes.AI data registry.
- Parameters:
id (
str
) – The ID of the data type to retrieve.- Returns:
Type
[Any
] – The registered data type.