srctools
A number of utilities are present in the toplevel of the srctools
package.
srctools.clean_line
srctools.is_plain_text
escape_quote_split
AtomicWriter
bool_as_int
conv_int
conv_float
conv_bool
BOOL_LOOKUP
is a constant mapping string values to the appropriate boolean result, the same way :pyconv_bool
functions.
This is a constant mapping which behaves as if it is always empty. It is intended for use in default parameter values, and other fallbacks. It also supports writing operations, which simply do nothing.
Several classes from other modules are automatically imported, allowing for more convenient access.
These are found in :pysrctools.math
.
These are found in :pysrctools.keyvalues
.
These are found in :pysrctools.filesys
.
These are found in :pysrctools.vmf
.
These are found in :pysrctools.surfaceprop
.
This is :pysrctools.vpk.VPK
.
This is :pysrctools.fgd.FGD
.
This is :pysrctools.const.GameID
.
This is :pysrctools.vtf.VTF
.