Skip to content

nodus.api

View Markdown

Layer 1 of the SDK: the generic resource client over every kind (resources.md §10.3).

nodus.api.get, list, watch, apply, create, patch, delete, estimate, logs, exec, files, healthz and readyz use the default client; nodus.Client(...) makes another one. Every call blocks and has an .aio form. Objects are JSON dicts shaped like the kinds in resources.md; nodus.api.models holds the generated pydantic models.

  • Config: import with from nodus.api import Config
  • KINDS: import with from nodus.api import KINDS
  • Resource: import with from nodus.api import Resource
  • default_client: import with from nodus.api import default_client
  • resolve: import with from nodus.api import resolve