How do I install the TofuPilot Python SDK?
Updated July 7, 2026
Install from PyPI: pip install tofupilot. Import it as "from tofupilot.v2 import TofuPilot". Pass your API key to the constructor or set the TOFUPILOT_API_KEY environment variable. The type-safe SDK wraps the REST API and supports creating runs with measurements, phases, and validators, cursor-paginated run listing, attachment upload and download, and async methods.
Related questions
- What is TofuPilot's relationship with OpenHTF?We've used TofuPilot for years on drone manufacturing floors and maintain openhtf.org, the open-source OpenHTF documentation site. We're also close to the…
- Why does my Cpk drop when tests correctly catch failing units?Cpk measures process capability, so far-out-of-limit readings from a known upstream failure distort it. Use yield to track pass/fail performance and Cpk to…
- Can I export test data to CSV or JSON?Yes. The Run Explorer's Export button writes the current filtered run set to CSV (one row per run) or JSON (nested), for all visible rows or a selection.…