Skip to content

Overview

Everything in Syncwave's public API is exported from the top-level syncwave package (from syncwave import ...).

Public Exports

  • Entry point
  • Syncwave: manages stores and their JSON files.
  • Collections
  • SyncCollection: virtual base class of the reactive collections.
  • SyncDict: reactive counterpart of dict.
  • SyncList: reactive counterpart of list.
  • SyncSet: reactive counterpart of set.
  • Models
  • SyncModel: reactive counterpart of pydantic.BaseModel.
  • SyncRoot: reactive counterpart of pydantic.RootModel.
  • sync_dataclass: decorator that creates a reactive Pydantic dataclass.
  • is_sync_dataclass: checks whether a class was decorated with sync_dataclass.
  • Reactivity
  • Reactive: base class of all reactive types (except reactive dataclasses).
  • SyncState: enum of lifecycle states (INERT, LIVE, DEAD).
  • Errors
  • DeadReferenceError: raised when using a reactive object removed from its store.

Internal helpers that appear in type signatures (void as the omitted-default sentinel, SyncDataclass as a typing protocol) are not exported at runtime.