Guides

Task-focused walkthroughs for building with drasi-lib.

Each guide covers one job:

  • Python sources — push your own changes into the engine.
  • Python reactions — handle result diffs, including durable reactions that survive a restart.
  • Streaming results — consume results, events and logs as async iterators.
  • Plugins — search, install, verify and load native Drasi plugins.
  • Error handling — the typed exception hierarchy and error codes.
  • The blocking APIdrasi.sync for scripts and notebooks.
  • Typing — the shipped type stubs and how to use them.

Python sources

Push changes into the engine from your own code.

Python reactions

Handle result-set diffs in your own code, including across restarts.

Streaming results

Consume results, component events and logs as async iterators.

Query middleware

Transform changes on their way into a query.

Plugins

Search, install, verify and load Drasi’s native source, reaction and bootstrap plugins.

Error handling

The typed exception hierarchy and the stable error codes behind it.

The blocking API

drasi.sync for scripts, notebooks and anywhere async would be awkward.

Typing

The shipped type stubs, and the shapes the API accepts and returns.