winspsrc.scripts package

Submodules

winspsrc.scripts.extract module

Script to extract Windows serialized property information.

winspsrc.scripts.extract.Main()[source]

Entry point of console script to extract property information.

Returns:

exit code that is provided to sys.exit().

Return type:

int

winspsrc.scripts.generate_docs module

Script to generate Windows serialized property documentation.

class winspsrc.scripts.generate_docs.IndexRstOutputWriter(path)[source]

Bases: object

Index.rst output writer.

WritePropertySet(format_identifier)[source]

Writes a property set to the index.rst file.

Parameters:

format_identifier (str) – format identifier.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

__init__(path)[source]

Initializes an index.rst output writer.

winspsrc.scripts.generate_docs.Main()[source]

Entry point of console script to generate property documentation.

Returns:

exit code that is provided to sys.exit().

Return type:

int

class winspsrc.scripts.generate_docs.MarkdownOutputWriter(path)[source]

Bases: object

Markdown output writer.

WritePropertySet(property_set)[source]

Writes a property set to a Markdown file.

Parameters:

property_set (list[SerializedPropertyDefinition]) – property set.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

__init__(path)[source]

Initializes a Markdown output writer.

winspsrc.scripts.generate_source module

Script to generate Windows serialized property source code.

winspsrc.scripts.generate_source.Main()[source]

Entry point of console script to generate property source code.

Returns:

exit code that is provided to sys.exit().

Return type:

int

winspsrc.scripts.merge_yaml module

Script to combine winsps-kb YAML files.

winspsrc.scripts.merge_yaml.Main()[source]

Entry point of console script to combine winsps-kb YAML files.

Returns:

exit code that is provided to sys.exit().

Return type:

int

class winspsrc.scripts.merge_yaml.YAMLOutputWriter[source]

Bases: object

YAML output writer.

WritePropertyDefinition(property_definition)[source]

Writes a property definition in YAML to stdout.

Parameters:

property_definition (SerializedPropertyDefinition) – property definition.

__enter__()[source]

Make this work with the ‘with’ statement.

__exit__(exception_type, value, traceback)[source]

Make this work with the ‘with’ statement.

winspsrc.scripts.resolve_names module

Module contents