Skip to main content

iptools

Tools for working with IP4/IP6 IP Addresses including IPv4, IPv6, CIDR, and Subnet Masks

Build Status

Contents

Source Code and Documentation

About

IPv4 uses a 32-bit address for its Internet addresses. All IPv4 addresses are now assigned. IPv6 utilizes 128-bit Internet addresses so there are 1028 times more addresses. Mappings exist for converting from an IPv4 address to an IPv6 addresses. This allows interoperability.

An IP address consists of octets delimited by dots (".") for IPv4 or colons (":") for IPv6. We can compress IPv6 addresses by removing extra zeros to make the address shorter. Computers store IP addresses as their corresponding integer values. The number represented by this integer is its decimal representation.

Subnetting is the process of dividing a network into smaller network sections. A part of the IP address is masked off to define a network. The remaining part of the address identifies a device on the network. CIDR is an alternative way of representing a subnet mask and IP address range.

Requirements

  • Requires Python 3.x. Due to security fixes and new features Python 3.7 or later is recommended.
  • pip

Third-party dependencies may have additional requirements.

Installation

You can retrieve the iptools package from the Python Package Index https://pypi.org/ using pip. First make sure you have python3 and python3-pip installed. Then you can start by making a requirements.txt file in your working directory with the iptools requirement in it. You can add any other packages to your requirements here, each as a separate line.

requirements.txt:

mindpowered-iptools>0

Now you can use pip to install the iptools package: python3 -m pip install -r requirements.txt If you would like to update the package, simply run the above command again.

Usage

from mindpowered_iptools import *

ipt = IPTools()
decimal = ipt.IPToDecimal("192.168.1.1")

Support

We are here to support using this package. If it doesn't do what you're looking for, isn't working, or you just need help, please Contact us.

There is also a public Issue Tracker available for this package.

Licensing

This package is released under the MIT License.

Release files for mindpowered-iptools 0.0.17

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

Built distribution (wheel)

Table of built distributions (wheels) for mindpowered-iptools 0.0.17
File Interpreter ABI Platform
mindpowered_iptools-0.0.17-py3-none-any.whl Python 3 none any Details

Release files / mindpowered_iptools-0.0.17-py3-none-any.whl

Download URL mindpowered_iptools-0.0.17-py3-none-any.whl
Size 37.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70b5c48b51ef3b228a0eb33426ed250ef33393283a565e91efb392a8080eb426
BLAKE2b-256 checksum
How to use checksums
9b2885fff28112c8a0400da06b0651b605fdb93d94e3246de2ea369506b34c35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.0.17 This release

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

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