Python
Integrate any python script with TofuPilot's Python Client.
Overview
Many hardware teams today use Python for their test scripts. The TofuPilot Python client, our recommended tool for accessing TofuPilot's API, is easy to install and integrates smoothly into existing code with minimal changes.
Installation
-
Install the TofuPilot open-source Python client:
pip install tofupilot
Add it to your test like this:
main.py
from tofupilot import TofuPilotClient
client = TofuPilotClient()
client.create_run(
procedure_id="FVT1", # Define the TofuPilot's procedure ID
unit_under_test={
"serial_number": "PCB1A001",
"part_number": "PCB1",
},
run_passed=True, # Set the Run status to Pass
)
Discover more TofuPilot's Python Client integrations in Test Runs sections.
Contribute
The TofuPilot Python client is open source under an MIT license, with a contribution guide available on GitHub. For any issues or feature requests, please open an issue on GitHub so we can assist you best.