Check whether an IP address belongs to a cloud provider
Project description
CloudCheck
A simple Python utility to check whether an IP address belongs to a cloud provider.
cloud_providers.json
contains up-to-date lists of CIDRs for each cloud provider (updated weekly via CI/CD).
Installation
pip install cloudcheck
Usage - CLI
$ cloudcheck 168.62.20.37
168.62.20.37 belongs to Azure (cloud) (168.62.0.0/19)
$ cloudcheck 104.16.0.1
104.16.0.1 belongs to Cloudflare (cdn) (104.16.0.0/13)
Usage - Python
import cloudcheck
provider, provider_type, subnet = cloudcheck.check("168.62.20.37")
print(provider) # "Azure"
print(provider_type) # "cloud"
print(subnet) # IPv4Network('168.62.0.0/19')
Supported cloud providers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cloudcheck-2.0.0.23.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for cloudcheck-2.0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d3d1b66abc1ceb788cee9f5c8d9ce667234bf3061b2bead162f29aa08d6891a |
|
MD5 | 21e75894823f5a35f33e52d0bbc029de |
|
BLAKE2b-256 | a2ead07f3f55945664552909537760c74240d6afc1e36e5b631d4e0055ae257f |