1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "calculations": [
9 {
10 "type": "one-rep-max",
11 "label": "Bench 100kg x 5",
12 "weight": 100,
13 "reps": 5,
14 "unit": "kg",
15 },
16 {
17 "type": "rep-max-table",
18 "label": "Squat 1RM 140kg",
19 "oneRepMax": 140,
20 "unit": "kg",
21 "roundTo": 2.5,
22 },
23 {
24 "type": "strength-standards",
25 "label": "Male deadlift standards",
26 "lift": "deadlift",
27 "sex": "male",
28 "bodyweight": 80,
29 "oneRepMax": 200,
30 "unit": "kg",
31 },
32 {
33 "type": "wilks-dots",
34 "label": "Male 600kg total",
35 "sex": "male",
36 "bodyweight": 90,
37 "total": 600,
38 "unit": "kg",
39 },
40 {
41 "type": "plate-loading",
42 "label": "Load 142.5kg",
43 "targetWeight": 142.5,
44 "unit": "kg",
45 },
46 {
47 "type": "warmup",
48 "label": "Warmup to 120kg",
49 "workingWeight": 120,
50 "workingReps": 5,
51 "unit": "kg",
52 "roundTo": 2.5,
53 },
54 ] }
55
56
57run = client.actor("mangudai/my-actor").call(run_input=run_input)
58
59
60print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
61for item in client.dataset(run["defaultDatasetId"]).iterate_items():
62 print(item)
63
64