kscale 0.0.7__tar.gz → 0.0.9__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. kscale-0.0.9/MANIFEST.in +14 -0
  2. {kscale-0.0.7/kscale.egg-info → kscale-0.0.9}/PKG-INFO +1 -1
  3. {kscale-0.0.7 → kscale-0.0.9}/kscale/__init__.py +5 -1
  4. kscale-0.0.9/kscale/artifacts/__init__.py +8 -0
  5. kscale-0.0.9/kscale/artifacts/plane.obj +18 -0
  6. kscale-0.0.9/kscale/artifacts/plane.urdf +28 -0
  7. {kscale-0.0.7 → kscale-0.0.9}/kscale/store/pybullet.py +2 -2
  8. {kscale-0.0.7 → kscale-0.0.9/kscale.egg-info}/PKG-INFO +1 -1
  9. {kscale-0.0.7 → kscale-0.0.9}/kscale.egg-info/SOURCES.txt +4 -2
  10. kscale-0.0.9/kscale.egg-info/not-zip-safe +1 -0
  11. kscale-0.0.9/setup.cfg +4 -0
  12. {kscale-0.0.7 → kscale-0.0.9}/setup.py +7 -1
  13. kscale-0.0.7/MANIFEST.in +0 -1
  14. kscale-0.0.7/kscale/store/bullet/MANIFEST.in +0 -1
  15. kscale-0.0.7/setup.cfg +0 -15
  16. {kscale-0.0.7 → kscale-0.0.9}/LICENSE +0 -0
  17. {kscale-0.0.7 → kscale-0.0.9}/README.md +0 -0
  18. {kscale-0.0.7 → kscale-0.0.9}/kscale/api.py +0 -0
  19. {kscale-0.0.7 → kscale-0.0.9}/kscale/conf.py +0 -0
  20. {kscale-0.0.7 → kscale-0.0.9}/kscale/py.typed +0 -0
  21. {kscale-0.0.7 → kscale-0.0.9}/kscale/requirements-dev.txt +0 -0
  22. {kscale-0.0.7 → kscale-0.0.9}/kscale/requirements.txt +0 -0
  23. {kscale-0.0.7 → kscale-0.0.9}/kscale/store/__init__.py +0 -0
  24. {kscale-0.0.7 → kscale-0.0.9}/kscale/store/api.py +0 -0
  25. {kscale-0.0.7 → kscale-0.0.9}/kscale/store/cli.py +0 -0
  26. {kscale-0.0.7 → kscale-0.0.9}/kscale/store/client.py +0 -0
  27. {kscale-0.0.7 → kscale-0.0.9}/kscale/store/gen/__init__.py +0 -0
  28. {kscale-0.0.7 → kscale-0.0.9}/kscale/store/gen/api.py +0 -0
  29. {kscale-0.0.7 → kscale-0.0.9}/kscale/store/urdf.py +0 -0
  30. {kscale-0.0.7 → kscale-0.0.9}/kscale/store/utils.py +0 -0
  31. {kscale-0.0.7 → kscale-0.0.9}/kscale/utils/__init__.py +0 -0
  32. {kscale-0.0.7 → kscale-0.0.9}/kscale/utils/api_base.py +0 -0
  33. {kscale-0.0.7 → kscale-0.0.9}/kscale.egg-info/dependency_links.txt +0 -0
  34. {kscale-0.0.7 → kscale-0.0.9}/kscale.egg-info/entry_points.txt +0 -0
  35. {kscale-0.0.7 → kscale-0.0.9}/kscale.egg-info/requires.txt +0 -0
  36. {kscale-0.0.7 → kscale-0.0.9}/kscale.egg-info/top_level.txt +0 -0
  37. {kscale-0.0.7 → kscale-0.0.9}/pyproject.toml +0 -0
  38. {kscale-0.0.7 → kscale-0.0.9}/tests/test_dummy.py +0 -0
@@ -0,0 +1,14 @@
1
+ # Include top-level files.
2
+ include LICENSE
3
+ include README.md
4
+
5
+ # Include Python files.
6
+ recursive-include kscale *.py
7
+ recursive-include kscale py.typed
8
+
9
+ # Include requirements files.
10
+ recursive-include kscale requirements*.txt
11
+
12
+ # Include artifacts.
13
+ recursive-include kscale/artifacts *.obj
14
+ recursive-include kscale/artifacts *.urdf
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kscale
3
- Version: 0.0.7
3
+ Version: 0.0.9
4
4
  Summary: The kscale project
5
5
  Home-page: https://github.com/kscalelabs/kscale
6
6
  Author: Benjamin Bolte
@@ -1,5 +1,9 @@
1
1
  """Defines the common interface for the K-Scale Python API."""
2
2
 
3
- __version__ = "0.0.7"
3
+ __version__ = "0.0.9"
4
+
5
+ from pathlib import Path
4
6
 
5
7
  from kscale.api import KScale
