Fqdn-parser

Latest version: v2.1.6

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

Scan your dependencies

2.1

===========

Domain Name & FQDN Entropy
--------------------------

- Added module to calculate entropy for domain names and FQDNs using a correct and up to date character probability distribution.

2.0

new property: :code:`ParsedResult.private_suffix` to show the full private suffix substring within the FQDN.

Example:

``api.fake_aws_login.duckdns.org``

:code:`tld` - org

:code:`effective_tld` - org

:code:`registrable_domain` - duckdns.org

:code:`registrable_domain_host` - duckdns

:code:`private_suffix` - duckdns.org

:code:`fqdn` - api.fake_aws_login.duckdns.org

:code:`pqdn` - api.fake_aws_login

A more complex example, using the private suffix ``cdn.prod.atlassian-dev.net``

``assets.some_company.cdn.prod.atlassian-dev.net``

:code:`tld` - net

:code:`effective_tld` - net

:code:`registrable_domain` - atlassian-dev.net

:code:`registrable_domain_host` - atlassian-dev

:code:`private_suffix` - cdn.prod.atlassian-dev.net

:code:`fqdn` - assets.some_company.cdn.prod.atlassian-dev.net

:code:`pqdn` - assets.some_company

So if you want to know if a FQDN has a Private Suffix just check the :code:`ParsedResult.private_suffix` property.

Minor Changes:
--------------

- Significant refactor / restructure of the code directory to organize helper modules better.
- Removed skeleton.py as I don't think a CLI version is useful. This can be revisited later if needed
- Added more unit tests (yay!)

1.0

===========

- First stable release

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.