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

to_dict()

chitose.com.atproto.label.query_labels module

chitose.com.atproto.label.subscribe_labels module

class chitose.com.atproto.label.subscribe_labels.Info(name: str, message: str | None = None)

Bases: Object

to_dict()
class chitose.com.atproto.label.subscribe_labels.Labels(seq: int, labels: list[Label])

Bases: Object

to_dict()

Module contents

class chitose.com.atproto.label.Label_(service: str, headers: dict[str, str])

Bases: object

query_labels(uri_patterns: list[str], sources: list[str] | None = None, limit: int | None = None, cursor: str | None = None)

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