chitose.com.atproto.label package
Submodules
chitose.com.atproto.label.defs module
- class chitose.com.atproto.label.defs.Label(src: str, uri: str, val: str, cts: str, cid: str | None = None, neg: str | None = None)
Bases:
Object- Parameters:
src – DID of the actor who created this label
uri – AT URI of the record, repository (account), or other resource which this label applies to
val – the short string name of the value or type of this label
cts – timestamp when this label was created
cid – optionally, CID specifying the specific version of ‘uri’ resource this label applies to
neg – if true, this is a negation label, overwriting a previous label
- to_dict() dict
chitose.com.atproto.label.query_labels module
chitose.com.atproto.label.subscribe_labels module
Module contents
- class chitose.com.atproto.label.Label_(service: str, headers: dict[str, str])
Bases:
objectWe recommend calling methods in this class via the chitose.BskyAgent class instead of creating instances of this class directly.
- query_labels(uri_patterns: list[str], sources: list[str] | None = None, limit: int | None = None, cursor: str | None = None) bytes
Find labels relevant to the provided URI patterns.
- Parameters:
uri_patterns – List of AT URI patterns to match (boolean ‘OR’). Each may be a prefix (ending with ‘*’; will match inclusive of the string leading to ‘*’), or a full URI
sources – Optional list of label sources (DIDs) to filter on