enable_experimental_validators
New validation rules in Neat are first released as experimental validators. This flag gives you early access to all of them.
enable_fix_validation_issues
Neat can automatically fix issues reported by performance validators (NEAT-DMS-PERFORMANCE-XXX). This flag turns that on so Neat applies fixes during the read operation. You must also enable enable_experimental_validators, because these validators are still experimental.
Set
config.alpha.enable_experimental_validators = True as well when using enable_fix_validation_issues.my_data_model.xlsx.
For example, for reverse direct relationships Neat adds an index on the target so reverse lookups perform well in Cognite Data Fusion (CDF).
enable_solution_model_creation
Many organizations use one main data model as the source of truth for shared concepts. For a specific use case or project you can create a solution model that references the main model but includes only the concepts you need. The .create() method does that: it creates a new model that references an existing one.
For example, to create a solution model with only assets and time series from the CogniteCore data model:
my_solution_model.xlsx. The new model includes only the CogniteAsset and CogniteTimeSeries views from CogniteCore. Properties that reference view types outside that selection are excluded.
enable_cdf_analysis
Neat is used for data model development and can also analyze the data models in your CDF project.
The following code runs an analysis of all data models and data modeling resources in the project your NeatSession is connected to.
enable_datamodel_file_selection
Neat expects one data model when reading into a NeatSession. When reading YAML from a directory (Cognite Toolkit format), the directory may contain multiple data model files. This flag lets you choose which one to read by passing its path to the data_model_file parameter of read.yaml().
my_module/data_modeling directory, which contains multiple DataModel YAML files. The data_model_file parameter selects which file to read.
Without this flag, Neat throws an error when a directory contains more than one DataModel YAML file.
enable_governed_spaces
Neat expects containers and views to be in the same space as their data model. On deploy, it skips any containers or views that are in a different space. When you read and validate a data model, Neat checks CDF and flags containers or views that live in another space.
Enable enable_governed_spaces to include containers and views from other spaces. Then add the governedSpaces key to the Metadata sheet in your spreadsheet.
For example, you can add the following key-value pairs to the Metadata sheet.
With this
Metadata sheet in my_data_model.xlsx, run the following code. Neat finds containers and views in my_other_space and yet_another_space and adds them to the deployment plan when you deploy to CDF.
enable_plugins
Enable external plugins to extend Neat’s functionality with custom external plugins for data model reading.
When enabled, Neat discovers and loads plugins from installed packages via entry points. Plugins allow you to add custom import methods to the ReadPhysicalDataModel class dynamically.
pyproject.toml:
pip install -e . or uv pip install -e .. Neat will automatically discover and attach it to ReadPhysicalDataModel.
Further reading
- NeatConfig reference — Configure your Neat session with data modeling modes and validation rules.
- Validation rules — Reference for all available validation rules.
- NeatSession reference — Main interface for working with Neat.