great_expectations.data_context.templates

Module Contents

Classes

YAMLToString(: Any, _kw: Optional[Text] = enforce, typ: Any = None, pure: Any = False, output: Any = None, plug_ins=None)

Get yaml dump as a string: https://yaml.readthedocs.io/en/latest/example.html#output-of-dump-as-a-string

class great_expectations.data_context.templates.YAMLToString(: Any, _kw: Optional[Text] = enforce, typ: Any = None, pure: Any = False, output: Any = None, plug_ins=None)

Bases: ruamel.yaml.YAML

Get yaml dump as a string: https://yaml.readthedocs.io/en/latest/example.html#output-of-dump-as-a-string

dump(self, data, stream=None, **kw)
great_expectations.data_context.templates.yaml
great_expectations.data_context.templates.default_flow_style = False
great_expectations.data_context.templates.PROJECT_HELP_COMMENT
great_expectations.data_context.templates.CONFIG_VARIABLES_INTRO =

# This config file supports variable substitution which enables: 1) keeping # secrets out of source control & 2) environment-based configuration changes # such as staging vs prod. # # When GE encounters substitution syntax (like my_key: ${my_value} or # my_key: $my_value) in the great_expectations.yml file, it will attempt # to replace the value of my_key with the value from an environment # variable my_value or a corresponding key read from this config file, # which is defined through the config_variables_file_path. # Environment variables take precedence over variables defined here. # # Substitution values defined here can be a simple (non-nested) value, # nested value such as a dictionary, or an environment variable (i.e. ${ENV_VAR}) # # # https://docs.greatexpectations.io/en/latest/guides/how_to_guides/configuring_data_contexts/how_to_use_a_yaml_file_or_environment_variables_to_populate_credentials.html

great_expectations.data_context.templates.CONFIG_VARIABLES_TEMPLATE
great_expectations.data_context.templates.EXPECTATIONS_STORE_STRING
great_expectations.data_context.templates.VALIDATIONS_STORE_STRING
great_expectations.data_context.templates.EVALUATION_PARAMETER_STORE_STRING
great_expectations.data_context.templates.CHECKPOINT_STORE_STRING
great_expectations.data_context.templates.PROJECT_OPTIONAL_CONFIG_COMMENT
great_expectations.data_context.templates.ANONYMIZED_USAGE_STATISTICS_ENABLED =
anonymous_usage_statistics:

enabled: True

great_expectations.data_context.templates.ANONYMIZED_USAGE_STATISTICS_DISABLED =
anonymous_usage_statistics:

enabled: False

great_expectations.data_context.templates.DEFAULT_GE_CLOUD_DATA_CONTEXT_CONFIG =
datasources:
default_spark_datasource:
execution_engine:

module_name: great_expectations.execution_engine class_name: SparkDFExecutionEngine

module_name: great_expectations.datasource class_name: Datasource data_connectors:

default_runtime_data_connector:

class_name: RuntimeDataConnector batch_identifiers:

  • timestamp

default_pandas_datasource:
execution_engine:

module_name: great_expectations.execution_engine class_name: PandasExecutionEngine

module_name: great_expectations.datasource class_name: Datasource data_connectors:

default_runtime_data_connector:

class_name: RuntimeDataConnector batch_identifiers:

  • timestamp

plugins_directory: ${plugins_directory}

stores:
default_evaluation_parameter_store:

class_name: EvaluationParameterStore

default_expectations_store:

class_name: ExpectationsStore store_backend:

class_name: GeCloudStoreBackend ge_cloud_base_url: ${base_url} ge_cloud_resource_type: expectation_suite ge_cloud_credentials:

access_token: ${access_token} account_id: ${account_id}

suppress_store_backend_id: True

default_validations_store:

class_name: ValidationsStore store_backend:

class_name: GeCloudStoreBackend ge_cloud_base_url: ${base_url} ge_cloud_resource_type: suite_validation_result ge_cloud_credentials:

access_token: ${access_token} account_id: ${account_id}

suppress_store_backend_id: True

default_checkpoint_store:

class_name: CheckpointStore store_backend:

class_name: GeCloudStoreBackend ge_cloud_base_url: ${base_url} ge_cloud_resource_type: contract ge_cloud_credentials:

access_token: ${access_token} account_id: ${account_id}

suppress_store_backend_id: True

evaluation_parameter_store_name: default_evaluation_parameter_store expectations_store_name: default_expectations_store validations_store_name: default_validations_store checkpoint_store_name: default_checkpoint_store

data_docs_sites:
default_site:

class_name: SiteBuilder show_how_to_buttons: true store_backend:

class_name: GeCloudStoreBackend ge_cloud_base_url: ${base_url} ge_cloud_resource_type: rendered_data_doc ge_cloud_credentials:

access_token: ${access_token} account_id: ${account_id}

suppress_store_backend_id: True

site_index_builder:

class_name: DefaultSiteIndexBuilder

site_section_builders:

profiling: None

anonymous_usage_statistics:

enabled: true usage_statistics_url: ${usage_statistics_url} data_context_id: ${account_id}

great_expectations.data_context.templates.PROJECT_TEMPLATE_USAGE_STATISTICS_ENABLED
great_expectations.data_context.templates.PROJECT_TEMPLATE_USAGE_STATISTICS_DISABLED