python-validators / validators

Python Data Validation for Humans™.
MIT License
977 stars 155 forks source link

Validate IP ranges #314

Closed maaaaz closed 7 months ago

maaaaz commented 1 year ago

Hello there,

It would be great to have a validator of IPv4 and IPv6 ranges, for instance based on the builtin module https://docs.python.org/3/library/ipaddress.html

Cheers!

yozachar commented 1 year ago

Already in place. Ref: https://github.com/python-validators/validators/blob/8f1159718f36cef59f4e647b03c43df52b50c2d1/src/validators/ip_address.py#L4-L11

What exactly are you proposing to implement?