A simple package to check if ip address / range belongs to AWS.
Project description
awsip
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 1.1.1.1 2.2.2.2 5.4.3.0/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
7.7.7.0/28
9.9.9.0/30
You can pass the ips to utility while providing extra ips on the go like this:
awsip myips.txt 1.1.1.1 2.2.2.0/24
You can also make use of it in your custom code like this:
from awsip import AWSIPChecker
checker = AWSIPChecker()
checker.get_aws_range(['18.208.0.0', '18.208.0.0/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.
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
Built Distribution
File details
Details for the file awsip-0.2.1.tar.gz
.
File metadata
- Download URL: awsip-0.2.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4926221df100bfbaa5c86221638f54fa544c9e529319907af2dac2a24c5fbb22 |
|
MD5 | 1b9ae67de08bb4b1a6c5be17eb2e5130 |
|
BLAKE2b-256 | a15fb608dda637a1a2611edd1a475de767696e7073e1a0851b01b011c19f36c6 |
File details
Details for the file awsip-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: awsip-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e229666b36df87d9f87576d6619d66ed7f9d01e5847a18ae1a72b8aae8b0a9f8 |
|
MD5 | 37f8286264cff64c1089206e594bf960 |
|
BLAKE2b-256 | 84d3bea5b5b3acc83cee52029698f104b8be0edc4aef763318f447970b79a349 |