Skip to main content

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>)
  1. 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.

  2. 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)

Uploaded Source

Built Distribution

wildhost-0.0.1-py2.py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page