Skip to content

cosmpy.aerial.urls

Parsing the URL.

Protocol Objects

class Protocol(Enum)

Protocol Enum.

Arguments:

  • Enum: Enum

ParsedUrl Objects

@dataclass
class ParsedUrl()

Parse URL.

Returns:

Parsed URL

host_and_port

@property
def host_and_port() -> str

Get the host and port of the url.

Returns:

host and port

rest_url

@property
def rest_url() -> str

Get the rest url.

Returns:

rest url

parse_url

def parse_url(url: str) -> ParsedUrl

Initialize.

Arguments:

  • url: url

Raises:

  • RuntimeError: If url scheme is unsupported

Returns:

Parsed URL