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 (168.62.0.0/19)
Usage - Python
import cloudcheck
provider, subnet = cloudcheck.check("168.62.20.37")
print(provider) # "Azure"
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-1.0.0.10.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for cloudcheck-1.0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c545496df0f5bd0841c2fa21b849b653548a49f01192b32944edb04feef516 |
|
MD5 | 42357e25223cb2032f4983a4440f7206 |
|
BLAKE2b-256 | 2caab232b79d2f8153c035e4521e06e845c31e6960e4823b0090ec569c595404 |