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.4.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file prettyip-1.0.4.tar.gz
.
File metadata
- Download URL: prettyip-1.0.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85ea0e8887f8ba1e8508e52cc765863d81420a469c89a5571990c75a7def8287 |
|
MD5 | 081535861f2aba376352b336ac6c2a7f |
|
BLAKE2b-256 | f6af08cf4716537a9ea20b4e51df7d33560eb6c4943dc8cc1028a29fb8edde42 |
File details
Details for the file prettyip-1.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: prettyip-1.0.4-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 | ba621f84101cae20ad21ec8f9f10f168f1ddada2905ce0b62638aa58a3f80205 |
|
MD5 | 3b778e0b71eff9a24f3687f9fb6226c1 |
|
BLAKE2b-256 | 354e60cf8e8e78557452cb587809f26eddd670236cc88d712e87be0a3b334a0f |