python-ipy
python-ipy copied to clipboard
IPy are a Python class and tools for handling of IPv4 and IPv6 addresses and networks. It is similar to Net::IP Perl module.
To whom it may concern, when accepting input if number > 255 and no "." follows, instead of going through an error or filling empty spaces with "0". instead it...
Would be nice to see tests wired up into setup.py, so typical tests, like in other python packages, run would work. Currently: ```` + /usr/bin/python2 setup.py build '--build-base=build-2' test usage:...
These should be fixed to make the code easier to read/maintain and follow best practices ``` theHarvester/discovery/IPy.py:18:9: E241 multiple spaces after ':' '0': 'PUBLIC', # fall back ^ theHarvester/discovery/IPy.py:19:16: E241...
First of all, thanks for this great library! I found it super useful many times. I'm writing a new project that will use IPy and I could really use support...
https://github.com/autocracy/python-ipy/blob/b8eb507bf2e94e878e092b16746d2cd8a058294f/IPy.py#L821 missing IP version propagation as compared to https://github.com/autocracy/python-ipy/blob/b8eb507bf2e94e878e092b16746d2cd8a058294f/IPy.py#L811 Reproduce with: ```python import IPy; print(IPy.IP('::3/128').broadcast().version()) # 4 ``` In general, I'd prefer to have `.first_address()` and `.last_address()` methods as IPv6...
# Issue Type [x] Bug (Typo) # Steps to Replicate and Expected Behaviour - Examine test/test_IPy.py and observe `receipe`, however expect to see `recipe`. - Examine IPy.py and observe `prefered`,...
https://github.com/autocracy/python-ipy/blob/5ef3b5d92ae2fab56f561ead37cffc9db31000c8/setup.py#L24 Ref : https://www.python.org/dev/peps/pep-0632/#migration-advice
Since IPy is a helper library it'd be very good if it does routines itself. Though, you can't provide a non-normalized prefix: ``` IP('192.156.0.12/24') # ValueError: IP('192.156.0.12/24') has invalid prefix...
```python >>>IP('2001:0658:022a:cafe:0200::/120').strCompressed(3) ``` expected: `2001:658:22a:cafe:200::-2001:658:22a:cafe:200::ff` but Release 1.01 output: `2001:658:22a:cafe:200::-2001:0658:022a:cafe:0200:0000:0000:00ff` Now we can fix it!