capturegraph.procedures
#
CaptureGraph Procedures Framework#
The core framework for defining and executing capture procedures. Procedures represent nodes in a directed acyclic graph (DAG) that define actions and transformations to be executed by the app.
This package contains the base procedure classes and type system, node categories for different operation types, serialization and visualization utilities, and toolkit functions for common operations. Together, these components provide a complete framework for building structured data collection workflows.
Usage
import capturegraph.procedures as cgp
# Create procedures directly
root = cgp.GetRootDirectory()
session = cgp.NewSessionDirectory(parent=root, prefix="capture")
photo = cgp.CaptureImage(label="Take a photo")
cgp.CacheProcedureToFile(directory=session, filename="photo", procedure=photo)
# Export to JSON
json_str = cgp.procedure_to_json(session)
Modules:
| Name | Description |
|---|---|
exporting |
Procedure Exporting Utilities |
nodes |
Procedure nodes are the building blocks of CaptureGraph workflows. They represent |
procedure |
Core Procedure Framework |
toolkits |
Toolkits provide high-level functions that combine multiple procedures into |
types |
Procedure Type System |