Skip to main content

DataContext.create

Back to class documentation

Fully qualified path​

great_expectations.data_context.data_context.data_context.DataContext.create

Synopsis​

Build a new great_expectations directory and DataContext object in the provided project_root_dir.

create will create a new "great_expectations" directory in the provided folder, provided one does not already exist. Then, it will initialize a new DataContext in that folder and write the resulting config.

Parameters​

ParameterTypingDefaultDescription
project_root_dirUnion[str, NoneType]Nonepath to the root directory in which to create a new great_expectations directory
usage_statistics_enabledboolTrueboolean directive specifying whether or not to gather usage statistics
runtime_environmentUnion[dict, NoneType]Nonea dictionary of config variables that override both those set in config_variables.yml and the environment

Returns​

DataContext