pyfarm.agent.sysinfo.software module

Software

Contains utilities to check the availability of certain software on the local machine.

exception pyfarm.agent.sysinfo.software.VersionNotFound[source]

Bases: exceptions.Exception

pyfarm.agent.sysinfo.software.get_software_version_data(*args, **kwargs)[source]

Asynchronously fetches the known data about the given software version from the master.

Parameters:
  • software (str) – The name of the software to get data for
  • version (str) – The name of the version to get data for
Returns:

Returns information about the given software version from the master

pyfarm.agent.sysinfo.software.get_discovery_code(*args, **kwargs)[source]

Asynchronously fetches the discovery code for the given software version from the master.

Parameters:
  • software (str) – The name of the software to get the discovery code for
  • version (str) – The name of the version to get the discovery code for
Returns:

Returns the discovery code from the master/

pyfarm.agent.sysinfo.software.check_software_availability(*args, **kwargs)[source]

Asynchronously checks for the availability of a given software in a given version. Will pass True to its callback function if the software could be found, False otherwise. Works only for software versions that have a discovery registered on the master.

Parameters:
  • software (str) – The name of the software to check for
  • version (str) – The name of the version to check for