lomas_core package
Subpackages
- lomas_core.models package
- Submodules
- lomas_core.models.collections module
BooleanMetadata
BoundedColumnMetadata
CategoricalColumnMetadata
ColumnMetadata
DSAccess
DSInfo
DSPathAccess
DSS3Access
DatasetOfUser
DatasetsCollection
DatetimeMetadata
FloatMetadata
IntCategoricalMetadata
IntMetadata
Metadata
StrCategoricalMetadata
StrMetadata
User
UserCollection
get_column_metadata_discriminator()
- lomas_core.models.config module
Config
DBConfig
DPLibraryConfig
MongoDBConfig
MongoDBConfig.address
MongoDBConfig.db_name
MongoDBConfig.db_type
MongoDBConfig.max_connecting
MongoDBConfig.max_pool_size
MongoDBConfig.min_pool_size
MongoDBConfig.model_computed_fields
MongoDBConfig.model_config
MongoDBConfig.model_fields
MongoDBConfig.password
MongoDBConfig.port
MongoDBConfig.username
OpenDPConfig
PrivateDBCredentials
S3CredentialsConfig
Server
TimeAttack
YamlDBConfig
- lomas_core.models.constants module
- lomas_core.models.requests module
DiffPrivLibDummyQueryModel
DiffPrivLibQueryModel
DiffPrivLibRequestModel
DiffPrivLibRequestModel.diffprivlib_json
DiffPrivLibRequestModel.feature_columns
DiffPrivLibRequestModel.imputer_strategy
DiffPrivLibRequestModel.model_computed_fields
DiffPrivLibRequestModel.model_config
DiffPrivLibRequestModel.model_fields
DiffPrivLibRequestModel.target_columns
DiffPrivLibRequestModel.test_size
DiffPrivLibRequestModel.test_train_split_seed
DummyQueryModel
GetDummyDataset
LomasRequestModel
OpenDPDummyQueryModel
OpenDPQueryModel
OpenDPRequestModel
QueryModel
SmartnoiseSQLDummyQueryModel
SmartnoiseSQLQueryModel
SmartnoiseSQLRequestModel
SmartnoiseSynthDummyQueryModel
SmartnoiseSynthQueryModel
SmartnoiseSynthRequestModel
SmartnoiseSynthRequestModel.constraints
SmartnoiseSynthRequestModel.delta
SmartnoiseSynthRequestModel.epsilon
SmartnoiseSynthRequestModel.model_computed_fields
SmartnoiseSynthRequestModel.model_config
SmartnoiseSynthRequestModel.model_fields
SmartnoiseSynthRequestModel.nullable
SmartnoiseSynthRequestModel.select_cols
SmartnoiseSynthRequestModel.synth_name
SmartnoiseSynthRequestModel.synth_params
model_input_to_lib()
- lomas_core.models.responses module
- lomas_core.models.utils module
- Module contents
Submodules
lomas_core.constants module
- class lomas_core.constants.DPLibraries(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
StrEnum
Name of DP Library used in the query.
- DIFFPRIVLIB = 'diffprivlib'
- OPENDP = 'opendp'
- SMARTNOISE_SQL = 'smartnoise_sql'
- SMARTNOISE_SYNTH = 'smartnoise_synth'
- class lomas_core.constants.SSynthGanSynthesizer(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
StrEnum
GAN Synthesizer models for smartnoise synth.
- DP_CTGAN = 'dpctgan'
- DP_GAN = 'dpgan'
- PATE_CTGAN = 'patectgan'
- PATE_GAN = 'pategan'
lomas_core.error_handler module
- exception lomas_core.error_handler.ExternalLibraryException(library: DPLibraries, error_message: str)[source]
Bases:
Exception
Custom exception for issues within external libraries.
This exception will occur when the processes fail within the external libraries (smartnoise-sql, opendp, diffprivlib)
- exception lomas_core.error_handler.InternalServerException(error_message: str)[source]
Bases:
Exception
Custom exception for issues within server internal functionalities.
- exception lomas_core.error_handler.InvalidQueryException(error_message: str)[source]
Bases:
Exception
Custom exception for invalid queries.
- For example, this exception will occur when the query:
is not an opendp measurement
cannot be reconstructed properly (for opendp and diffprivlib)