colda.database package

Subpackages

Submodules

colda.database.abstract_database module

class colda.database.abstract_database.AbstractAlgorithmDatabase

Bases: ABC

abstract get_all_records_history(**kwargs)
abstract classmethod get_instance()
abstract get_record(**kwargs)
abstract store_record(**kwargs)
class colda.database.abstract_database.AbstractMetadataDatabase

Bases: ABC

abstract get_all_records_history(**kwargs)
abstract classmethod get_instance()
abstract get_record(**kwargs)
abstract store_record(**kwargs)

colda.database.api module

colda.database.api.get_all_test_id() list[str]

Get all test ids that store in all db

Returns

list[str]

colda.database.api.get_all_test_id_as_assistor() list[str]

Get all test ids as assistor that store in all db

Returns

list[str]

colda.database.api.get_all_test_id_as_sponsor() list[str]

Get all test ids as sponsor that store in all db

Returns

list[str]

colda.database.api.get_all_train_id() list[str]

Get all train ids that store in all db

Returns

list[str]

colda.database.api.get_all_train_id_as_assistor() list[str]

Get all train ids as assistor that store in all db

Returns

list[str]

colda.database.api.get_all_train_id_as_sponsor() list[str]

Get all train ids as sponsor that store in all db

Returns

list[str]

colda.database.api.logout(self)

Clean all database

Returns

None

colda.database.base module

class colda.database.base.BaseDatabase

Bases: object

Base class for Algorithm

final placeholder()

colda.database.database_factory module

class colda.database.database_factory.AbstractDatabaseFactory

Bases: ABC

Abstract class for database factory

Returns

None

abstract classmethod get_instance()
class colda.database.database_factory.GetDefaultMetadataDatabase

Bases: AbstractDatabaseFactory

classmethod get_instance() DefaultMetadataDatabase

DefaultMetadataDatabase factory

Returns

DefaultMetadataDatabase

class colda.database.database_factory.GetTestAlgorithmDatabase

Bases: AbstractDatabaseFactory

classmethod get_instance() TestAlgorithmDatabase

TestAlgorithmDatabase factory

Returns

TestAlgorithmDatabase

class colda.database.database_factory.GetTestAssistorMetadataDatabase

Bases: AbstractDatabaseFactory

classmethod get_instance() TestAssistorMetadataDatabase

TestAssistorMetadataDatabase factory

Returns

TestAssistorMetadataDatabase

class colda.database.database_factory.GetTestSponsorMetadataDatabase

Bases: AbstractDatabaseFactory

classmethod get_instance() TestSponsorMetadataDatabase

TestSponsorMetadataDatabase factory

Returns

TestSponsorMetadataDatabase

class colda.database.database_factory.GetTrainAlgorithmDatabase

Bases: AbstractDatabaseFactory

classmethod get_instance() TrainAlgorithmDatabase

TrainAlgorithmDatabase factory

Returns

TrainAlgorithmDatabase

class colda.database.database_factory.GetTrainAssistorMetadataDatabase

Bases: AbstractDatabaseFactory

classmethod get_instance() TrainAssistorMetadataDatabase

TrainAssistorMetadataDatabase factory

Returns

TrainAssistorMetadataDatabase

class colda.database.database_factory.GetTrainSponsorMetadataDatabase

Bases: AbstractDatabaseFactory

classmethod get_instance() TrainSponsorMetadataDatabase

TrainSponsorMetadataDatabase factory

Returns

TrainSponsorMetadataDatabase

colda.database.utils module

colda.database.utils.get_user_id() str

Get current user_id

Returns

str

Module contents