atkinson.dlrn package

Submodules

atkinson.dlrn.http_data module

Functions for working with the DLRN API

class atkinson.dlrn.http_data.DlrnHttpData(url, release, link_name='current', logger=<Logger atkinson.logging.drivers.default (WARNING)>)[source]

Bases: object

A class used to interact with the dlrn API

commit

Get the dlrn commit information

Returns:A dictionary of name, dist-git hash, commit hash and extended hash. An empty dictionary is returned otherwise.
get_failures()[source]

Get a dictionary of failed packages and links to build information

hashes

alias of DlrnHashes

versions

Get the version data for the versions.csv file and return the data in a dictionary

Returns:A dictionary of packages with commit and dist-git hashes
atkinson.dlrn.http_data.dlrn_http_factory(host, config_file=None, link_name=None, logger=<Logger atkinson.logging.drivers.default (WARNING)>)[source]

Create a DlrnData instance based on a host.

Parameters:
  • host – A host name string to build instances
  • config_file – A dlrn config file(s) to use in addition to the default.
  • link_name – A dlrn symlink to use. This overrides the config files link parameter.
  • logger – An atkinson logger to use. Default is the base logger.
Returns:

A DlrnData instance

Module contents