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.12.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for cloudcheck-1.0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bfa8e2ff43c22fa8e3f6e30593f76da9c8e2d20376bafb539ddaa93183fb4b9 |
|
MD5 | 2bddf7a3d97183226fd5cc65af52f52c |
|
BLAKE2b-256 | adfce8f1c59c697f79cabd0cb8c20b45bf6064a8266a6c0a266b5ebe8954cdb0 |