pyipaddress

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPAddress

func IPAddress(s string) (netip.Addr, bool)

Parses an address like ipaddress.ip_address including an IPv6 scope suffix, false on ValueError

func IPNetwork

func IPNetwork(s string, strict bool) (netip.Prefix, bool)

Parses a network like ipaddress.ip_network, netmask and hostmask suffixes included, false on ValueError

func InetAton

func InetAton(s string) (netip.Addr, bool)

Parses dotted IPv4 like glibc inet_aton with decimal, octal and hex parts and short forms

func IsLinkLocal

func IsLinkLocal(ip netip.Addr) bool

Link local classification of CPython 3.13 ipaddress, mapped IPv6 judged by its IPv4 address

func IsLoopback

func IsLoopback(ip netip.Addr) bool

Loopback classification of CPython 3.13 ipaddress, mapped IPv6 judged by its IPv4 address

func IsPrivate

func IsPrivate(ip netip.Addr) bool

Private classification of CPython 3.13 ipaddress, mapped IPv6 judged by its IPv4 address

func IsReserved

func IsReserved(ip netip.Addr) bool

Reserved classification of CPython 3.13 ipaddress, mapped IPv6 judged by its IPv4 address

func NetworkContains

func NetworkContains(prefix netip.Prefix, addr netip.Addr) bool

Whether the address lies in the network, false across families and blind to an IPv6 scope

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL