agent0.utils.conversions ======================== .. py:module:: agent0.utils.conversions .. autoapi-nested-parse:: Conversion for hyperdrivetypes to fixedpoint .. !! processed by numpydoc !! Functions --------- .. autoapisummary:: agent0.utils.conversions.camel_to_snake agent0.utils.conversions.snake_to_camel agent0.utils.conversions.dataclass_to_dict Module Contents --------------- .. py:function:: camel_to_snake(camel_string: str) -> str Convert camel case string to snake case string. :param camel_string: The string to convert. :type camel_string: str :returns: The snake case string. :rtype: str .. !! processed by numpydoc !! .. py:function:: snake_to_camel(snake_string: str) -> str Convert snake case string to camel case string. :param snake_string: The string to convert. :type snake_string: str :returns: The camel case string. :rtype: str .. !! processed by numpydoc !! .. py:function:: dataclass_to_dict(cls: hyperdrivetypes.types.IHyperdrive.PoolInfo | hyperdrivetypes.types.IHyperdrive.PoolConfig | hyperdrivetypes.types.IHyperdrive.Checkpoint) -> dict[str, Any] Convert a state dataclass into a dictionary. :param cls: The dataclass to convert :type cls: PoolInfo | PoolInfoFP | PoolConfig | PoolConfigFP | Checkpoint | CheckpointFP :returns: The corresponding dictionary :rtype: dict[str, Any] .. !! processed by numpydoc !!