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.18.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for cloudcheck-1.0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eb96f6994c7670239eff1e2422cd03c0e49737ddeb4c98af0f2e934b5c4616d |
|
MD5 | 2df0226cb936979ad264a6895eecd7ad |
|
BLAKE2b-256 | 3d909968271612d4bcf6b32d8f0a756380ac89f9113f4e15e2034d5da06dae86 |