summaryrefslogtreecommitdiff
path: root/ipaddr.py
Commit message (Collapse)AuthorAgeFilesLines
* Set version to 'git' in git repo.HEADmasterMikel Ward2017-09-151-1/+1
| | | | | When publishing to PyPI, we'll have to set it at the time of tagging, as before.
* Bump version to 2.2.0.Mikel Ward2017-09-151-1/+1
|
* Fix compatibility with Python 3vkh782016-01-051-1/+6
|
* Merge branch 'patch-1' of https://github.com/alexf101/ipaddr-py into ↵Michael Shields2015-08-171-4/+7
| | | | alexf101-patch-1
* Move trunk/ to root.Michael Shields2015-08-171-186/+209
|
* fixPeter Moody2011-11-291-8/+8
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@237 09200d28-7f98-11dd-ad27-0f66e57d2035
* fix for i84Peter Moody2011-11-241-0/+4
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@236 09200d28-7f98-11dd-ad27-0f66e57d2035
* patch from pmarksPeter Moody2011-11-241-57/+43
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@235 09200d28-7f98-11dd-ad27-0f66e57d2035
* patch from pmarks for i87Peter Moody2011-08-221-189/+133
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@225 09200d28-7f98-11dd-ad27-0f66e57d2035
* 2001:0::3:4:5:6:7:8 should be considered validPeter Moody2011-07-221-0/+4
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@224 09200d28-7f98-11dd-ad27-0f66e57d2035
* issue 83, doc issuePeter Moody2011-05-171-6/+6
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@223 09200d28-7f98-11dd-ad27-0f66e57d2035
* + bug in _is_shorthand_ip not correctly identifying shortened ips.Peter Moody2011-02-171-5/+11
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@218 09200d28-7f98-11dd-ad27-0f66e57d2035
* + typo.Peter Moody2011-02-131-1/+1
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@217 09200d28-7f98-11dd-ad27-0f66e57d2035
* Fix issue 79.Michael Shields2011-02-081-1/+2
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@208 09200d28-7f98-11dd-ad27-0f66e57d2035
* Fix issue 78.Michael Shields2011-02-081-6/+4
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@207 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix broken network/address comparisons.Peter Moody2011-02-081-3/+6
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@206 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for i74, python3x and byte addresses.Peter Moody2011-01-211-14/+14
| | | | | | + docstring fix to remove references to long-deceased IP() function git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@205 09200d28-7f98-11dd-ad27-0f66e57d2035
* + turn teredo and sixtofour into properties.Peter Moody2011-01-131-4/+6
| | | | | | + 2.1.7 release. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@203 09200d28-7f98-11dd-ad27-0f66e57d2035
* + add 6to4 to the ipv6 tunnel decoding.Peter Moody2011-01-121-3/+18
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@201 09200d28-7f98-11dd-ad27-0f66e57d2035
* + small speedup, remove the redundant call to explode_short_ip_stringPeter Moody2011-01-121-4/+3
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@200 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for i71Peter Moody2011-01-121-1/+15
| | | | | | | add support for pulling the teredo client and server addresses out of an ipv6 address. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@199 09200d28-7f98-11dd-ad27-0f66e57d2035
* fix for i73Peter Moody2011-01-071-3/+32
| | | | | | | | | | | | | | | | | | | | | | | + Make conversion from int to packed a public function. this allows a user to easily construct network objects from integers. Eg: >>> addr # int(ipaddr.IPAddress('1.1.1.1')) 16843009 >>> ipaddr.IPNetwork('%s/24' % socket.inet_ntoa( ipaddr.v4_int_to_packed(addr))) IPv4Network('1.1.1.1/24') Or >>> addr # int(ipaddr.IPAddress('2001::1') 42540488161975842760550356425300246529L >>> ipaddr.IPNetwork('%s/96' % socket.inet_ntop( socket.AF_INET6, ipaddr.v6_int_to_packed(addr))) IPv6Network('2001::1/96') git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@198 09200d28-7f98-11dd-ad27-0f66e57d2035
* + force hashing of longs to ensure consistency.Peter Moody2010-11-161-1/+1
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@196 09200d28-7f98-11dd-ad27-0f66e57d2035
* IPv6 with embedded IPv4 address not recognizedDaniel Harrison2010-10-061-2/+3
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@194 09200d28-7f98-11dd-ad27-0f66e57d2035
* Commentary typo fixDaniel Harrison2010-10-041-1/+1
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@192 09200d28-7f98-11dd-ad27-0f66e57d2035
* + containment test should always return false on mixed-type tests.Peter Moody2010-08-231-0/+3
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@186 09200d28-7f98-11dd-ad27-0f66e57d2035
* Remove trailing whitespace.Michael Shields2010-08-161-2/+2
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@181 09200d28-7f98-11dd-ad27-0f66e57d2035
* Fix for issue 66, contributed by Lorenzo Colitti of Google.Michael Shields2010-08-161-0/+3
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@177 09200d28-7f98-11dd-ad27-0f66e57d2035
* Remove 'magic numbers' from code that involve address length.Daniel Harrison2010-07-121-12/+15
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@176 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for issue61.Peter Moody2010-06-091-2/+2
| | | | | | | problem with like-ip'd network objects that had the same broadcast address. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@171 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix ipv6 subnet representation. (thanks to email from jaredPeter Moody2010-05-301-0/+4
| | | | | | to ipaddr-py-dev) git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@167 09200d28-7f98-11dd-ad27-0f66e57d2035
* + add masked() to _BaseNet to automatically mask outPeter Moody2010-05-101-0/+5
| | | | | | | the host bits of a network object. issue58. Reported by Robert Thomson. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@166 09200d28-7f98-11dd-ad27-0f66e57d2035
* + doc-fix.Peter Moody2010-05-101-1/+1
| | | | | | issue60, reported by colmmac. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@165 09200d28-7f98-11dd-ad27-0f66e57d2035
* + ensure network and address objects aren't equal.Peter Moody2010-04-291-4/+5
| | | | | | | (eg, IPNetwork('1.1.1.1/24') != IPAddress('1.1.1.1')) + whitespace cleanup. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@164 09200d28-7f98-11dd-ad27-0f66e57d2035
* + one more address_exclude cleanup, to make sure network/address exclusionsPeter Moody2010-04-291-3/+6
| | | | | | fail as expected. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@163 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix issue where address exclude would puke if you tried to excludePeter Moody2010-04-291-0/+3
| | | | | | and address from itself. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@162 09200d28-7f98-11dd-ad27-0f66e57d2035
* + issue 57, allow for integer addition with IPv4 and IPv6 Address objects.Peter Moody2010-04-041-0/+12
| | | | | | | this isn't ever meant to support adding two address object together nor addition to network objects. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@158 09200d28-7f98-11dd-ad27-0f66e57d2035
* + kill the few more remaining instances of the old exception names,Peter Moody2010-02-221-2/+2
| | | | | | both in the code and the docstrings. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@147 09200d28-7f98-11dd-ad27-0f66e57d2035
* + bug with list comprehension in _is_valid_netmaskPeter Moody2010-02-211-1/+1
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@146 09200d28-7f98-11dd-ad27-0f66e57d2035
* + make networks and addresses not sortable by default.Peter Moody2010-02-121-8/+46
| | | | | | | + provide a key function suitable for passing to sorted enabling the sorting. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@140 09200d28-7f98-11dd-ad27-0f66e57d2035
* + cleanup of the excetion text; making the invalid version TypeError'sPeter Moody2010-02-061-18/+13
| | | | | | consistent with each other. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@139 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fixing inconsisten behaviour WRT rich comparisons between ipv4 and ipv6Peter Moody2010-02-061-24/+22
| | | | | | objects. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@138 09200d28-7f98-11dd-ad27-0f66e57d2035
* + add IPv4Network().is_unspecified. issue52.Peter Moody2010-02-051-0/+11
| | | | | | (thanks to rep.dot.net for the bug report and patch). git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@137 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for issue48; some problems with decoding mapped addresses.Peter Moody2010-02-041-1/+1
| | | | | | (thanks to rlaager for reporting) git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@134 09200d28-7f98-11dd-ad27-0f66e57d2035
* + s/adddress/address/g typo.Peter Moody2010-02-021-2/+2
| | | | | | (thanks rep.dot.not) git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@133 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix docstring (issue55).Peter Moody2010-02-021-1/+1
| | | | | | (thanks Scott Kitterman). git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@132 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for issue51; an errant reference to a non-existant variable.Peter Moody2010-02-021-1/+1
| | | | | | (thanks to Harry Bock) git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@131 09200d28-7f98-11dd-ad27-0f66e57d2035
* + finally getting around to documentation suggestions from issue38Peter Moody2009-12-171-8/+14
| | | | | | (from Steven D'Aprano) git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@129 09200d28-7f98-11dd-ad27-0f66e57d2035
* + change RunTimeError to a simple assertion based on suggestionPeter Moody2009-12-101-9/+6
| | | | | | from mat smart. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@128 09200d28-7f98-11dd-ad27-0f66e57d2035
* + comments from matt smart:Peter Moody2009-11-291-14/+15
| | | | | | | | change the address exclusion error to RunTimeError exception docstrings typo in docstring. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@127 09200d28-7f98-11dd-ad27-0f66e57d2035