msaUtils Module
.base_model
Classes
MSABaseModel
Bases: BaseModel
Classes
Config
Attributes
json_dumps
class-attribute
json_dumps = orjson_dumps
json_encoders
class-attribute
json_encoders = {datetime: convert_datetime_to_gmt}
json_loads
class-attribute
json_loads = orjson.loads
Functions
serializable_dict
serializable_dict(**kwargs)
Return a dict which contains only serializable fields.
set_null_microseconds
set_null_microseconds(data: dict) -> dict
Drops microseconds in all the datetime field values.
Functions
convert_datetime_to_gmt
convert_datetime_to_gmt(dt: datetime) -> str
orjson_dumps
orjson_dumps(v, *, default)
Last update:
September 24, 2022
Created:
September 24, 2022