AT URI Scheme#

More info: https://atproto.com/specs/at-uri-scheme

class atproto.uri.AtUri(host: str, pathname: str, hash_: str, search_params: List[Tuple[str, Any]])#

Bases: object

ATP URI Scheme.

Examples

Repository: at://alice.host.com

Repository: at://did:plc:bv6ggog3tya2z3vxsub7hnal

Collection: at://alice.host.com/io.example.song

Record: at://alice.host.com/io.example.song/3yI5-c1z-cc2p-1a

Record Field: at://alice.host.com/io.example.song/3yI5-c1z-cc2p-1a#/title

property collection: str#

Get collection name.

classmethod from_str(uri: str) AtUri#

Create AtUri instance from URI.

property hostname: str#

Get hostname.

property http: str#

Convert instance to HTTP URI.

property origin: str#

Get origin.

property protocol: str#

Get protocol.

property rkey: str#

Get record key (rkey).