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.3.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file prettyip-1.0.3.tar.gz
.
File metadata
- Download URL: prettyip-1.0.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f99d8e896c26d615ac18ad99321598e3b77dbf8db0092d588be431f4bb03bea9 |
|
MD5 | 1ffd1b848a04dd69538b02fb0f2a4f1c |
|
BLAKE2b-256 | ea9cb969ce0da2c9fe105bcdf6502a5b4e92effab92ed058077dd5e58a23fc0c |
File details
Details for the file prettyip-1.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: prettyip-1.0.3-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 | b24c0fc6a04205e4312f9a3803328e2c9dbc4b29f3f3b323c2aed572bcf47b3c |
|
MD5 | ca365f4c503321874f039208b0c23cab |
|
BLAKE2b-256 | 4239160bd586d2703ffa700130ceb48ceb339d68927d79b1ea806e0f20c3bf02 |