Skip to content

CaptureGraph Documentation#

Welcome to CaptureGraph, a Python DSL for defining structured data capture workflows that execute on mobile devices.

What is CaptureGraph?#

CaptureGraph separates the definition of data collection from the execution—write procedures in Python, run them on iOS devices, and analyze the results with typed containers.

Quick Start#

import capturegraph.procedures as cgp

def daily_capture():
    target = cgp.GetRootDirectory()
    session = target.new_session("daily")

    return cgp.ProcedureSequence(
        label="Daily Capture",
        procedures=[
            session.new_file("photo").save(
                cgp.CaptureImage(label="Photo"),
            ),
            session.new_file("notes").save(
                cgp.UserInputString(label="Notes"),
            ),
        ]
    )

Documentation Sections#

What is CaptureGraph, create your first procedure, deploy to device

Types, targets, fluent API, control flow, toolkits, custom procedures

Load captured data, vectorized containers, analysis workflows

Download data from server to local machine

API Reference#

For detailed API documentation, see the API Reference.