Pretty-print IPy's IPSets
Project description
Pretty-print IPy’s IPSets in a human-readable fashion.
Compatibility
Everywhere IPy runs, so does this – CPython-2.6 through 3.4.
Usage
Explicitly:
from IPy import IPSet, IP import prettyip my_ipset = IPSet([IP('10.0.0.0/8')]) - IPSet([IP('10.0.1.2')]) print prettyip(my_ipset)
Or, monkey-patch IPy:
import prettyip prettyip.patch_ipy() my_ipset = IPSet([IP('10.0.0.0/8')]) - IPSet([IP('10.0.1.2')]) print my_ipset
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prettyip-1.0.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for prettyip-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 026e5aa29ce100b5574e5860618a3ef51afd711fdc011fc2f2e1c0adce566a12 |
|
MD5 | cee4b979587ff6e7206fbbddca06a1da |
|
BLAKE2b-256 | 1c9a92cb2d9805cbe1fed99bb60b11b48914cc6a0dfd44065b37c3fbb710c0fd |