summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Rename README.md to README so it can be shared between setup.py and github.release-2.2.0Mikel Ward2017-09-152-1/+1
|
* Bump version to 2.2.0.Mikel Ward2017-09-151-1/+1
|
* Update README.md and long description to say ipaddr is replaced by ipaddress.Mikel Ward2017-09-152-10/+7
| | | | | | | | | | long_description is now read straight from README.md. Note this implies both need to be plain text, since long_description is reStructuredText but README.md is Markdown. Despite this caveat, this seems to be the current convention. Also update the URL to say github is upstream rather than code.google.com.
* Merge pull request #118 from ghost/mastermbward2017-02-092-15/+24
|\ | | | | | | | | Fix compatibility with Python 3 Fixes #120
| * Fix compatibility with Python 3vkh782016-01-052-15/+24
| |
* | Merge pull request #119 from nickjacobson/patch-1sixMichael Shields2016-06-171-0/+2
|\ \ | |/ |/| Adding trove classifiers for Python 2.
| * Adding trove classifiers for Python 2.nickjacobson2016-06-171-0/+2
|/ | | Adding trove classifiers for Python 2.
* Remove test-2to3.sh.Michael Shields2015-09-021-29/+0
|
* Test pickling.Michael Shields2015-09-021-2/+9
| | | | Closes #106.
* Remove OWNERS, a file which is only useful inside Google.Michael Shields2015-08-281-4/+0
|
* Merge branch 'alexf101-patch-1'Michael Shields2015-08-171-4/+7
|\
| * Merge branch 'patch-1' of https://github.com/alexf101/ipaddr-py into ↵Michael Shields2015-08-171-4/+7
| |\ |/ / | | | | alexf101-patch-1
| * Performance fix for collapse_addr_list.Alex Finkel2015-07-311-4/+7
| | | | | | Calling "ips.index(last)" inside a loop over all ips does O(n) linear searches, leading to quadratic performance. The index call isn't necessary; the position of 'last' in ips can be inferred if _find_address_range returns the position that it found 'last' at.
* | Fix typo.Michael Shields2015-08-171-1/+1
| |
* | Enable Travis.Michael Shields2015-08-171-0/+5
| |
* | Remove obsolete documentation on 1.x and 3.x ("3144").Michael Shields2015-08-172-385/+0
| | | | | | | | | | Documentation on the new module is now at: https://docs.python.org/3/library/ipaddress.html
* | Move trunk/ to root.Michael Shields2015-08-1711-3621/+351
| |
* | Convert README to Markdown, and update links.Michael Shields2015-08-171-3/+3
| |
* | Remove Subversion tags and branches.Michael Shields2015-08-17202-71955/+0
| |
* | Merge branch 'master' of github.com:google/ipaddr-pyMichael Shields2015-08-17217-0/+76235
|\ \ | |/
| * ipaddr: add the ability to create non-trivial IPv*Network objects via tuples.Peter Moody2014-07-262-82/+195
| | | | | | | | patch by pmarks.
| * from Paul Marks:Peter Moody2013-09-212-124/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code checks each octet separately, and then checks if the sequence of octets is nonincreasing. This is insufficient, because it allows nonsensical inputs like "255.128.128.0". The previous code also only partially handles hostmasks (inverted netmasks). "0.255.255.255" becomes /8, but 0.15.255.255 is rejected. The solution is to disregard octets, and interpret the address as a single sequence of bits. Note that this could be trivially extended to support IPv6 netmasks and hostmasks, but those are non-standard. I've also made the CIDR parser more strict, so it rejects anything that's not not a decimal digit, like /+24 Added: - _prefix_from_prefix_string: Parse a number, with bounds checking. - _prefix_from_ip_string: Parse IPv4 netmask/hostmask string. Improved: - _prefix_from_ip_int: Only accept inputs with the bit sequence /1*0*/. Removed: - _ip_string_from_prefix - _is_hostmask - _is_valid_netmask
| * ipaddr incorrectly parses some V6 addresses.Peter Moody2012-06-292-0/+3
| | | | | | | | issue97.
| * Docstring typo reported by Jason KeenePeter Moody2012-06-271-1/+1
| |
| * fix for issue:95, refer to nets in the exceptionPeter Moody2012-06-111-1/+1
| |
| * add license boilerplate to test-2to3.shPeter Moody2012-04-301-1/+15
| |
| * rename to ipaddress to avoid confusion with backwards-incompatible ipaddrPeter Moody2012-02-122-410/+410
| |
| * testing git push processPeter Moody2012-02-061-1/+1
| |
| * tag/release 2.1.10pmoody@google.com2012-01-2113-318/+3883
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@244 09200d28-7f98-11dd-ad27-0f66e57d2035
| * remove un-needed filepmoody@google.com2011-12-041-286/+0
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@243 09200d28-7f98-11dd-ad27-0f66e57d2035
| * Created wiki page through web user interface.pmoody@google.com2011-12-041-0/+261
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@242 09200d28-7f98-11dd-ad27-0f66e57d2035
| * start a new wiki page on using ipaddrpmoody@google.com2011-12-041-0/+286
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@241 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fix exploding network bugpmoody@google.com2011-12-042-3/+9
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@240 09200d28-7f98-11dd-ad27-0f66e57d2035
| * typopmoody@google.com2011-12-041-1/+1
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@239 09200d28-7f98-11dd-ad27-0f66e57d2035
| * patch r235 - r237 into the pep3144 branchpmoody@google.com2011-11-292-11/+20
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@238 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fixpmoody@google.com2011-11-292-11/+11
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@237 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fix for i84pmoody@google.com2011-11-242-0/+9
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@236 09200d28-7f98-11dd-ad27-0f66e57d2035
| * patch from pmarkspmoody@google.com2011-11-242-80/+67
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@235 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fix copyright. whoops. i90pmoody@google.com2011-09-221-1/+1
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@234 09200d28-7f98-11dd-ad27-0f66e57d2035
| * cleaning up docstringspmoody@google.com2011-09-221-19/+18
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@233 09200d28-7f98-11dd-ad27-0f66e57d2035
| * remove strict from the ipinterface classes and have the network code check ↵pmoody@google.com2011-09-092-19/+20
| | | | | | | | | | | | that host bits are not set prior to deleting the ip attribute git-svn-id: https://ipaddr-py.googlecode.com/svn@232 09200d28-7f98-11dd-ad27-0f66e57d2035
| * rename _BaseNetwork to _BaseInterface & add a network property to ↵pmoody@google.com2011-09-091-15/+22
| | | | | | | | | | | | _BaseInterface which return the network to which an interface belongs git-svn-id: https://ipaddr-py.googlecode.com/svn@231 09200d28-7f98-11dd-ad27-0f66e57d2035
| * finish rename from network -> network_address. do the same for the broadcast ↵pmoody@google.com2011-09-082-31/+31
| | | | | | | | | | | | address git-svn-id: https://ipaddr-py.googlecode.com/svn@230 09200d28-7f98-11dd-ad27-0f66e57d2035
| * fix version string in the branchpmoody@google.com2011-09-081-1/+1
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@229 09200d28-7f98-11dd-ad27-0f66e57d2035
| * remove the ip attribute from the network objects. make collpase_address_list ↵pmoody@google.com2011-09-081-1/+38
| | | | | | | | | | | | work. still need to figure out how to handle type-promotion git-svn-id: https://ipaddr-py.googlecode.com/svn@228 09200d28-7f98-11dd-ad27-0f66e57d2035
| * add ip interface classes. needs more unit testspmoody@google.com2011-09-082-207/+256
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@227 09200d28-7f98-11dd-ad27-0f66e57d2035
| * progressing towards 3144 compliancepmoody@google.com2011-09-085-0/+3067
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@226 09200d28-7f98-11dd-ad27-0f66e57d2035
| * patch from pmarks for i87pmoody@google.com2011-08-222-222/+206
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@225 09200d28-7f98-11dd-ad27-0f66e57d2035
| * 2001:0::3:4:5:6:7:8 should be considered validpmoody@google.com2011-07-222-1/+5
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@224 09200d28-7f98-11dd-ad27-0f66e57d2035
| * issue 83, doc issuepmoody@google.com2011-05-171-6/+6
| | | | | | | | git-svn-id: https://ipaddr-py.googlecode.com/svn@223 09200d28-7f98-11dd-ad27-0f66e57d2035