DataContractModel (deprecated)¶
Deprecated alias
DataContractModel is a deprecated alias for Data. New code should
subclass Data. Prefer:
Importing DataContractModel from etlantic emits a deprecation
warning. This page remains for migration context only.
Why the rename¶
ETLantic's preferred public name for a typed dataset contract is Data.
Under the hood it remains a thin alias of ContractModel's ContractModel.
The older ETLantic-facing name DataContractModel confused the boundary
between ContractModel and ETLantic.
Migration¶
- Replace
from etlantic import DataContractModelwithfrom etlantic import Data. - Replace
class X(DataContractModel)withclass X(Data). - Load ODCS with
load_data_contract(...)and write withwrite_odcs(...).
See Data Contracts overview, ODCS, and Loading.