Subpackages
Submodules
- api
- argparse - Command-line parsing library
This module is an optparse-inspired command-line parsing library that:
- handles both optional and positional arguments
- produces highly informative usage messages
- supports parsers that dispatch to sub-parsers
The following is a simple usage example that sums integers from the command-line and writes the result to a file:
parser = argparse.ArgumentParser( description='sum the integers at the command line') parser.add_argument( 'integers', metavar='int', nargs='+', type=int, help='an integer to be summed') parser.add_argument( '--log', default=sys.stdout, type=argparse.FileType('w'), help='the file where the sum should be written') args = parser.parse_args() args.log.write('%s' % sum(args.integers)) args.log.close()The module contains the following public classes:
- base_subcommand - A base class for sub-command parsers
- bdist - Perform a build on the projects within a checkout
- checkout - Create a new checkout
- clean - Perform a clean operation on the projects within a checkout
- depends - Displays a dependency list for a given project.
- develop - Perform a development install on the projects within a checkout
- ets - Checkout the sources corresponding to the projects a specified egg or enthought project depends on
- graph - Displays a dependency graph for a given project, using pygraphviz
- info - Display repository information for each project within a checkout
- install - Perform an install on the projects within a checkout
- map - Interact with project maps
- pkg_url - List all the urls of the released packages to download in order to install a given project
- revert - Perform a source reversion on the projects within a checkout
- sdist - Package a source distribution for the projects within a checkout
- status - Perform a source status check on the projects within a checkout
- test - Perform tests for ETS projects
- update - Perform a source control update on the projects within a checkout
- version