A simple package to check if ip address / range belongs to AWS.
A simple python library to check if an ip, a list of ips or a list of ip ranges exist inside Amazon (AWS) infrastructure.
pip install awsip
After installation, you can make use of
awsip utility to check for ips.
awsip 126.96.36.199 188.8.131.52 184.108.40.206/28
You can provide a white-spaced list of ip addresses / ranges. You can also provide a filename containing ip address / range on each line. For example, you have a file
myips.txt with following format.
192.0.0.1 220.127.116.11/28 18.104.22.168/30
You can pass the ips to utility while providing extra ips on the go like this:
awsip myips.txt 22.214.171.124 126.96.36.199/24
You can also make use of it in your custom code like this:
from awsip import AWSIPChecker checker = AWSIPChecker() checker.get_aws_range(['188.8.131.52', '184.108.40.206/16'])
You can provide a list of ip address, ip ranges or a mixture of both and program will check if they belong to AWS and return appropriate data if they do belong.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size awsip-0.2.1-py3-none-any.whl (5.1 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size awsip-0.2.1.tar.gz (2.7 kB)||File type Source||Python version None||Upload date||Hashes View|