vsgen.writer module¶
This module provides a simple multi-threaded writer utility for VSGProjects and VSGSolutions
-
class
vsgen.writer.
VSGJinjaRenderer
[source]¶ Bases:
object
A class defining methods interacting with Jinja2.
-
class
vsgen.writer.
VSGWritable
[source]¶ Bases:
object
An interface class defining methods necessary for VSGWriter
-
lower
(value)[source]¶ Converts a value to lower case in a way compatible with Python2 and Python 3.
Parameters: value (object) – The value to convert. Returns: The value as lower case text.
-
text
(value)[source]¶ Converts a value to text in a way compatible with Python2 and Python 3.
Parameters: value (object) – The value to convert. Returns: The value as text.
-
-
class
vsgen.writer.
VSGWriteCommand
(logname, writables, parallel=True)[source]¶ Bases:
object
The VSGWriteCommand class presents a simple command object to execute the writing methods of a collection of VSGWritable objects.
-
class
vsgen.writer.
VSGWriter
(pylist)[source]¶ Bases:
threading.Thread
VSGWriter encapsulates the logic needed to write any VSG object to disk.