transport_data.org.metadata.report.MetadataSet0ODT

class transport_data.org.metadata.report.MetadataSet0ODT(mds: v21.MetadataSet)[source]

Bases: Report

Summary of the unique reported attribute values in mds.

Similar to MetadataSet0Plain, but also including:

  • The unique dimension concepts appearing in the data structure definitions.

__init__(mds: v21.MetadataSet) None

Methods

__init__(mds)

render()

Render the report (generate its contents) and return as str or bytes.

render_jinja_template(*args, **kwargs)

Retrieve the Jinja2 template_name and call its render method.

rst2odt(content)

Convert content from reStructuredText to OpenDocument Text (ODT).

write_file(path, **kwargs)

render() the report and write to path.

Attributes

template_name

Name of a Jinja2 template used by the report; see render_jinja_template().

mds

Metadata set to report.

mds: v21.MetadataSet

Metadata set to report.

render() bytes

Render the report (generate its contents) and return as str or bytes.

The content may be in any format: plain text, HTML, binary file content, etc.

render_jinja_template(*args, **kwargs) str

Retrieve the Jinja2 template_name and call its render method.

rst2odt(content: str) bytes

Convert content from reStructuredText to OpenDocument Text (ODT).

Returns:

The ODT (ZIP) archive.

Return type:

bytes

template_name: str = 'metadata-set-0.rst'

Name of a Jinja2 template used by the report; see render_jinja_template().

write_file(path: pathlib.Path, **kwargs) None

render() the report and write to path.