charmhelpers.contrib.python package¶
charmhelpers.contrib.python.debug module¶
-
charmhelpers.contrib.python.debug.set_trace(addr='0.0.0.0', port=4444)¶ Set a trace point using the remote debugger
charmhelpers.contrib.python.packages module¶
-
charmhelpers.contrib.python.packages.parse_options(given, available)¶ Given a set of options, check if available
-
charmhelpers.contrib.python.packages.pip_create_virtualenv(path=None)¶ Create an isolated Python environment.
-
charmhelpers.contrib.python.packages.pip_install(package, fatal=False, upgrade=False, venv=None, **options)¶ Install a python package
-
charmhelpers.contrib.python.packages.pip_install_requirements(requirements, **options)¶ Install a requirements file
-
charmhelpers.contrib.python.packages.pip_list()¶ Returns the list of current python installed packages
-
charmhelpers.contrib.python.packages.pip_uninstall(package, **options)¶ Uninstall a python package
charmhelpers.contrib.python.rpdb module¶
Remote Python Debugger (pdb wrapper).
-
class
charmhelpers.contrib.python.rpdb.Rpdb(addr='127.0.0.1', port=4444)¶ Bases:
pdb.Pdb-
do_EOF(arg)¶ Stop all operation on
continue.
-
do_c(arg)¶ Stop all operation on
continue.
-
do_cont(arg)¶ Stop all operation on
continue.
-
do_continue(arg)¶ Stop all operation on
continue.
-
do_exit(arg)¶ Stop all operation on
continue.
-
do_quit(arg)¶ Stop all operation on
continue.
-
shutdown()¶ Revert stdin and stdout, close the socket.
-