[Python] IPv6 address validation and canonicalization [closed]

Discussão em 'Python' iniciado por Stack, Maio 29, 2025.

  1. Stack

    Stack Membro Participativo

    What libs have you used for that? How compatible are they with one another? Or did you write your own parsing routine?

    I'm particularly interested in mutually-compatible implementations for Java, C++, Python, and JavaScript, which support:

    • zero compression ("::")
    • IPv4-mapped addresses ("::ffff:123.45.67.89")
    • canonicalization (including to the short form, for human readability)
    • CIDR-style netmasks (like "/64" at the end)

    Continue reading...

Compartilhe esta Página