p2pfl.communication.protocols.grpc.address moduleΒΆ

Address parser.

class p2pfl.communication.protocols.grpc.address.AddressParser(address)[source]ΒΆ

Bases: object

Address parser. Determines if the address is a Unix domain address or an IP address (IPv4 or IPv6).

Parameters:

address (str) – The address to parse.

get_parsed_address()[source]ΒΆ

Get the parsed address.

Return type:

str

Returns:

The parsed address.