Metadata-parser

Latest version: v0.12.3

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 14

0.9.4

* created `MetadataParser.get_url_canonical`
* created `MetadataParser.get_url_opengraph`
* `MetadataParser.get_discrete_url` now calls `get_url_canonical` and `get_url_opengraph`

0.9.3

* fixed packaging error. removed debug "print" statements

0.9.2

* upgrade nested local canonical rels correctly

0.9.1

* added a new `_internal` storage namespace to the `MetadataParser.metadata` payload.
this simply stashes the `MetadataParser.url` and `MetadataParser.url_actual` attributes to makes objects easier to encode for debugging
* the twitter parsing was incorrectly looking for 'value' not 'content' as in the current spec
* tracking the shortlink on a page

0.9.0

- This has a default behavior change regarding `get_discrete_url()` .
- `is_parsed_valid_url()` did not correctly handle `require_public_netloc=True`, and would allow for `localhost` values to pass
- new kwarg `allow_localhosts` added to
* is_parsed_valid_url
* is_url_valid
* url_to_absolute_url
* MetadataParser.__init__
* MetadataParser.absolute_url
* MetadataParser.get_discrete_url
* MetadataParser.get_metadata_link
- new method `get_fallback_url`
- `url_to_absolute_url` will return `None` if not supplied with a fallback and test url. Previously an error in parsing would occur
- `url_to_absolute_url` tries to do a better job at determining the intended url when given a malformed url.

0.8.3

- packaging fixes

Page 6 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.