8
+
9
+ ROOT_DIR = Path(__file__).parent
@@ -0,0 +1,8 @@
1
+ """Defines some helper functions for working with artifacts."""
2
+
3
+ from pathlib import Path
4
+
5
+ ARTIFACTS_DIR = Path(__file__).parent.resolve()
6
+
7
+ PLANE_OBJ_PATH = ARTIFACTS_DIR / "plane.obj"
8
+ PLANE_URDF_PATH = ARTIFACTS_DIR / "plane.urdf"
@@ -0,0 +1,18 @@
1
+ # Blender v2.66 (sub 1) OBJ File: ''
2
+ # www.blender.org
3
+ mtllib plane.mtl
4
+ o Plane
5
+ v 15.000000 -15.000000 0.000000
6
+ v 15.000000 15.000000 0.000000
7
+ v -15.000000 15.000000 0.000000
8
+ v -15.000000 -15.000000 0.000000
9
+
10
+ vt 15.000000 0.000000
11
+ vt 15.000000 15.000000
12
+ vt 0.000000 15.000000
13
+ vt 0.000000 0.000000
14
+
15
+ usemtl Material
16
+ s off
17
+ f 1/1 2/2 3/3
18
+ f 1/1 3/3 4/4
@@ -0,0 +1,28 @@
1
+ <?xml version="0.0" ?>
2
+ <robot name="plane">
3
+ <link name="planeLink">
4
+ <contact>
5
+ <lateral_friction value="1"/>
6
+ </contact>
7
+ <inertial>
8
+ <origin rpy="0 0 0" xyz="0 0 0"/>
9
+ <mass value=".0"/>
10
+ <inertia ixx="0" ixy="0" ixz="0" iyy="0" iyz="0" izz="0"/>
11
+ </inertial>
12
+ <visual>
13
+ <origin rpy="0 0 0" xyz="0 0 0"/>
14
+ <geometry>
15
+ <mesh filename="plane.obj" scale="1 1 1"/>
16
+ </geometry>
17
+ <material name="white">
18
+ <color rgba="1 1 1 1"/>
19
+ </material>
20
+ </visual>
21
+ <collision>
22
+ <origin rpy="0 0 0" xyz="0 0 -5"/>
23
+ <geometry>
24
+ <box size="30 30 10"/>
25
+ </geometry>
26
+ </collision>
27
+ </link>
28
+ </robot>
@@ -6,9 +6,9 @@ import itertools
6
6
  import logging
7
7
  import math
8
8
  import time
9
- from pathlib import Path
10
9
  from typing import Sequence
11
10
 
11
+ from kscale.artifacts import PLANE_URDF_PATH
12
12
  from kscale.store.urdf import download_urdf
13
13
 
14
14
  logger = logging.getLogger(__name__)
@@ -53,7 +53,7 @@ async def main(args: Sequence[str] | None = None) -> None:
53
53
  p.configureDebugVisualizer(p.COV_ENABLE_MOUSE_PICKING, 1)
54
54
 
55
55
  # Loads the floor plane.
56
- floor = p.loadURDF(str((Path(__file__).parent / "bullet" / "plane.urdf").resolve()))
56
+ floor = p.loadURDF(str(PLANE_URDF_PATH))
57
57
 
58
58
  # Load the robot URDF.
59
59
  start_position = [0.0, 0.0, 1.0]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kscale
3
- Version: 0.0.7
3
+ Version: 0.0.9
4
4
  Summary: The kscale project
5
5
  Home-page: https://github.com/kscalelabs/kscale
6
6
  Author: Benjamin Bolte
@@ -2,7 +2,6 @@ LICENSE
2
2
  MANIFEST.in
3
3
  README.md
4
4
  pyproject.toml
5
- setup.cfg
6
5
  setup.py
7
6
  kscale/__init__.py
8
7
  kscale/api.py
@@ -14,8 +13,12 @@ kscale.egg-info/PKG-INFO
14
13
  kscale.egg-info/SOURCES.txt
15
14
  kscale.egg-info/dependency_links.txt
16
15
  kscale.egg-info/entry_points.txt
16
+ kscale.egg-info/not-zip-safe
17
17
  kscale.egg-info/requires.txt
18
18
  kscale.egg-info/top_level.txt
19
+ kscale/artifacts/__init__.py
20
+ kscale/artifacts/plane.obj
21
+ kscale/artifacts/plane.urdf
19
22
  kscale/store/__init__.py
20
23
  kscale/store/api.py
21
24
  kscale/store/cli.py
@@ -23,7 +26,6 @@ kscale/store/client.py
23
26
  kscale/store/pybullet.py
24
27
  kscale/store/urdf.py
25
28
  kscale/store/utils.py
26
- kscale/store/bullet/MANIFEST.in
27
29
  kscale/store/gen/__init__.py
28
30
  kscale/store/gen/api.py
29
31
  kscale/utils/__init__.py
@@ -0,0 +1 @@
1
+
kscale-0.0.9/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -23,7 +23,6 @@ with open("kscale/__init__.py", "r", encoding="utf-8") as fh:
23
23
  assert version_re is not None, "Could not find version in kscale/__init__.py"
24
24
  version: str = version_re.group(1)
25
25
 
26
-
27
26
  setup(
28
27
  name="kscale",
29
28
  version=version,
@@ -36,5 +35,12 @@ setup(
36
35
  python_requires=">=3.11",
37
36
  install_requires=requirements,
38
37
  tests_require=requirements_dev,
38
+ zip_safe=False,
39
39
  extras_require={"dev": requirements_dev},
40
+ include_package_data=True,
41
+ entry_points={
42
+ "console_scripts": [
43
+ "kscale = kscale.store.cli:sync_main",
44
+ ],
45
+ },
40
46
  )
kscale-0.0.7/MANIFEST.in DELETED
@@ -1 +0,0 @@
1
- recursive-include kscale/ *.py *.txt py.typed MANIFEST.in
@@ -1 +0,0 @@
1
- include . *.obj *.urdf
kscale-0.0.7/setup.cfg DELETED
@@ -1,15 +0,0 @@
1
- [options]
2
- packages = find:
3
-
4
- [options.packages.find]
5
- exclude =
6
- tests
7
-
8
- [options.entry_points]
9
- console_scripts =
10
- kscale = kscale.store.cli:sync_main
11
-
12
- [egg_info]
13
- tag_build =
14
- tag_date = 0
15
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes