robot.htmldata package

Package for writing output files in HTML format.

This package is considered stable, but it is not part of the public API.

Subpackages

Submodules

robot.htmldata.htmlfilewriter module

class robot.htmldata.htmlfilewriter.HtmlFileWriter(output: TextIOBase, model_writer: ModelWriter)[source]

Bases: object

write(template: Path | str)[source]
class robot.htmldata.htmlfilewriter.Writer[source]

Bases: ABC

handles_line = None
handles(line: str)[source]
abstract write(line: str)[source]
class robot.htmldata.htmlfilewriter.ModelWriter[source]

Bases: Writer, ABC

handles_line = '<!-- JS MODEL -->'
class robot.htmldata.htmlfilewriter.LineWriter(output: TextIOBase)[source]

Bases: Writer

handles(line: str)[source]
write(line: str)[source]
class robot.htmldata.htmlfilewriter.GeneratorWriter(writer: HtmlWriter)[source]

Bases: Writer

handles_line = '<meta name="Generator" content='
write(line: str)[source]
class robot.htmldata.htmlfilewriter.InliningWriter(writer: HtmlWriter, base_dir: Path)[source]

Bases: Writer, ABC

inline_file(path: Path | str, tag: str, attrs: dict)[source]
class robot.htmldata.htmlfilewriter.JsFileWriter(writer: HtmlWriter, base_dir: Path)[source]

Bases: InliningWriter

handles_line = '<script type="text/javascript" src='
write(line: str)[source]
class robot.htmldata.htmlfilewriter.CssFileWriter(writer: HtmlWriter, base_dir: Path)[source]

Bases: InliningWriter

handles_line = '<link rel="stylesheet"'
write(line: str)[source]

robot.htmldata.jsonwriter module

class robot.htmldata.jsonwriter.JsonWriter(output, separator='')[source]

Bases: object

write_json(prefix, data, postfix=';\n', mapping=None, separator=True)[source]
write(string, postfix=';\n', separator=True)[source]
class robot.htmldata.jsonwriter.JsonDumper(output)[source]

Bases: object

dump(data, mapping=None)[source]
class robot.htmldata.jsonwriter.StringDumper(jsondumper)[source]

Bases: _Dumper

dump(data, mapping)[source]
class robot.htmldata.jsonwriter.IntegerDumper(jsondumper)[source]

Bases: _Dumper

dump(data, mapping)[source]
class robot.htmldata.jsonwriter.DictDumper(jsondumper)[source]

Bases: _Dumper

dump(data, mapping)[source]
class robot.htmldata.jsonwriter.TupleListDumper(jsondumper)[source]

Bases: _Dumper

dump(data, mapping)[source]
class robot.htmldata.jsonwriter.MappingDumper(jsondumper)[source]

Bases: _Dumper

handles(data, mapping)[source]
dump(data, mapping)[source]
class robot.htmldata.jsonwriter.NoneDumper(jsondumper)[source]

Bases: _Dumper

handles(data, mapping)[source]
dump(data, mapping)[source]

robot.htmldata.template module

class robot.htmldata.template.HtmlTemplate(path: Path | str)[source]

Bases: Iterable