wrapper of ipaddress.py, easy to use
Project description
iputils
iputils is the wrapper of ipaddress.py, easy for use.
Install
pip install iputils
Usage
from iputils import IPUtils print(IPUtils.is_valid("1988.0.0.1/22")) print(IPUtils.is_ipv4("199.201.90.100/22")) print(IPUtils.is_ipv6("2001::1/64")) print(IPUtils.is_network("2001::/64")) print(IPUtils.get_network_addr("199.201.90.100/22")) print(IPUtils.with_prefix("199.201.90.100/255.255.252.0")) and more... see the api docs
Keywords: IPv4,IPv6 Platform: any Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3.6 Classifier: Topic :: Software Development :: Libraries Classifier: Topic :: Utilities
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
iputils-0.6.tar.gz
(4.1 kB
view details)
File details
Details for the file iputils-0.6.tar.gz.
File metadata
- Download URL: iputils-0.6.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1986a6d93df972c854036d012955ac1634b4a1037e7183c86085a823a676aeb9
|
|
| MD5 |
6a8cf50ecd04865f98900c239b00ff4e
|
|
| BLAKE2b-256 |
5f56ff1edc10eb84130e9ce1748b5578a11d26725031e7d9a864771b393d658d
|