Skip to content

aea.helpers.acn.uri

This module contains types and helpers for libp2p connections Uris.

Uri Objects

class Uri()

Holds a node address in format "host:port".

__init__

def __init__(uri: Optional[str] = None,
             host: Optional[str] = None,
             port: Optional[int] = None) -> None

Initialise Uri.

__str__

def __str__() -> str

Get string representation.

__repr__

def __repr__() -> str

Get object representation.

host

@property
def host() -> str

Get host.

port

@property
def port() -> int

Get port.