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.1.tar.gz
(14.0 kB
view details)
Built Distribution
File details
Details for the file prettyip-1.1.1.tar.gz
.
File metadata
- Download URL: prettyip-1.1.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 404682243766290be7e33922e0f96e912d384dc76fffe1b252979d5a22500a2e |
|
MD5 | 17c23d72a5eaf5a808028b16097b74dd |
|
BLAKE2b-256 | 3b7be58fa95531a5644971f85f3972213416eb6728382b3d3b4dfa197717895f |
File details
Details for the file prettyip-1.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: prettyip-1.1.1-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 | d9942fccb59d2c8032013df416b0bf89964969c6451720c85cbc8554a5dda92c |
|
MD5 | 875100f61f9af335aebcb255035effc5 |
|
BLAKE2b-256 | 0af1fb1d4a5a67677846c4d18b28a204428d15e2bd9e58da34cd5b12ce8b500d |