realmetry 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 77 Render Studio LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,170 @@
1
+ Metadata-Version: 2.4
2
+ Name: realmetry
3
+ Version: 0.1.0
4
+ Summary: Python SDK and CLI for RealMetry: generate sim-ready USD scenes for Isaac Sim / Isaac Lab.
5
+ Author-email: RealMetry <hello@realmetry.co>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://realmetry.co
8
+ Project-URL: Documentation, https://app.realmetry.co/docs/sdk
9
+ Project-URL: Dashboard, https://app.realmetry.co
10
+ Project-URL: Terms of service, https://realmetry.co/terms
11
+ Keywords: robotics,simulation,isaac-sim,isaac-lab,openusd,usd,synthetic-data,procedural-generation
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Requires-Python: >=3.10
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: requests>=2.31
25
+ Provides-Extra: yaml
26
+ Requires-Dist: pyyaml>=6.0; extra == "yaml"
27
+ Dynamic: license-file
28
+
29
+ # realmetry — RealMetry SDK & CLI
30
+
31
+ Generate sim-ready USD scenes (procedural US kitchens today) for **Isaac Sim / Isaac Lab** and get them on your
32
+ disk, ready to load.
33
+
34
+ [Website](https://realmetry.co) · [Dashboard](https://app.realmetry.co) · [Docs](https://app.realmetry.co/docs/sdk)
35
+
36
+ You need a RealMetry account: [sign up](https://app.realmetry.co/signup), then create an API key in the dashboard.
37
+
38
+ ## Install
39
+
40
+ ```bash
41
+ pip install realmetry
42
+ pip install "realmetry[yaml]" # optional: read .yaml recipe files
43
+ ```
44
+
45
+ Python 3.10 or newer.
46
+
47
+ ## 1. Log in once
48
+
49
+ Create an API key in the web dashboard (**API keys → Create key**), then:
50
+
51
+ ```bash
52
+ realmetry login # paste the key; it is saved for your user and sent automatically from now on
53
+ realmetry whoami # organization and credits
54
+ ```
55
+
56
+ On servers / CI, set `REALMETRY_API_KEY` instead (it wins over the saved key).
57
+
58
+ ## 2. Generate scenes
59
+
60
+ ```bash
61
+ realmetry generate --scenes 10 --out ./scenes
62
+ realmetry generate --scenes 100 --recipe my_recipe.yaml --seed 1234 --out ./scenes
63
+ realmetry generate --scenes 50 --name "Training set v2" --out ./scenes # optional name to find it later
64
+ realmetry generate --scenes 200 --folder "Dataset v2" --out ./scenes # group jobs in a folder (created if new)
65
+ realmetry download --folder "Dataset v2" --out ./dataset # every ready scene of the folder
66
+ ```
67
+
68
+ It creates the job, shows progress, then downloads and unzips every ready scene:
69
+
70
+ ```
71
+ scenes/
72
+ kitchen_8f3c639d_0000/
73
+ scene.usdc <- open it in Isaac Sim or reference it from Isaac Lab
74
+ manifest.json <- every part: role (door, drawer, handle, graspable...), joint axis/limits, mass, friction
75
+ textures/
76
+ ```
77
+
78
+ Same seed + same recipe + same generator version = the same scene.
79
+
80
+ ## Edit a scene you already have
81
+
82
+ Same kitchen (same seed: room, cabinets, appliances, materials stay identical), different layers:
83
+
84
+ ```bash
85
+ realmetry status <job> # scene ids
86
+ realmetry edit <scene> --recipe add_decor.yaml # e.g. props: {deco: {max_sets: 6}}
87
+ realmetry edit <scene> --reroll decor lighting # another decor and other lights, nothing else changes
88
+ ```
89
+
90
+ Editable layers: `contents`, `decor`, `stools`, `lighting`, `initial_state`. Changing anything else is a new
91
+ scene. In Python: `client.edit(scene_id, recipe={...}, reroll=["decor"])` or `client.edit_and_download(...)`.
92
+ The original scene is kept; the edit is a new scene linked to it.
93
+
94
+ ## Recipe in 3 levels
95
+
96
+ Every level is optional and wins over the previous one: **starting point → essentials → any parameter**.
97
+
98
+ ```bash
99
+ realmetry options # what this generator offers
100
+ realmetry generate --scenes 12 --preset pick-and-place # 1. starting point
101
+ realmetry generate --scenes 12 --preset pick-and-place --clutter high --island always # 2. essentials
102
+ realmetry generate --scenes 12 --random # the six essentials at random
103
+ ```
104
+
105
+ ```python
106
+ client.generate(12, preset="pick_and_place")
107
+ client.generate(12, preset="pick_and_place", clutter="high", island="always")
108
+ client.generate(12, options="random") # or clutter="random" for just one
109
+ client.generate(12, preset="pick_and_place", recipe={"props": {"contents": {"fill": [90, 100]}}})
110
+ ```
111
+
112
+ The job you get back shows the resolved `options` (random already resolved) and the final `recipe`, so you can
113
+ see exactly what was made and repeat it. Scenes are always made with the latest generator version.
114
+
115
+ ### 3. Any parameter
116
+
117
+ Only the parameters you change; everything else keeps the generator defaults (or what the levels above set).
118
+
119
+ ```yaml
120
+ features:
121
+ island: 1 # always an island
122
+ layout:
123
+ type: {L: 3, U: 1} # 75 % L-shape, 25 % U-shape
124
+ room:
125
+ ceiling_height: 274 # cm
126
+ initial_state:
127
+ doors_open_probability: 0.5
128
+ ```
129
+
130
+ `realmetry schema` lists every adjustable parameter with its type, limits and default.
131
+
132
+ ## Python
133
+
134
+ ```python
135
+ import realmetry
136
+
137
+ client = realmetry.Client() # uses the saved key
138
+ scenes = client.generate(20, recipe={"features": {"island": 1}}, out="./scenes")
139
+ usd_paths = realmetry.client.iter_usd_paths(scenes) # -> feed your Isaac Lab env / scene config
140
+ ```
141
+
142
+ Lower level: `create_job`, `wait`, `job`, `jobs` (with `search=`), `rename`, `cancel`, `download_scene`,
143
+ `download_job`, `recipe_schema`, `folders`, `move`, `download_folder`. Every create/generate call accepts
144
+ `name="..."` and `folder="..."` (name or id).
145
+
146
+ ## Other commands
147
+
148
+ ```bash
149
+ realmetry jobs # recent jobs
150
+ realmetry jobs --search "training" # by part of the name, id prefix or seed
151
+ realmetry rename <job> "Training set v3" # no name = remove it
152
+ realmetry folders # folders with their jobs and ready scenes
153
+ realmetry recipes # recipes your team saved in the web app
154
+ realmetry jobs --since 2026-11-01 # jobs since a date (--archived: the archived ones)
155
+ realmetry archive JOB [JOB ...] # hide old jobs from lists (--undo brings them back)
156
+ realmetry download JOB1 JOB2 --out ./scenes # several jobs at once
157
+ realmetry generate --scenes 50 --saved-recipe "Grasping set v2" # request one by name
158
+ realmetry move <job> "Dataset v2" # no folder = take it out
159
+ realmetry status <job> # scenes and their state
160
+ realmetry download <job> --out ./scenes
161
+ realmetry cancel <job> # cancels scenes not started yet (their credits are released)
162
+ realmetry logout
163
+ ```
164
+
165
+ Errors are explicit: `402` not enough credits (with how many are needed), `422` invalid recipe (which parameter
166
+ and why). Download links expire after 1 hour; `realmetry download <job>` asks for fresh ones any time.
167
+
168
+ ## License
169
+
170
+ The SDK is MIT licensed (see `LICENSE`). Generating scenes uses the RealMetry service, under its [Terms of service](https://realmetry.co/terms).
@@ -0,0 +1,142 @@
1
+ # realmetry — RealMetry SDK & CLI
2
+
3
+ Generate sim-ready USD scenes (procedural US kitchens today) for **Isaac Sim / Isaac Lab** and get them on your
4
+ disk, ready to load.
5
+
6
+ [Website](https://realmetry.co) · [Dashboard](https://app.realmetry.co) · [Docs](https://app.realmetry.co/docs/sdk)
7
+
8
+ You need a RealMetry account: [sign up](https://app.realmetry.co/signup), then create an API key in the dashboard.
9
+
10
+ ## Install
11
+
12
+ ```bash
13
+ pip install realmetry
14
+ pip install "realmetry[yaml]" # optional: read .yaml recipe files
15
+ ```
16
+
17
+ Python 3.10 or newer.
18
+
19
+ ## 1. Log in once
20
+
21
+ Create an API key in the web dashboard (**API keys → Create key**), then:
22
+
23
+ ```bash
24
+ realmetry login # paste the key; it is saved for your user and sent automatically from now on
25
+ realmetry whoami # organization and credits
26
+ ```
27
+
28
+ On servers / CI, set `REALMETRY_API_KEY` instead (it wins over the saved key).
29
+
30
+ ## 2. Generate scenes
31
+
32
+ ```bash
33
+ realmetry generate --scenes 10 --out ./scenes
34
+ realmetry generate --scenes 100 --recipe my_recipe.yaml --seed 1234 --out ./scenes
35
+ realmetry generate --scenes 50 --name "Training set v2" --out ./scenes # optional name to find it later
36
+ realmetry generate --scenes 200 --folder "Dataset v2" --out ./scenes # group jobs in a folder (created if new)
37
+ realmetry download --folder "Dataset v2" --out ./dataset # every ready scene of the folder
38
+ ```
39
+
40
+ It creates the job, shows progress, then downloads and unzips every ready scene:
41
+
42
+ ```
43
+ scenes/
44
+ kitchen_8f3c639d_0000/
45
+ scene.usdc <- open it in Isaac Sim or reference it from Isaac Lab
46
+ manifest.json <- every part: role (door, drawer, handle, graspable...), joint axis/limits, mass, friction
47
+ textures/
48
+ ```
49
+
50
+ Same seed + same recipe + same generator version = the same scene.
51
+
52
+ ## Edit a scene you already have
53
+
54
+ Same kitchen (same seed: room, cabinets, appliances, materials stay identical), different layers:
55
+
56
+ ```bash
57
+ realmetry status <job> # scene ids
58
+ realmetry edit <scene> --recipe add_decor.yaml # e.g. props: {deco: {max_sets: 6}}
59
+ realmetry edit <scene> --reroll decor lighting # another decor and other lights, nothing else changes
60
+ ```
61
+
62
+ Editable layers: `contents`, `decor`, `stools`, `lighting`, `initial_state`. Changing anything else is a new
63
+ scene. In Python: `client.edit(scene_id, recipe={...}, reroll=["decor"])` or `client.edit_and_download(...)`.
64
+ The original scene is kept; the edit is a new scene linked to it.
65
+
66
+ ## Recipe in 3 levels
67
+
68
+ Every level is optional and wins over the previous one: **starting point → essentials → any parameter**.
69
+
70
+ ```bash
71
+ realmetry options # what this generator offers
72
+ realmetry generate --scenes 12 --preset pick-and-place # 1. starting point
73
+ realmetry generate --scenes 12 --preset pick-and-place --clutter high --island always # 2. essentials
74
+ realmetry generate --scenes 12 --random # the six essentials at random
75
+ ```
76
+
77
+ ```python
78
+ client.generate(12, preset="pick_and_place")
79
+ client.generate(12, preset="pick_and_place", clutter="high", island="always")
80
+ client.generate(12, options="random") # or clutter="random" for just one
81
+ client.generate(12, preset="pick_and_place", recipe={"props": {"contents": {"fill": [90, 100]}}})
82
+ ```
83
+
84
+ The job you get back shows the resolved `options` (random already resolved) and the final `recipe`, so you can
85
+ see exactly what was made and repeat it. Scenes are always made with the latest generator version.
86
+
87
+ ### 3. Any parameter
88
+
89
+ Only the parameters you change; everything else keeps the generator defaults (or what the levels above set).
90
+
91
+ ```yaml
92
+ features:
93
+ island: 1 # always an island
94
+ layout:
95
+ type: {L: 3, U: 1} # 75 % L-shape, 25 % U-shape
96
+ room:
97
+ ceiling_height: 274 # cm
98
+ initial_state:
99
+ doors_open_probability: 0.5
100
+ ```
101
+
102
+ `realmetry schema` lists every adjustable parameter with its type, limits and default.
103
+
104
+ ## Python
105
+
106
+ ```python
107
+ import realmetry
108
+
109
+ client = realmetry.Client() # uses the saved key
110
+ scenes = client.generate(20, recipe={"features": {"island": 1}}, out="./scenes")
111
+ usd_paths = realmetry.client.iter_usd_paths(scenes) # -> feed your Isaac Lab env / scene config
112
+ ```
113
+
114
+ Lower level: `create_job`, `wait`, `job`, `jobs` (with `search=`), `rename`, `cancel`, `download_scene`,
115
+ `download_job`, `recipe_schema`, `folders`, `move`, `download_folder`. Every create/generate call accepts
116
+ `name="..."` and `folder="..."` (name or id).
117
+
118
+ ## Other commands
119
+
120
+ ```bash
121
+ realmetry jobs # recent jobs
122
+ realmetry jobs --search "training" # by part of the name, id prefix or seed
123
+ realmetry rename <job> "Training set v3" # no name = remove it
124
+ realmetry folders # folders with their jobs and ready scenes
125
+ realmetry recipes # recipes your team saved in the web app
126
+ realmetry jobs --since 2026-11-01 # jobs since a date (--archived: the archived ones)
127
+ realmetry archive JOB [JOB ...] # hide old jobs from lists (--undo brings them back)
128
+ realmetry download JOB1 JOB2 --out ./scenes # several jobs at once
129
+ realmetry generate --scenes 50 --saved-recipe "Grasping set v2" # request one by name
130
+ realmetry move <job> "Dataset v2" # no folder = take it out
131
+ realmetry status <job> # scenes and their state
132
+ realmetry download <job> --out ./scenes
133
+ realmetry cancel <job> # cancels scenes not started yet (their credits are released)
134
+ realmetry logout
135
+ ```
136
+
137
+ Errors are explicit: `402` not enough credits (with how many are needed), `422` invalid recipe (which parameter
138
+ and why). Download links expire after 1 hour; `realmetry download <job>` asks for fresh ones any time.
139
+
140
+ ## License
141
+
142
+ The SDK is MIT licensed (see `LICENSE`). Generating scenes uses the RealMetry service, under its [Terms of service](https://realmetry.co/terms).
@@ -0,0 +1,41 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "realmetry"
7
+ version = "0.1.0"
8
+ description = "Python SDK and CLI for RealMetry: generate sim-ready USD scenes for Isaac Sim / Isaac Lab."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "RealMetry", email = "hello@realmetry.co" }]
14
+ keywords = ["robotics", "simulation", "isaac-sim", "isaac-lab", "openusd", "usd", "synthetic-data", "procedural-generation"]
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Intended Audience :: Developers",
18
+ "Intended Audience :: Science/Research",
19
+ "Operating System :: OS Independent",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
25
+ ]
26
+ dependencies = ["requests>=2.31"]
27
+
28
+ [project.urls]
29
+ Homepage = "https://realmetry.co"
30
+ Documentation = "https://app.realmetry.co/docs/sdk"
31
+ Dashboard = "https://app.realmetry.co"
32
+ "Terms of service" = "https://realmetry.co/terms"
33
+
34
+ [project.optional-dependencies]
35
+ yaml = ["pyyaml>=6.0"]
36
+
37
+ [project.scripts]
38
+ realmetry = "realmetry.cli:main"
39
+
40
+ [tool.setuptools.packages.find]
41
+ include = ["realmetry*"]
@@ -0,0 +1,12 @@
1
+ """RealMetry SDK: generate sim-ready USD scenes for Isaac Sim / Isaac Lab.
2
+
3
+ import realmetry
4
+ client = realmetry.Client() # API key from `realmetry login`, REALMETRY_API_KEY, or Client(api_key=...)
5
+ scenes = client.generate(10, recipe={"features": {"island": 1}}, out="./scenes")
6
+ scenes[0].usd_path # ./scenes/kitchen_xxxxxxxx_0000/scene.usdc -> load it in Isaac
7
+ """
8
+
9
+ from .client import Client, DownloadedScene, RealMetryError, verify_webhook
10
+
11
+ __all__ = ["Client", "DownloadedScene", "RealMetryError", "verify_webhook"]
12
+ __version__ = "0.1.0"