Skip to main content

A Python module that performs common IPv4 addressing calculations for network engineers.

Project description

IPmaths

About

IPmaths is a Python module that performs common IPv4 addressing calculations for network engineers. Please note that this module is still under active development and some features may not be available or removed altogether.

Roadmap

As of the v0.1.0 release of this module, the following features are available:

  • Calculate the best possible subnet mask for all the required hosts
  • Calculate all the usable host IPv4 addresses with the given subnet mask
  • Check if the provided IPv4 address is valid
  • Check if the provided subnet mask (in CIDR) is valid
  • Check if the provided subnet mask (in decimal) is valid
  • Determine if the provided subnet mask is in CIDR or decimal form
  • Convert the provided subnet mask from CIDR to decimal form
  • Convert the provided subnet mask from decimal to CIDR form
  • An education mode that explains how to perform these calculations manually

A v1.0.0 release is expected once all the following criteria has been met.

How it works

This section will be completed once IPmaths reaches the v1.0.0 release.

Install

IPmaths is listed on the Python Package Index and can be download via Python's package manager, pip.

pip install ipmaths

Then, the module can be imported into the desired Python script.

import ipmaths

Alternatively, the module can be packaged and installed manually. Please consult Python's documentation for such instructions.

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

ipmaths-0.1.2.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipmaths-0.1.2-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file ipmaths-0.1.2.tar.gz.

File metadata

  • Download URL: ipmaths-0.1.2.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for ipmaths-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5af7c15f33250a5f2c3e7ecff3e433047973d54cbbe8196561ed755662315b4f
MD5 7c19f22b5d302e47048be5a1e8bd4039
BLAKE2b-256 91435c43b2c9910e21ed32ed8219db2067f9518c1c20ae3db5a3b37fe2de52f5

See more details on using hashes here.

File details

Details for the file ipmaths-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ipmaths-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for ipmaths-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c86f2bd891c4c963895caf8068c45807600b97a3f0f36c86d01b49bd21dffd4
MD5 5cbdc470099fed0e6a46c101706cb99a
BLAKE2b-256 b83d97321ccb7c0325eb7992908147cf9f074e0ee59c557365ac57b2cc15ab23

See more details on using hashes here.

Supported by

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