delphi.apps.rest_api package
Submodules
delphi.apps.rest_api.api module
delphi.apps.rest_api.config module
delphi.apps.rest_api.make_plots module
delphi.apps.rest_api.models module
- class JsonEncodedList(*args, **kwargs)[source]
Bases:
sqlalchemy.sql.type_api.TypeDecorator
Enables list storage by encoding and decoding on the fly.
- impl
alias of
sqlalchemy.sql.sqltypes.Text
- process_bind_param(value, dialect)[source]
Receive a bound parameter value to be converted.
Custom subclasses of
_types.TypeDecorator
should override this method to provide custom behaviors for incoming data values. This method is called at statement execution time and is passed the literal Python data value which is to be associated with a bound parameter in the statement.The operation could be anything desired to perform custom behavior, such as transforming or serializing data. This could also be used as a hook for validating logic.
- Parameters:
value – Data to operate upon, of any type expected by this method in the subclass. Can be
None
.dialect – the
Dialect
in use.
See also
types_typedecorator
_types.TypeDecorator.process_result_value()
- process_result_value(value, dialect)[source]
Receive a result-row column value to be converted.
Custom subclasses of
_types.TypeDecorator
should override this method to provide custom behaviors for data values being received in result rows coming from the database. This method is called at result fetching time and is passed the literal Python data value that’s extracted from a database result row.The operation could be anything desired to perform custom behavior, such as transforming or deserializing data.
- Parameters:
value – Data to operate upon, of any type expected by this method in the subclass. Can be
None
.dialect – the
Dialect
in use.
See also
types_typedecorator
_types.TypeDecorator.process_bind_param()
- class JsonEncodedDict(*args, **kwargs)[source]
Bases:
sqlalchemy.sql.type_api.TypeDecorator
Enables JsonEncodedDict storage by encoding and decoding on the fly.
- impl
alias of
sqlalchemy.sql.sqltypes.Text
- process_bind_param(value, dialect)[source]
Receive a bound parameter value to be converted.
Custom subclasses of
_types.TypeDecorator
should override this method to provide custom behaviors for incoming data values. This method is called at statement execution time and is passed the literal Python data value which is to be associated with a bound parameter in the statement.The operation could be anything desired to perform custom behavior, such as transforming or serializing data. This could also be used as a hook for validating logic.
- Parameters:
value – Data to operate upon, of any type expected by this method in the subclass. Can be
None
.dialect – the
Dialect
in use.
See also
types_typedecorator
_types.TypeDecorator.process_result_value()
- process_result_value(value, dialect)[source]
Receive a result-row column value to be converted.
Custom subclasses of
_types.TypeDecorator
should override this method to provide custom behaviors for data values being received in result rows coming from the database. This method is called at result fetching time and is passed the literal Python data value that’s extracted from a database result row.The operation could be anything desired to perform custom behavior, such as transforming or deserializing data.
- Parameters:
value – Data to operate upon, of any type expected by this method in the subclass. Can be
None
.dialect – the
Dialect
in use.
See also
types_typedecorator
_types.TypeDecorator.process_bind_param()
- class DelphiModel(**kwargs)[source]
Bases:
sqlalchemy.orm.decl_api.Model
,delphi.apps.rest_api.models.Serializable
Delphi AnalysisGraph Model
- id
- model
- class ExperimentResult(**kwargs)[source]
Bases:
sqlalchemy.orm.decl_api.Model
,delphi.apps.rest_api.models.Serializable
Notional model of experiment results
- baseType
- id