Skip to main content

A module for manipulating IP addresses, ranges, and networks, supplementing the netaddr module.

Project description


naddrtools is a simple library for manipulating IP addresses, ranges, and networks and acts as an extension of the netaddr module.

>>> import naddrtools as nat
>>> mylist = ["", "", " -"]
>>> ipset = nat.build_ipset(mylist, buff_network_ranges=True)
>>> print(ipset)
IPSet(['', ''])
>>> print(nat.convert_ipset_to_ranges_as_string(ipset)), -

Installing naddrtools

naddrtools is available on PyPI:

$ python -m pip install naddrtools

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

naddrtools-0.1.2.tar.gz (4.1 kB view hashes)

Uploaded source

Built Distribution

naddrtools-0.1.2-py3-none-any.whl (17.5 kB view hashes)

Uploaded py3

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