Skip to main content

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.

Metadata

Release files for ipmaths 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipmaths 0.1.2
File Size Uploaded
ipmaths-0.1.2.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipmaths 0.1.2
File Interpreter ABI Platform
ipmaths-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 36.5 kB

Release files / ipmaths-0.1.2.tar.gz

Download URL ipmaths-0.1.2.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5af7c15f33250a5f2c3e7ecff3e433047973d54cbbe8196561ed755662315b4f
BLAKE2b-256 checksum
How to use checksums
91435c43b2c9910e21ed32ed8219db2067f9518c1c20ae3db5a3b37fe2de52f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / ipmaths-0.1.2-py3-none-any.whl

Download URL ipmaths-0.1.2-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c86f2bd891c4c963895caf8068c45807600b97a3f0f36c86d01b49bd21dffd4
BLAKE2b-256 checksum
How to use checksums
b83d97321ccb7c0325eb7992908147cf9f074e0ee59c557365ac57b2cc15ab23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page