On this page
  1. ipaddress.IPv6Interface
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

ipaddress.IPv6Interface

Prev: ipaddress.IPv6Address | Up: ipaddress | Next: ipaddress.IPv6Network
Rel: ipaddress.AddressValueError, ipaddress.collapse_addresses, ipaddress.get_mixed_type_key, ipaddress.ip_address
Ref: docs.python.org — ipaddress.IPv6Interface
Tags: #public #python3 #stdlib #ipaddress


Import

import ipaddress
from ipaddress import IPv6Interface

Signature & Overview

ipaddress.IPv6Interface(address)

ipaddress.IPv6Interface class.

Methods & Attributes

Usage

import ipaddress

iface = ipaddress.IPv6Interface("2001:db8::1/64")
assert str(iface.network) == "2001:db8::/64"

Gotchas

REPL Inspect

from ipaddress import IPv6Interface
help(IPv6Interface)

Linked from

Related notes