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.
>>> wildcard.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 neithergoogle.com
normail.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.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for wildhost-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad5ac571ab161ec2317a732d1301d70eec6ec2d1c2f377aa7064938d0ca33c78 |
|
MD5 | 5f14cac6f975d829186ee2a1f1e45ec5 |
|
BLAKE2b-256 | c3091d904a59b21e896d8c8de610fa80125bbb6f01af9a4fb0f5d49f7f325a98 |