API reference¶
Per-symbol documentation generated from the source docstrings. Use this when you know what you want to call and need the exact signature, parameter list, raised exceptions, and return type. For task-oriented walk-throughs see the guides. For design rationale see the concepts.
Records and data¶
- Records:
BlobRef, the view helpers, and the generatedpub.layers.*record namespaces. - Shared types: the
JsonValuealias and the type variables. - Dataset API:
Corpusandload_corpus, the lazyDataset, and theFeaturesdescription derived from the generated models. - Dataset discovery:
discover_datasets,list_datasets, andtable_of_contents, theDatasetFilter,DatasetSummary, andRepoTableOfContentsresult shapes, and the searchable discovery index.
ATProto access¶
- ATProto access: identity resolution, the PDS and appview record clients, blob fetch, and the firehose surface.
Store¶
- Store: the in-memory pool, the schematic Repository, the Arrow views, and the blob cache.
Media¶
- Media: media resolution, anchor resolution, and the audio, video, and neural decode and slicing helpers.
Authoring¶
- Authoring: the
LayerBuilderand anchor builders (span,temporal,bbox, and the rest), theWriteClient,apply_writes,pull, and thePublishPlandiff against a PDS.
Integrations¶
- Integration ports: the
Codec,Exporter,KnowledgeBase, andStorageBackendprotocols that adapters bind to. - Adapter registry: the registry and the top-level
get_codec,get_exporter, andget_knowledge_baselookups by name. - Format codecs: the shared corpus-fragment models and the CoNLL-U and brat codecs.
- Knowledge bases: the entity, candidate, and edge models and the Wikidata, reconciliation, and glazing connectors.
- Exporters: the framework-native exporters over an Arrow view (HuggingFace, PyTorch, TensorFlow, WebDataset).
- Experiment tracking: logging a Repository revision and its provenance bundle to Weights & Biases or MLflow.
Code generation¶
- Code generation: the lexicon-to-model pipeline, the schema-to-spec mapping, the emitter, and the vendoring manifest.
Tools¶
- Explorer TUI: the
lairs.tuiTextual application and the standalone DuckDB-backedQueryEngine. - CLI: the
lairsconsole script and itsvendor,gen,pull,materialize,publish,inspect,datasets,toc,search,index(withbuild,update,search, anddiff),tui,login,logout, andwhoamisubcommands.