<cjwatson@niejwein ~>$ lp-shell production devel
/usr/lib/python2.7/dist-packages/IPython/frontend.py:30: UserWarning: The top-level `frontend` package has been deprecated. All its subpackages have been moved to the top `IPython` level.
warn("The top-level `frontend` package has been deprecated. "
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
Type "copyright", "credits" or "license" for more information.
IPython 2.4.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Connected to LP service "https://api.launchpad.net/" with API version "devel":
Note: LP can be accessed through the "lp" object.
In [1]: lp.distributions['ubuntu'].main_archive.getPublishedSources(source_name='man-db', exact_match=True, distro_series='/ubuntu/zesty', pocket='Release', status='Published')[0].source_package_version
Out[1]: u'2.7.6.1-1'