how-to
How to Compile Your First Function
A step-by-step walkthrough of compiling a single Python function.
Published May 30, 2026
Step 1: Write a Function
def square_sum(n: int) -> int:
total = 0
for i in range(n):
total += i * i
return totalStep 2: Save to File
# save as math_ops.pyStep 3: Compile
pyvorin compile math_ops.py --function square_sumStep 4: Check Status
pyvorin job status JOB_IDStep 5: Run
pyvorin run math_ops.py --function square_sum