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.1.0.tar.gz
(13.7 kB
view details)
Built Distribution
File details
Details for the file prettyip-1.1.0.tar.gz
.
File metadata
- Download URL: prettyip-1.1.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f6f2d2d409eecfbfd8672c91a7351ab40506910e291d79316f06850d522e56e |
|
MD5 | 34feea1052e782576ee0e775ddaa8c25 |
|
BLAKE2b-256 | 7e7ee60738345be092de28e73f23e5c73ba5b531a89a1725e850820f8cd6abb3 |
File details
Details for the file prettyip-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: prettyip-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a00d16673f054b981536c5da200c6640ae28187fc3415211d8bceb40d5a294 |
|
MD5 | 49f27ee5b764e3eb7f3192f6af223e5a |
|
BLAKE2b-256 | 596c8aa1d1092a73c3c7fe04193be687fc79aa98c87a1b8b03bf8e24c45c44d7 |