data_structures.data_structure
#
DataStructure ObjectsBase class for all the data structures.
#
__init__Attributes:
data
- stored in self.datametadata
- a dictionary stored in self.metadatadb_object
- Optional database object to store the object in a database.
#
serializeMethod to serialize the data.
Returns:
string
- To serialize to disk normally.binary
- To store a object serialized with pickleNone
- if the result was stored using the db_object
Raises:
NotImplementedError
#
unserializeDEPRECATED use deserialize() instead. Method to deserialize the data.
Attributes:
data
- the serialized data.metadata
- the metadata (sometimes is necessary to deserialize)db_object
- The db_object that was used to serialize (if any).
Returns:
An initialized object with the
Raises:
NotImplementedError
#
get_dataMethod to query the data from the api. The arguments will change depending on the class.
Raises:
NotImplementedError
#
exportMethod to export the data.
Attributes:
format
- The format to return the data.
Returns:
A dictionary of generators that will be serialized and compressed in a zip file. Each generator will be a diferent file in the zip.
Raises:
NotImplementedError