1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "spec": {
9 "title": "Galley kitchen",
10 "room": {
11 "width": 4.2,
12 "depth": 3.6,
13 "height": 2.7,
14 },
15 "style": { "counter": "white_quartz" },
16 "windows": [{
17 "wall": "north",
18 "u0": 1.75,
19 "u1": 2.85,
20 "z0": 1.05,
21 "z1": 2,
22 }],
23 "openings": [{
24 "wall": "south",
25 "u0": 0.4,
26 "u1": 1.3,
27 }],
28 "cabinet_runs": [{
29 "wall": "north",
30 "start": 0,
31 "end": 4.2,
32 "uppers": True,
33 "appliances": [
34 {
35 "type": "fridge",
36 "at": 0,
37 "width": 0.9,
38 },
39 {
40 "type": "sink",
41 "at": 1.9,
42 "width": 0.8,
43 },
44 {
45 "type": "dishwasher",
46 "at": 2.7,
47 "width": 0.6,
48 },
49 {
50 "type": "range",
51 "at": 3.3,
52 "width": 0.76,
53 },
54 ],
55 }],
56 "island": {
57 "x": 2.1,
58 "y": 1.5,
59 "width": 2,
60 "depth": 0.9,
61 "pendants": 2,
62 "stools": 3,
63 },
64 } }
65
66
67run = client.actor("perchpermits/kitchen-floor-plan-takeoff").call(run_input=run_input)
68
69
70print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
71for item in client.dataset(run.default_dataset_id).iterate_items():
72 print(item)
73
74