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
| authority |
The DID or handle of the repository owner. |
| collection |
The NSID of the record collection. |
| rkey |
The record key within the collection. |
Methods
| parse |
Parse an AT URI string into components. |
parse
atmosphere.AtUri.parse(uri)
Parse an AT URI string into components.
Parameters
| uri |
str |
AT URI string in format at://<authority>/<collection>/<rkey> |
required |
Returns
|
AtUri |
Parsed AtUri instance. |