python-iptools
python-iptools copied to clipboard
A few useful functions and objects for manipulating ip addresses in python.
Hi, I was wondering, do the strings output from iptools conform to RFC 5952 for IPv6? Thanks
`import iptools netmask = '255' valid = iptools.ipv4.validate_netmask(netmask) ` This returns `True`. 255 is not a valid netmask. It seems that this is auto-filling the 0's to make it a...
I did not expect this behavior. ```python >>> list(iptools.IpRangeList('2.2.2.3/32', ('2.2.2.2', '2.2.2.5'))) ['2.2.2.3', '2.2.2.2', '2.2.2.3', '2.2.2.4', '2.2.2.5'] ``` Yes, I know ```set``` exists
Docs at RTD will not update until we add their newly required configuration file. https://blog.readthedocs.com/migrate-configuration-v2/
Use [importlib.metadata](https://docs.python.org/3/library/importlib.metadata.html) to find the version of the installed package. See https://gitlab.wikimedia.org/repos/ci-tools/commit-message-validator/-/commit/64a3b58411f8dd3773516504556d22bee1465ff1 as an implementation example including support for older versions of Python.
Apparently I forgot to write a change log for 0.7.0. * https://github.com/bd808/python-iptools/compare/v0.6.1...v0.7.0 * https://github.com/bd808/python-iptools/releases/tag/v0.7.0
[January 1, 2020](https://www.python.org/doc/sunset-python-2/) was quite a while ago. It may not seem like that long to some of us who have lost our ability to measure the passage of time...
Replace setuptools with [hatchling](https://pypi.org/project/hatchling/) or something similar.
Travis was great until it wasn't. Porting to GitHub Actions should be relatively simple.
I am optionally using this (to time save a local DHCP address allocation and guess work) and I get this when I run: `django-admin check auth admin` as I am...