ifctester.reporter

Module Contents

class ifctester.reporter.Bcf(ids: ifctester.ids.Ids)

Bases: Json

report_failed_entities(requirement: ifctester.facet.Facet) list[ifctester.facet.FacetFailure]
to_file(filepath: str) None
class ifctester.reporter.Console(ids: ifctester.ids.Ids, use_colour=True)

Bases: Reporter

print(txt: str, end: str | None = None)
report() None
report_reason(failure: ifctester.facet.FacetFailure) None
report_specification(specification: ifctester.ids.Specification) None
set_style(*colours: str)
colours
use_colour
class ifctester.reporter.Html(ids: ifctester.ids.Ids)

Bases: Json

group_by_type(entities)
limit_entities(entities)
report() None
to_file(filepath: str) None
to_string() str
entity_limit = 100
class ifctester.reporter.Json(ids: ifctester.ids.Ids)

Bases: Reporter

encode(obj)
report() Results
report_failed_entities(requirement: ifctester.facet.Facet) list[ResultsEntity]
report_passed_entities(requirement: ifctester.facet.Facet) list[ResultsEntity]
report_specification(specification: ifctester.ids.Specification) ResultsSpecification
to_file(filepath: str) None
to_string() str
results
class ifctester.reporter.Ods(ids: ifctester.ids.Ids, excel_safe=False)

Bases: Json

excel_safe_spreadsheet_name(name: str) str
to_file(filepath: str) None
colours
excel_safe
class ifctester.reporter.OdsSummary(ids: ifctester.ids.Ids, excel_safe=False)

Bases: Json

excel_safe_spreadsheet_name(name: str) str
to_file(filepath: str) None
colours
excel_safe
class ifctester.reporter.Reporter(ids: ifctester.ids.Ids)
report(ids)
to_string()
write(filepath)
ids
class ifctester.reporter.Results

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

date: str
filename: str
filepath: str
percent_checks_pass: ResultsPercent
percent_requirements_pass: ResultsPercent
percent_specifications_pass: ResultsPercent
specifications: list[ResultsSpecification]
status: bool
title: str
total_checks: int
total_checks_fail: int
total_checks_pass: int
total_requirements: int
total_requirements_fail: int
total_requirements_pass: int
total_specifications: int
total_specifications_fail: int
total_specifications_pass: int
class ifctester.reporter.ResultsRequirement

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

description: str
facet_type: str
failed_entities: list[ResultsEntity]
label: str
metadata: dict
passed_entities: list[ResultsEntity]
percent_pass: ResultsPercent
status: bool
total_applicable: int
total_fail: int
total_pass: int
value: str
class ifctester.reporter.ResultsSpecification

Bases: TypedDict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

applicability: list[str]
description: str
instructions: str
is_ifc_version: bool
name: str
percent_applicable_pass: ResultsPercent
percent_checks_pass: ResultsPercent
required: bool
requirements: list[ResultsRequirement]
status: bool
total_applicable: int
total_applicable_fail: int
total_applicable_pass: int
total_checks: int
total_checks_fail: int
total_checks_pass: int
class ifctester.reporter.Txt(ids: ifctester.ids.Ids)

Bases: Console

print(txt: str, end: str | None = None)
to_file(filepath: str) None
to_string() None
text = ''
ifctester.reporter.ResultsEntity
ifctester.reporter.ResultsPercent
ifctester.reporter.cwd