Python equivalent of the "INET6_ATON" SQL function
P粉0304790542023-09-06 14:36:14
0
1
467
I want to convert a PHP program using MySQL to Python.
I found a way to store the database, but I need to find Pythonic replacements for the INET6_ATON SQL functions.
Can anyone help me?
[From Alvin Roth]
Thanks it does the exact same thing!
Documentation for ipaddress.IPv4Address.packed: https://docs.python.org/3/library/ ipaddress.html#ipaddress.IPv4Address.packed