Recipes
End-to-end code examples covering common OptixLog Python SDK tasks from ingesting nodes to exporting audit logs.
Each recipe is a self-contained example you can adapt directly. They assume you have already run optixlog login, optixlog init, and optixlog generate so that optixlog_gen.py exists in your working directory.
If you have not done that yet, see the offline fixture workflow to run the whole setup loop without a live server.
Ingest a Simulation Run
Build a SimulationNode, ingest it with a prompt, and inspect the IngestResult.
Connect Nodes into a Pipeline
Ingest several nodes and wire them into a connected workflow graph using origin_nodes and forward_nodes.
List and Iterate Teams
Use the Management API to filter teams, walk all pages with iter(), count members, and read memberships.
Export Audit Log
Filter audit events by time range and level, iterate all pages, and serialize to JSON or CSV.
Project Snapshot Report
Pull config, org, teams, members, nodes, and audit events in one snapshot call and build a report.
Offline Testing with Fixtures
Run the full login→init→generate loop offline with --fixture for tests and CI.
CI Codegen Check
Use optixlog generate --check in CI to fail when committed bindings are stale.