b.p.l.lp_api_lite : module documentation

Part of bzrlib.plugins.launchpad

Tools for dealing with the Launchpad API without using launchpadlib.

The api itself is a RESTful interface, so we can make HTTP queries directly. loading launchpadlib itself has a fairly high overhead (just calling Launchpad.login_anonymously() takes a 500ms once the WADL is cached, and 5+s to get the WADL.

Class LatestPublication Encapsulate how to find the latest publication for a given project.
Function get_latest_publication Get the most recent publication for a given project.
Function get_most_recent_tag Get the most recent revision that has been tagged.
Function report_freshness Report to the user how up-to-date the packaging branch is.
Function _get_newest_versions Get information about how 'fresh' this packaging branch is.
Function _report_freshness Report if the branch is up-to-date.
def get_latest_publication(archive, series, project):
Get the most recent publication for a given project.
ParametersarchiveEither 'ubuntu' or 'debian'
seriesSomething like 'natty', 'sid', etc. Can be set as None. Can also include a pocket such as 'natty-proposed'.
projectSomething like 'bzr'
ReturnsA version string indicating the most-recent version published in Launchpad. Might return None if there is an error.
def get_most_recent_tag(tag_dict, the_branch):
Get the most recent revision that has been tagged.
def _get_newest_versions(the_branch, latest_pub):
Get information about how 'fresh' this packaging branch is.
Parametersthe_branchThe Branch to check
latest_pubThe LatestPublication used to check most recent published version.
Returns(latest_ver, branch_latest_ver)
def _report_freshness(latest_ver, branch_latest_ver, place, verbosity, report_func):
Report if the branch is up-to-date.
def report_freshness(the_branch, verbosity, latest_pub):
Report to the user how up-to-date the packaging branch is.

:param the_branch: A Branch object
:param verbosity: Can be one of:
    off: Do not print anything, and skip all checks.
    all: Print all information that we have in a verbose manner, this
         includes misses, etc.
    short: Print information, but only one-line summaries
    minimal: Only print a one-line summary when the package branch is
             out-of-date
:param latest_pub: A LatestPublication instance
API Documentation for Bazaar, generated by pydoctor at 2019-08-20 00:32:01.