Return an instance of Package built from a ``mapping`` of native Python data, typically a PackageData-like ``mapping``. Return None if there are not enough data to form a PackageURL from this data. See PackageData.from_dict() for other details.
(cls, mapping)
| 1679 | |
| 1680 | @classmethod |
| 1681 | def from_dict(cls, mapping): |
| 1682 | """ |
| 1683 | Return an instance of Package built from a ``mapping`` of native Python |
| 1684 | data, typically a PackageData-like ``mapping``. Return None if there are |
| 1685 | not enough data to form a PackageURL from this data. |
| 1686 | |
| 1687 | See PackageData.from_dict() for other details. |
| 1688 | """ |
| 1689 | if build_purl(mapping): |
| 1690 | return super().from_dict(mapping) |
| 1691 | |
| 1692 | def is_compatible(self, package_data, include_qualifiers=True): |
| 1693 | """ |
no test coverage detected