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.

Source Distribution

pyvpc-0.0.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

pyvpc-0.0.3-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file pyvpc-0.0.3.tar.gz.

File metadata

  • Download URL: pyvpc-0.0.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pyvpc-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0df0eebdeec4ef7b77dff8411e1b6242d5ae6481c866a7338f1aa704519054d2
MD5 7ccac16753936fba68406348ae43c289
BLAKE2b-256 44283b6f11d180409d410a568170f741b183fb6c3dcee760ae8f634442d0c3ed

See more details on using hashes here.

Provenance

File details

Details for the file pyvpc-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyvpc-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.0 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/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for pyvpc-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26a550e6f016cd264a218924b3daf0b97bd39072c566a98b694a2e18731d02a5
MD5 9f17707d0506b7a90e2810ae09991e5b
BLAKE2b-256 6770bad526f83390f0ad758229ba5155b25a8bc040eec453c9a2406b235951b0

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page