Skip to main content

This is a library used to manipulate and verify ipv4 address's. ucast and mcast

Project description

Toolkit unit tests status

Python Script: ipaddresstools

Documentaion

Written By: Benjamin P. Trachtenberg

Contact Information: e_ben_75-python@yahoo.com

If you have any questions e-mail me

LinkedIn: Ben Trachtenberg

Docker Hub: Docker Hub

PyPi Page for ipaddresstools

Requirements

  • Nothing Specific, I would suggest Python 3.6 and above.

Installation

  • From source "setup.py install"
  • From pip "pip install ipaddresstools"

Languages

  • Python

About

This is a library used to verify, and correct ipv4 address's, and subnets. I wrote it before a good library was out there for network engineers.

Functions included in v1.0.0

  • ucast_ip_mask(ip_addr_and_mask, return_tuple=True)
  • ucast_ip(ip_addr, return_tuple=True)
  • mcast_ip_mask(ip_addr_and_mask, return_tuple=True)
  • mcast_ip(ip_addr, return_tuple=True)
  • cidr_check(cidr, return_cidr=True)
  • get_neighbor_ip(ip_addr, cidr="30")
  • whole_subnet_maker (ip_addr, cidr)

Functions Added in v1.1.0

  • number_check(check, return_number=True)

Functions Added in v1.1.1

  • subnet_range(ip_net, cidr)
  • all_subnets_possible(ip_net, cidr)

Functions Added in v1.1.2

  • all_subnets_longer_prefix(ip_net, cidr)
  • all_subnets_shorter_prefix(ip_net, cidr, include_default=False)
  • all_subnets_possible(ip_net, cidr) = AllSubnetsPossibleLongerPrefix(strIpNet,strCidr)

Functions Added in v1.2.1

  • ip_mask(ip_addr_and_mask, return_tuple=True):
  • ip(ip_addr, return_tuple=True):

Functions Added to v1.2.3

  • mask_conversion = __mask_conversion

Functions Added to v1.2.4

  • all_ip_address_in_subnet(ip_net, cidr)

Functions Added to v1.2.5

  • random_cidr_mask(lowest_mask=16)
  • random_ucast_ip()
  • random_mcast_ip()
  • random_ucast_ip_mask(lowest_mask=16)
  • random_mcast_ip_mask(lowest_mask=16)

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

ipaddresstools-1.2.12.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

ipaddresstools-1.2.12-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ipaddresstools-1.2.12.tar.gz.

File metadata

  • Download URL: ipaddresstools-1.2.12.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13

File hashes

Hashes for ipaddresstools-1.2.12.tar.gz
Algorithm Hash digest
SHA256 f716e49cdee0577fc9caa51e75b559b8366843a478af03287ab00e54810ebf7d
MD5 f4bcf0698cc5dff1ec36ace1f3944294
BLAKE2b-256 65863eb9773067af9402b89fc39858f23dc090f853e60f580bf53d08e61fbbde

See more details on using hashes here.

File details

Details for the file ipaddresstools-1.2.12-py2.py3-none-any.whl.

File metadata

  • Download URL: ipaddresstools-1.2.12-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13

File hashes

Hashes for ipaddresstools-1.2.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0993315f3c927e1a0c779a5aaaf40b52b99978666b77589c64c84f5677aa8797
MD5 8bdb6a4bb7e24da2b10a7d0c4e3dcf23
BLAKE2b-256 064aa6db8f00403971e1ee3ae646f4a6fe9a1d13300dcba055fc308c46619bbe

See more details on using hashes here.

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