AtUri

atmosphere.AtUri(authority, collection, rkey)

Parsed AT Protocol URI.

AT URIs follow the format: at:////

Examples

>>> uri = AtUri.parse("at://did:plc:abc123/ac.foundation.dataset.sampleSchema/xyz")
>>> uri.authority
'did:plc:abc123'
>>> uri.collection
'ac.foundation.dataset.sampleSchema'
>>> uri.rkey
'xyz'

Attributes

Name Description
authority The DID or handle of the repository owner.
collection The NSID of the record collection.
rkey The record key within the collection.

Methods

Name Description
parse Parse an AT URI string into components.

parse

atmosphere.AtUri.parse(uri)

Parse an AT URI string into components.

Parameters

Name Type Description Default
uri str AT URI string in format at://<authority>/<collection>/<rkey> required

Returns

Name Type Description
AtUri Parsed AtUri instance.

Raises

Name Type Description
ValueError If the URI format is invalid.