Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: Add new API for parsing CPEs (pontos.cpe)
Allow to parse and analyze CPE information from their v2.2 and v2.3 string representations. It's also possible to convert a v2.2 CPE representation into a v2.3 and vice versa. It follows the spec at https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf very closely and implements all their escaping. Just the conversion to percent-encoded strings for quoting non-alphanumeric characters is using `urllib.parser.quote` and `unquote` which support additional quoting besides specified in the CPE document.
- Loading branch information