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.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file prettyip-1.0.0.tar.gz
.
File metadata
- Download URL: prettyip-1.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f0fdcd942fbf2b6302660842180c35f193f8f1946d1390e8c13c57e2a2f274e |
|
MD5 | d447cf3b91714c6b3c6d64f806202527 |
|
BLAKE2b-256 | 1b09304a8e12ba59903d9811d0b04ff234dc2cb7723d30facf4e0c79c201be10 |
File details
Details for the file prettyip-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: prettyip-1.0.0-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 | 10e4d8fc51051c80c2e612909f1676ab26725b054ee2475f25cd04d33a376edf |
|
MD5 | feadedd45114a65548657fef6fb77a73 |
|
BLAKE2b-256 | 7b3497adf6f45ed489530b81cae5cd94816dba3895f66d013978e838688c58f3 |