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__

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

Initialise Uri.

__str__

 | __str__() -> str

Get string representation.

__repr__

 | __repr__() -> str

Get object representation.

host

 | @property
 | host() -> str

Get host.

port

 | @property
 | port() -> int

Get port.

Back to top