Skip to main content

Detect whether the given input is Public IP/ Private IP/ Public IP range or Private IP range

Project description

ipdetector

This is a Simple project to categorize and validate private and public IP/IP ranges.

Category ID

  • 0 : Private IP
  • 1 : Public IP
  • 2 : Private IP range
  • 3 : Public IP range

Output : [, ]

Installation

Run the following to install:

pip install ipdetector

Usage

>>from ipdetector import ipCategorizer
>>ipCategorizer('192.168.1.0/24')
[2, '192.168.1.0/24']
>>

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipdetector-0.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

ipdetector-0.1-py2-none-any.whl (2.7 kB view details)

Uploaded Python 2

File details

Details for the file ipdetector-0.1.tar.gz.

File metadata

  • Download URL: ipdetector-0.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5rc1

File hashes

Hashes for ipdetector-0.1.tar.gz
Algorithm Hash digest
SHA256 2edb881cca1270092444cbb8f82e6a655a948412e422dcc24bba0c4e9b4d4197
MD5 a1b10b258afca9e9b8d6af3ad80795c9
BLAKE2b-256 4da441c74c4c43702c7bad3f2631e5e3201b60e40d572488f77567aea8fe83b9

See more details on using hashes here.

File details

Details for the file ipdetector-0.1-py2-none-any.whl.

File metadata

  • Download URL: ipdetector-0.1-py2-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5rc1

File hashes

Hashes for ipdetector-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 07a06763770f04ae9ecd2b17ff3f3229e0790d2f96fff1bc0074fd8776e4dc6f
MD5 b3798109a0c68c443d38bb04ce919899
BLAKE2b-256 5dc5cf1643ee338204eef5ba81a1723f60021ac00cc3030bbb5e46eaabb76c86

See more details on using hashes here.

Supported by

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