Skip to main content

Python AWS VPC CIDR available range finder with sub networks

Project description

PyVPC - CIDR free ranger resolver

Current version supports only AWS VPCs.
CIDR available range finder with sub networks

Install

pip install pyvpc

Usage

aws:

pyvpc aws [-h] --cidr-range CIDR_RANGE [--region REGION] [--all-regions]

Examples

Assuming there are two AWS VPCs with CIDRs: 10.20.0.0/16 and 10.30.0.0/16, executing command:

pyvpc aws --cidr-range 10.0.0.0/8

will return:

{'lower_ip': IPv4Address('10.0.0.0'), 'upper_ip': IPv4Address('10.19.255.255'), 'available': True}
{'lower_ip': IPv4Address('10.20.0.0'), 'upper_ip': IPv4Address('10.20.255.255'), 'available': False}
{'lower_ip': IPv4Address('10.21.0.0'), 'upper_ip': IPv4Address('10.29.255.255'), 'available': True}
{'lower_ip': IPv4Address('10.30.0.0'), 'upper_ip': IPv4Address('10.30.255.255'), 'available': False}
{'lower_ip': IPv4Address('10.31.0.0'), 'upper_ip': IPv4Address('10.255.255.255'), 'available': True}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyvpc, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pyvpc-0.0.3-py3-none-any.whl (10.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyvpc-0.0.3.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page