find_by_name#

classmethod PackageDef.find_by_name(db, name)#

Find a package definition object by name in a given database.

Parameters:
db :class:`.Database`

Database to search for the package definition.

namestr

Name of the package definition.

Returns:
PackageDef

Package definition found, None otherwise.