compiler
Kid Compiler
The compiler module is accessible via the kid module.
Compile XML to Python byte-code.
Attributes
Functions
f compile(source, filename='<string>', encoding=None) ...
Compiles kid xml source to a Python code object.
source -- A file like object - must support read. filename -- An optional filename that is used
f compile_file(file, force=0, source=0, encoding=None, strip_dest_dir=None) ...
Compile the file specified.
Return True if the file was compiled, False if the compiled file already exists and is up-to-date.
f compile_dir(dir, maxlevels=10, force=0, source=0, encoding=None, strip_dest_dir=None) ...
Byte-compile all kid modules in the given directory tree.
Keyword Arguments: (only dir is required) dir -- the directory to byte-compile maxlevels -- maximum recursion level (default 10) force -- if true, force compilation, even if timestamps are up-to-date. source -- if true, dump python source (.py) files along with .pyc files.
See the source for more information.