-
Notifications
You must be signed in to change notification settings - Fork 17
A few useful functions and objects for manipulating ip addresses in python.
License
bd808/python-iptools
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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'), )
About
A few useful functions and objects for manipulating ip addresses in python.