astro.custom_backend.serializer

Module Contents

Functions

is_newer_sqlalchemy()

serialize(obj)

Serialize astro SDK objects (tables, files and dataframes) into json safe dictionary

deserialize(obj)

Deserialize json dictionaries into astro SDK objects (tables, files, dataframes, etc.)

Attributes

log

astro.custom_backend.serializer.log
astro.custom_backend.serializer.is_newer_sqlalchemy()
astro.custom_backend.serializer.serialize(obj)

Serialize astro SDK objects (tables, files and dataframes) into json safe dictionary

Parameters:

obj (astro.table.Table | astro.files.File | Any) – object to serialize

Returns:

Return type:

dict | Any

astro.custom_backend.serializer.deserialize(obj)

Deserialize json dictionaries into astro SDK objects (tables, files, dataframes, etc.)

Parameters:

obj (dict | str | list) – serialized object to deserialize

Returns:

Return type:

astro.table.Table | astro.files.File | Any