Skip to content

Connecting to data catalog

To obtain a data catalog object to handle saving and load operations, create DataStorageInterface as follows:

[Copy Code](javascript:void(0)) Python
from research_sdk import DataStorageInterface, DataStorageType # Instantiate Data Catalog storage, please note that you must be authorized with DataStorageInterface.create(DataStorageType.Datacat) as storage: # Now you can use datacatalog

Also you can use the Plaintext storage type and save data to a local file. This may be useful for testing or checking internals of serialization.

[Copy Code](javascript:void(0)) Python
from research_sdk import DataStorageInterface, DataStorageType # Instantiate Data Catalog storage, please note that you must be authorized with DataStorageInterface.create(DataStorageType.Plaintext, file_name="/path/to/your/file", read_only=False) as storage: # Now you can use file to save and load data