humalab 0.1.0__py3-none-any.whl

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.
humalab/utils.py ADDED
@@ -0,0 +1,37 @@
1
+ import builtins
2
+
3
+ # Define what counts as "standard" types
4
+ STANDARD_TYPES = (
5
+ int, float, complex, bool, str, bytes, bytearray,
6
+ list, tuple, dict, set, frozenset, type(None)
7
+ )
8
+
9
+ def is_standard_type(obj, _seen=None):
10
+ """Recursively check if an object only contains standard Python types."""
11
+ if _seen is None:
12
+ _seen = set()
13
+
14
+ obj_id = id(obj)
15
+ if obj_id in _seen:
16
+ return True # Prevent infinite recursion for self-referential structures
17
+ _seen.add(obj_id)
18
+
19
+ if isinstance(obj, STANDARD_TYPES):
20
+ if isinstance(obj, (list, tuple, set, frozenset)):
21
+ return all(is_standard_type(i, _seen) for i in obj)
22
+ elif isinstance(obj, dict):
23
+ return all(
24
+ is_standard_type(k, _seen) and is_standard_type(v, _seen)
25
+ for k, v in obj.items()
26
+ )
27
+ return True
28
+
29
+ # If it's a builtin constant type (e.g., Ellipsis, NotImplemented)
30
+ if obj in (Ellipsis, NotImplemented):
31
+ return True
32
+
33
+ # Check if it's a built-in type object (like int, str)
34
+ if isinstance(obj, type) and obj.__module__ == 'builtins':
35
+ return True
36
+
37
+ return False
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.4
2
+ Name: humalab
3
+ Version: 0.1.0
4
+ Summary: Python SDK for HumaLab - A platform for adaptive AI validation.
5
+ Home-page: https://github.com/humalab/humalab_sdk
6
+ Author: HumaLab Team
7
+ Author-email: HumaLab Team <info@humalab.ai>
8
+ License-Expression: MIT
9
+ Project-URL: Homepage, https://github.com/humalab/humalab_sdk
10
+ Project-URL: Documentation, https://docs.humalab.ai
11
+ Project-URL: Repository, https://github.com/humalab/humalab_sdk
12
+ Project-URL: Bug Tracker, https://github.com/humalab/humalab_sdk/issues
13
+ Keywords: robotics,simulation,machine-learning,validation,sdk
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Classifier: Topic :: Scientific/Engineering :: Physics
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.8
21
+ Classifier: Programming Language :: Python :: 3.9
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Requires-Python: >=3.8
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ Requires-Dist: numpy>=1.20.0
28
+ Requires-Dist: omegaconf>=2.1.0
29
+ Requires-Dist: requests>=2.25.0
30
+ Requires-Dist: pyyaml>=5.4.0
31
+ Provides-Extra: dev
32
+ Requires-Dist: pytest>=6.0.0; extra == "dev"
33
+ Requires-Dist: pytest-cov>=2.10.0; extra == "dev"
34
+ Requires-Dist: black>=21.0; extra == "dev"
35
+ Requires-Dist: flake8>=3.9.0; extra == "dev"
36
+ Requires-Dist: mypy>=0.910; extra == "dev"
37
+ Dynamic: author
38
+ Dynamic: home-page
39
+ Dynamic: license-file
40
+ Dynamic: requires-python
41
+
42
+ # humalab_sdk
43
+ Python SDK for HumaLab - A platform for adaptive AI validation.
@@ -0,0 +1,39 @@
1
+ humalab/__init__.py,sha256=AfQjlYd-KIqWdKaW77ZI86zU5tYXk-kdXaj14sY27is,1022
2
+ humalab/constants.py,sha256=FuwO3FRREUYStXmly7dN6Phw2tIyyiCn8bbclibqh5I,1194
3
+ humalab/episode.py,sha256=EZCsvv51rEZyl6aVIVviIRi6lR5KAjKSmn0_m5EUL28,10760
4
+ humalab/humalab.py,sha256=_2wEGri-PEhi9WZ2XEHAVDPm8Iki8jZBG8nEmQSFuzo,8089
5
+ humalab/humalab_api_client.py,sha256=3udeKwplpYty-Zp_5IkZXONCJUalj_3pKkqaOBAGaBo,29339
6
+ humalab/humalab_config.py,sha256=6LEDnrXINNuE9QJeN2Vd4NFjzRSZsD7NFv3d2EqVvGc,3798
7
+ humalab/humalab_test.py,sha256=YMwOIH-sAOMnxwq8yR-Ut4vYk5Ksix9zS9yUIxi3GU8,20725
8
+ humalab/run.py,sha256=Qn98ONiZ1d5vbzjiVEYdB_xkw9nmc3n9fzLc_cMQluc,11752
9
+ humalab/utils.py,sha256=KMIPoduAbQzha9wvnyX8OjE8X-3TaNpecx2o-kgHbdw,1161
10
+ humalab/assets/__init__.py,sha256=dsBdfusLUNwXnnuGaqAwO83_JDghc4MKLARKGupfNhk,413
11
+ humalab/assets/archive.py,sha256=PALZRnpNExDfXiURVNEj6xxWqcW4nd9UBZ7QIHa8mI8,3119
12
+ humalab/assets/resource_operator.py,sha256=H2ERU2LuzF3nomR2L29Q6f5EuYwB_PgHlmDvZbCql5s,5961
13
+ humalab/assets/files/__init__.py,sha256=9XF-Zp2nldx060v8A3tMTcB5o5vJCUTFKF9rrIFZE_s,111
14
+ humalab/assets/files/resource_file.py,sha256=0h-WrQcwalEtKbS4ZJTkF3TciX7rqkTG_EVM8YshRHE,3763
15
+ humalab/assets/files/urdf_file.py,sha256=6J6MGgMvwttyC2Ru_3nReoPW6kHjNYFgkoD24URvIBY,3960
16
+ humalab/dists/__init__.py,sha256=IcVN1O4EOIcoOiWbiNWqeQOGBnEeVmjdaSpjR81WdTU,721
17
+ humalab/dists/bernoulli.py,sha256=h7QX5pMo5R_LQFJGx-Z-X9mdiz54cnjATGn6U2LppnM,2825
18
+ humalab/dists/categorical.py,sha256=tlpfmsnz4XrjxIqPlowHwBmYFRLYU_iENp_SbrOLXmk,3036
19
+ humalab/dists/discrete.py,sha256=2tJXHPakyzj4HAlbWC3_AeUbBdfQzvtlgTxba3gZvLo,3848
20
+ humalab/dists/distribution.py,sha256=wWm_bzfe-PHqBAOAszT2xW40CBkr7bDdSQbE_-Oztfw,1447
21
+ humalab/dists/gaussian.py,sha256=HYQ8KHxJBY4Y_PifQh4QKjfPcrqaeBpiSfcn_84BW1Y,3493
22
+ humalab/dists/log_uniform.py,sha256=6Bf-jkMYB0mFYiXX7mMMCAm0moYqfDvU99pOHrJiuLE,3586
23
+ humalab/dists/truncated_gaussian.py,sha256=qAPTiWFsci48pfgEyipg0E2Yl8HQSAFfxVAki_BX7cc,5185
24
+ humalab/dists/uniform.py,sha256=5_HOY7lU51v21Oyb3_VCGANMCatmZWeV97sTB57vu-A,3428
25
+ humalab/metrics/__init__.py,sha256=gYTsYpOJjx6Ouxyy2iZyHBSfMw0A4C0ZbQSgnIO6D2g,423
26
+ humalab/metrics/code.py,sha256=0cVlsC8nGta7Eb7-mr3ug5wgTy1FluyOtq252_fOEwE,1693
27
+ humalab/metrics/metric.py,sha256=MJ8oJoFJU9e4KE1Y_dw7cvKumFm85n3gWMkVfbDHzZM,3181
28
+ humalab/metrics/scenario_stats.py,sha256=MEGxPnVbT-KkhuRzxFEitXWnhbxMWhromuJp9lBBlMM,5351
29
+ humalab/metrics/summary.py,sha256=x_GL12stCI3UtUds8w1FoD3WYSk25fGnXBhstV1MD_I,2656
30
+ humalab/scenarios/__init__.py,sha256=LRwueiMULXrEh37tZsKO9A4Obwoo5Zcsao_Wlk7j3vw,397
31
+ humalab/scenarios/scenario.py,sha256=llukLnS-vRtsB9hIiLXWoTrb6ATMRPnyxF43bjaZRwk,12530
32
+ humalab/scenarios/scenario_operator.py,sha256=PYAeUMQ3JPzNu5STfL543dYqcopO49td15QViybiTuw,4927
33
+ humalab/scenarios/scenario_test.py,sha256=YYSzKfaeZVK0Kv09pVYgZvLP7Zrz02jgUOpQ-0btanc,24397
34
+ humalab-0.1.0.dist-info/licenses/LICENSE,sha256=Gy0Nw_Z9pbrNSu-loW-PCDWJyrC8eWpIqqIGW-DFtp8,1064
35
+ humalab-0.1.0.dist-info/METADATA,sha256=VisMG6T6uzxtZ4a2CC_LVkEZKHoMa_2ci0DJXIEzXfM,1704
36
+ humalab-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
+ humalab-0.1.0.dist-info/entry_points.txt,sha256=aY-hS7Kg8y5kGgYA14YmtTz5odBrgJIZ2fQMXAbVW_U,49
38
+ humalab-0.1.0.dist-info/top_level.txt,sha256=hp7XXBDE40hi9T3Jx6mPFc6wJbAMzektD5VWXlSCW6o,8
39
+ humalab-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ humalab = humalab.humalab:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 HumaLab
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 @@
1
+ humalab