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.1.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file prettyip-1.0.1.tar.gz
.
File metadata
- Download URL: prettyip-1.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61232ed90e216e0b007dca4b766d2de6c1a7b39082e3dbeaa6589469c4c5aa68 |
|
MD5 | 1afc694b8561f9e1aa609cd22d38fd47 |
|
BLAKE2b-256 | 9ba0351e9d8f32d416d308ab9b6359a618634aa0186891f80ff39aa22088c3f9 |
File details
Details for the file prettyip-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: prettyip-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a684ea22fe61448921adbef8e0aa3971eba23c5c755843229800015ff36a30a |
|
MD5 | 3c179d9d8a16ebe0f5c677a3a1c97082 |
|
BLAKE2b-256 | cca9361ae5a09b487a84ac0c28189e199a521d97cd5b4beb1f26abc0af625e7b |