This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!
Project Description
##################################
__Program__: IPChecker
__version__: 1.2.0
__Author__ : Boumediene Kaddour
__Country__: Algeria
##################################

IPChecker is a tiny Python library that is used to check if an IP version address is Private, Public or Invalid,
The library returns Booleans and contains a couple of methods summurized as follows:

isValid(): This method returns True, if a valid IPv4's given, otherwise, it returns False.
isPrivate(): This little method returns True if the given IP is private, otherwise, False is returned.
isMCast(): This little method returns True, if a Valid IPv4 is given and it's among the multicast ip range, otherwise, it returns a False.
isPublic(): This little method returns True if the given IP is a Valid IPv4, not private and not multicast address, otherwise, False is returned.

Usage:
>>> from IPChecker import IPChecker
>>> obj = IPChecker("172.16.122.254")
>>> obj.isValid()
>>> True
>>> obj.isPrivate()
>>> True
>>> obj.isMCast()
>>> False
>>> obj.isPublic()
>>> False

Here is a sample grabbed from the IPchecker source code given as an example of how you can checkout for a valid IPv4 address using regular expressions.

in this example, the built-in python re module is used.

>>> def isValid(self):
>>> ____if findall( "(?i)^(\d|\d\d|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).(\d|\d\d|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).(\d|\d\d|1[0-9][0-9]|2[0-4][0-9]|25[0-5]).(\d|\d\d|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$" ,self.IP):
>>> ________ return True
>>> ____else:
>>> ________ return False
Release History

Release History

1.2.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
IPChecker-1.2.0.tar.gz (1.6 kB) Copy SHA256 Checksum SHA256 Source Sep 25, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting