DataModel
A data model for holding and validating data.
Usage
DataModel()Parameters
data: dict-
The data to model.
Examples
>>> m = DataModel({"key": "value"})
>>> m.validate()
TrueMethods
| Name | Description |
|---|---|
| __init__() | Initialize the data model. |
| validate() | Validate the data model. |
__init__()
Initialize the data model.
Usage
__init__(data)Parameters
data: dict-
The data to model.
validate()
Validate the data model.
Usage
validate()Returns
bool-
True if the data is valid.