pybill.commandline package¶
pybill.commandline package contains the the command line interface of
PyBill.
ui module¶
pybill.commandline.ui module define the User Interface for PyBill command
line.
This User Interface consists in a run() function that defines a parser for
the command line arguments and relies on a PyBill controller for running the
PyBill functions.
This module can be executed and just runs the run() function defined
below.
In this module, we define a unique PyBill controller that will be used by the run function.
-
pybill.commandline.ui.controller¶ Unique controller that is used by the
run()function to do the actual PyBill work.type:
PyBillController
This module also defines the run function that provides the User Interface for the command line.
-
pybill.commandline.ui.run()¶ Function containing the User Interface for the command line.
This function hardly relies on a
PyBillControllerobject for doing the actual work and only reads and passes the correct arguments.In order to manage the command line arguments, this function defines and uses an
optparse.OptionParserobject.