l.h.i.h.IHWDriverSet(Interface) : interface documentation

Part of lp.hardwaredb.interfaces.hwdb View In Hierarchy

The set of device drivers.
Method create Create a new IHWDriver instance.
Method getByPackageAndName Return an IHWDriver instance for the given parameters.
Method getOrCreate Return an IHWDriver instance or create one.
Method search Return the drivers matching the given parameters.
Method getByID Return an IHWDriver record with the given database ID.
Method all_driver_names Return all known distinct driver names appearing in HWDriver.
Method all_package_names Return all known distinct package names appearing in HWDriver.
def create(package_name, name, license):
Create a new IHWDriver instance.
Parameterspackage_nameThe name of the packages containing the driver.
nameThe name of the driver.
licenseThe license of the driver.
ReturnsThe new IHWDriver instance.
def getByPackageAndName(package_name, name):
Return an IHWDriver instance for the given parameters.
Parameterspackage_nameThe name of the packages containing the driver.
nameThe name of the driver.
ReturnsAn IHWDriver instance or None, if no record exists for the given parameters.
def getOrCreate(package_name, name, license=None):
Return an IHWDriver instance or create one.
Parameterspackage_nameThe name of the packages containing the driver.
nameThe name of the driver.
licenseThe license of the driver.
ReturnsAn IHWDriver instance or None, if no record exists for the given parameters.
def search(package_name=None, name=None):
Return the drivers matching the given parameters.
Parameterspackage_nameThe name of the packages containing the driver. If package_name is not given or None, the result set is not limited to a specific package name. If package_name == '', those records are returned where record.package_name == '' or record.package_name is None. Otherwise only records matching the given name are returned.
nameThe name of the driver. If name is not given or None, the result set is not limited to a specific driver name. Otherwise only records matching the given name are returned.
ReturnsA sequence of IHWDriver instances.
def getByID(id):
Return an IHWDriver record with the given database ID.
ParametersidThe database ID.
ReturnsAn IHWDriver instance.
def all_driver_names():
Return all known distinct driver names appearing in HWDriver.
def all_package_names():
Return all known distinct package names appearing in HWDriver.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.