Skip to main content

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

Project details


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.5.4.tar.gz (1.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page