Skip to content

A few useful functions and objects for manipulating ip addresses in python.

License

Notifications You must be signed in to change notification settings

bd808/python-iptools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

===== python-iptools =====

Utitlities for dealing with ip addresses.

  A few useful functions and objects for manipulating ip addresses in python. 
  This was all inspired by a desire to be able to use CIDR address notation to 
  designate INTERNAL_IPS in a Django project's settings file.

  The IpRangeList object can be used in a django settings file to allow CIDR 
  notation and/or (start, end) ranges to be used in the INTERNAL_IPS list.

  Example:

    INTERNAL_IPS = IpRangeList(
        '127.0.0.1',
        '192.168/16',
        ('10.0.0.1', '10.0.0.19'),
    )