pycc.cli package¶
Subpackages¶
Submodules¶
pycc.cli.common module¶
Common utilities for CLI modules.
- class pycc.cli.common.PySource¶
Bases: tuple
PySource(node, path)
- node¶
Alias for field number 0
- path¶
Alias for field number 1
- pycc.cli.common.abspath(path)¶
Resolve a path to an absolute path.
- pycc.cli.common.load_dir(path)¶
Get an iterable of PySource from the given directory.
- pycc.cli.common.load_path(path)¶
Get an iterable of PySource from the given path.
- pycc.cli.common.register_arguments(parser)¶
Add arguments required for all CLI tools.
- pycc.cli.common.run_optimizers(args)¶
Optimize each of an iterable of PySource objects.
- pycc.cli.common.write_result(body, path, path_override=None)¶
Write the body into a file in path or path_override.
pycc.cli.compile module¶
pycc.cli.transform module¶
Module contents¶
Modules related to the command line interface of the project.