1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "parts": [
10 {
11 "label": "shelf",
12 "length": 600,
13 "width": 400,
14 "quantity": 8,
15 },
16 {
17 "label": "side",
18 "length": 1800,
19 "width": 400,
20 "quantity": 2,
21 },
22 {
23 "label": "door",
24 "length": 700,
25 "width": 500,
26 "quantity": 4,
27 },
28 ],
29 "stockWidth": 1220,
30 "stockLength": 2440,
31 "kerf": 3,
32}
33
34
35run = client.actor("ponderable_hydrometer/cut-list").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42