great_expectations.render.renderer

Package Contents

Classes

CallToActionRenderer()

ExpectationSuiteColumnSectionRenderer(bullet_list_renderer=None)

ProfilingResultsColumnSectionRenderer(properties_table_renderer=None, runtime_environment=None)

ValidationResultsColumnSectionRenderer(table_renderer=None)

EmailRenderer()

MicrosoftTeamsRenderer()

OpsgenieRenderer()

ExpectationSuitePageRenderer(column_section_renderer=None)

ProfilingResultsPageRenderer(overview_section_renderer=None, column_section_renderer=None)

ValidationResultsPageRenderer(column_section_renderer=None, run_info_at_end: bool = False, data_context=None)

ProfilingResultsOverviewSectionRenderer()

SiteIndexPageRenderer()

SlackRenderer()

class great_expectations.render.renderer.CallToActionRenderer
_document_defaults
classmethod render(cls, cta_object)
Parameters

cta_object

dict {

”header”: # optional, can be a string or string template “buttons”: # list of CallToActionButtons

}

Returns

dict {

”header”: # optional, can be a string or string template “buttons”: # list of CallToActionButtons

}

class great_expectations.render.renderer.ExpectationSuiteColumnSectionRenderer(bullet_list_renderer=None)

Bases: great_expectations.render.renderer.column_section_renderer.ColumnSectionRenderer

classmethod _render_header(cls, expectations)
_render_bullet_list(self, expectations)
render(self, expectations)
class great_expectations.render.renderer.ProfilingResultsColumnSectionRenderer(properties_table_renderer=None, runtime_environment=None)

Bases: great_expectations.render.renderer.column_section_renderer.ColumnSectionRenderer

render(self, evrs, section_name=None, column_type=None)
classmethod _render_header(cls, evrs, column_type=None)
classmethod _render_expectation_types(cls, evrs, content_blocks)
_render_properties_table(self, evrs)
classmethod _render_quantile_table(cls, evrs)
classmethod _render_stats_table(cls, evrs)
classmethod _render_values_set(cls, evrs)
_render_histogram(self, evrs)
classmethod _render_value_counts_bar_chart(cls, evrs)
classmethod _render_failed(cls, evrs)
classmethod _render_unrecognized(cls, evrs, content_blocks)
class great_expectations.render.renderer.ValidationResultsColumnSectionRenderer(table_renderer=None)

Bases: great_expectations.render.renderer.column_section_renderer.ColumnSectionRenderer

classmethod _render_header(cls, validation_results)
_render_table(self, validation_results, evaluation_parameters=None)
render(self, validation_results, evaluation_parameters=None)
class great_expectations.render.renderer.EmailRenderer

Bases: great_expectations.render.renderer.renderer.Renderer

render(self, validation_result=None, data_docs_pages=None, notify_with=None)
_get_report_element(self, docs_link)
class great_expectations.render.renderer.MicrosoftTeamsRenderer

Bases: great_expectations.render.renderer.renderer.Renderer

MICROSOFT_TEAMS_SCHEMA_URL = http://adaptivecards.io/schemas/adaptive-card.json
render(self, validation_result=None, validation_result_suite_identifier=None, data_docs_pages=None)
static _get_report_element(docs_link)
static _render_validation_result_element(key, value, validation_result=None)
class great_expectations.render.renderer.OpsgenieRenderer

Bases: great_expectations.render.renderer.renderer.Renderer

render(self, validation_result=None, data_docs_pages=None, notify_with=None)
_custom_blocks(self, evr)
_get_report_element(self, docs_link)
class great_expectations.render.renderer.ExpectationSuitePageRenderer(column_section_renderer=None)

Bases: great_expectations.render.renderer.renderer.Renderer

render(self, expectations)
_render_table_level_expectations(self, columns)
classmethod _render_expectation_suite_header(cls)
classmethod _render_expectation_suite_info(cls, expectations)
classmethod _render_expectation_suite_notes(cls, expectations)
class great_expectations.render.renderer.ProfilingResultsPageRenderer(overview_section_renderer=None, column_section_renderer=None)

Bases: great_expectations.render.renderer.renderer.Renderer

render(self, validation_results)
class great_expectations.render.renderer.ValidationResultsPageRenderer(column_section_renderer=None, run_info_at_end: bool = False, data_context=None)

Bases: great_expectations.render.renderer.renderer.Renderer

render_validation_operator_result(self, validation_operator_result: ValidationOperatorResult)

Render a ValidationOperatorResult which can have multiple ExpectationSuiteValidationResult

Parameters

validation_operator_result – ValidationOperatorResult

Returns

List[RenderedDocumentContent]

render(self, validation_results: ExpectationSuiteValidationResult, evaluation_parameters=None)
_parse_run_values(self, validation_results: ExpectationSuiteValidationResult)
_group_evrs_by_column(self, validation_results: ExpectationSuiteValidationResult, expectation_suite_name: str)
_generate_collapse_content_block(self, collapse_content_blocks: List[RenderedTableContent], validation_results: ExpectationSuiteValidationResult)
_collect_rendered_document_content_sections(self, validation_results: ExpectationSuiteValidationResult, overview_content_blocks: List[RenderedComponentContent], collapse_content_blocks: List[RenderedTableContent], columns: Dict[str, list])
_determine_page_title(self, run_name: str, run_time: str, data_asset_name: str, expectation_suite_name: str)
classmethod _get_meta_properties_notes(cls, suite_meta)

This method is used for fetching the custom meta to be added at the suite level “notes”: {

“content”: {

“dimension”: “properties.dimension”, “severity”: “properties.severity”

}, “format”: “renderer.diagnostic.meta_properties”

} expectation level {

“expectation_type”: “expect_column_values_to_not_be_null”, “kwargs”: {

“column”: “city”

}, “meta”: {

“attributes”: {
“properties”: {

“dimension”: “completeness”, “severity”: “P3”

}, “user_meta”: {

“notes”: “”

}

}

}

} This will fetch dimension and severity values which are in the expectation meta.

classmethod _render_validation_header(cls, validation_results)
classmethod _render_validation_info(cls, validation_results)
classmethod _render_nested_table_from_dict(cls, input_dict, header=None, sub_table=False)
classmethod _render_validation_statistics(cls, validation_results)
class great_expectations.render.renderer.ProfilingResultsOverviewSectionRenderer

Bases: great_expectations.render.renderer.renderer.Renderer

classmethod render(cls, evrs, section_name=None)
classmethod _render_header(cls, evrs, content_blocks)
classmethod _render_dataset_info(cls, evrs, content_blocks)
classmethod _render_variable_types(cls, evrs, content_blocks)
classmethod _render_expectation_types(cls, evrs, content_blocks)
classmethod _render_warnings(cls, evrs, content_blocks)
classmethod _get_percentage_missing_cells_str(cls, evrs)
classmethod _get_column_types(cls, evrs)
class great_expectations.render.renderer.SiteIndexPageRenderer

Bases: great_expectations.render.renderer.renderer.Renderer

classmethod _render_expectation_suite_cell(cls, expectation_suite_name, expectation_suite_path)
classmethod _render_batch_id_cell(cls, batch_id, batch_kwargs=None, batch_spec=None)
classmethod _get_formatted_datetime(cls, _datetime)
classmethod _get_timestamp(cls, _datetime)
classmethod _render_validation_success_cell(cls, validation_success)
classmethod render(cls, index_links_dict)
class great_expectations.render.renderer.SlackRenderer

Bases: great_expectations.render.renderer.renderer.Renderer

render(self, validation_result=None, data_docs_pages=None, notify_with=None)
_get_report_element(self, docs_link)