Checks wildcard domain names
Project description
Wildhost
Checks wildcard domain names.
Install
pip install wildhost
Usage
Import the module
>>> import wildhost
Pass a domain name to the check
function.
>>> wildhost.check(<hostname>)
If none of the levels of the name are wildcards, None
will be returned.
>>> wildhost.check('mail.google.com')
This returns None
as neither google.com
nor mail.google.com
are wildcards.
For a wildcard name, the lowest level wildcard name will be returned.
>>> wildhost.check('foo.bar.spam.grok.sharefile.com')
'sharefile.com'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wildhost-0.0.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for wildhost-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38aa9e53acc0468c20b8292501cfb42cf142ed1e129c693178c0a7003a2837d2 |
|
MD5 | fdc8c7ba33755b7d018e9edb98d98490 |
|
BLAKE2b-256 | 91bf5228ee76f44c7afe57fcd3bbc85237160ada119eeeb62ff3f4c93bdfbfb7 |