Skip to main content

ipman is a high-level core python package for Internet Protocol(IP) manipulations.

Project description

IPToolz

IPToolz is a high-level core python package for Internet Protocol(IP) manipulations and network planning tool.

Installation

 pip install IPToolz

Helper Functions

>> import IPToolz
>> dir(IPToolz)

['CBit', 'HexConversionError', 'IPSegmentError', 'IPToolz', 'IPType', 'IPValueError', 'InvalidIPError', 'InvalidIPRangeError', 'Toolz', 'UnrecognisedIPError', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'binary', 'decimal', 'getIP', 'getlocal', 'hexadecimal', 'isIPV4', 'isIPV6', 'octet']

Usage

from IPToolz import X
#e.g. 
from IPToolz import isIPV4
#or 
from IPtoolz import *

getlocal

This return device localhost ip address.

>> from IPToolz import getIP
>> getlocal()
127.0.0.1

getIP

This returns the ip address of a given url.

>> from IPToolz import getIP
>> getIP('www.google.com')
x.x.x.x

IPType

This returns the ip address of a given url.

>> from IPToolz import IPType
>> IPType('x.x.x.x')
IPV-4

isIPV4

This returns the ip address of a given url.

>> from IPToolz import isIPV4
>> isIPV4('x.x.x.x')
('x.x.x.x', True)

isIPV6

This returns the ip address of a given url.

>> from IPToolz import isIPV6
>> isIPV6('x:x:x::x')
('x.x.x.x.x.x.x.x', True)

Others

>> #Conversion from decimal to binary
>> binary(10)
1010
>>
>> #Conversion from decimal to hexadecimal
>> hexadecimal(170)
1010A
>>
>> #Conversion from decimal to octet
>> octet(10)
12

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

ipman-1.1.1.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

ipman-1.1.1.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file ipman-1.1.1.1.0.tar.gz.

File metadata

  • Download URL: ipman-1.1.1.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ipman-1.1.1.1.0.tar.gz
Algorithm Hash digest
SHA256 a1e6760d2cda88180f4fe6ad9a9d2eeaa453e89c14952becdaf3aaf3a5937afb
MD5 9e87b0682cd945fce16c336094b69b87
BLAKE2b-256 cfd6e7c5be2615a09a982812e1b43f3b4f0ff41bdbb14bee866c4725a51a6486

See more details on using hashes here.

File details

Details for the file ipman-1.1.1.1.0-py3-none-any.whl.

File metadata

  • Download URL: ipman-1.1.1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for ipman-1.1.1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e9e98fddcc93c51e3fc3381918870ac97340044fa22adde90af737ddeed1b6f
MD5 99934daf13218587e233682a59c533d8
BLAKE2b-256 ecf78e244e7b43cfec6b40d5a7eb538137390a1c7bfeb9233026fc5b9414e214

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