kscale 0.1.0__tar.gz → 0.1.1__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.
- {kscale-0.1.0/kscale.egg-info → kscale-0.1.1}/PKG-INFO +2 -2
- {kscale-0.1.0 → kscale-0.1.1}/kscale/__init__.py +1 -1
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/robot_class.py +9 -2
- {kscale-0.1.0 → kscale-0.1.1/kscale.egg-info}/PKG-INFO +2 -2
- {kscale-0.1.0 → kscale-0.1.1}/LICENSE +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/MANIFEST.in +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/README.md +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/api.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/artifacts/__init__.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/artifacts/plane.obj +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/artifacts/plane.urdf +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/cli.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/conf.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/py.typed +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/requirements-dev.txt +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/requirements.txt +1 -1
- {kscale-0.1.0 → kscale-0.1.1}/kscale/utils/__init__.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/utils/api_base.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/utils/checksum.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/utils/cli.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/__init__.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/api.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/__init__.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/robot.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/robot_class.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/token.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/user.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/__init__.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/base.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/client.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/robot.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/user.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/gen/__init__.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/gen/api.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale/web/utils.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/SOURCES.txt +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/dependency_links.txt +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/entry_points.txt +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/not-zip-safe +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/requires.txt +1 -1
- {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/top_level.txt +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/pyproject.toml +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/setup.cfg +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/setup.py +0 -0
- {kscale-0.1.0 → kscale-0.1.1}/tests/test_dummy.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: kscale
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: The kscale project
|
5
5
|
Home-page: https://github.com/kscalelabs/kscale
|
6
6
|
Author: Benjamin Bolte
|
@@ -9,7 +9,6 @@ Description-Content-Type: text/markdown
|
|
9
9
|
License-File: LICENSE
|
10
10
|
Requires-Dist: omegaconf
|
11
11
|
Requires-Dist: email_validator
|
12
|
-
Requires-Dist: colorlogging
|
13
12
|
Requires-Dist: aiohttp
|
14
13
|
Requires-Dist: cryptography
|
15
14
|
Requires-Dist: httpx
|
@@ -19,6 +18,7 @@ Requires-Dist: requests
|
|
19
18
|
Requires-Dist: yarl
|
20
19
|
Requires-Dist: aiofiles
|
21
20
|
Requires-Dist: click
|
21
|
+
Requires-Dist: colorlogging
|
22
22
|
Requires-Dist: tabulate
|
23
23
|
Requires-Dist: async-lru
|
24
24
|
Requires-Dist: krec
|
@@ -12,6 +12,9 @@ from kscale.web.utils import get_cache_dir
|
|
12
12
|
|
13
13
|
logger = logging.getLogger(__name__)
|
14
14
|
|
15
|
+
UPLOAD_TIMEOUT = 300.0
|
16
|
+
DOWNLOAD_TIMEOUT = 60.0
|
17
|
+
|
15
18
|
|
16
19
|
class RobotClassClient(BaseClient):
|
17
20
|
async def get_robot_classes(self) -> list[RobotClass]:
|
@@ -77,7 +80,9 @@ class RobotClassClient(BaseClient):
|
|
77
80
|
auth=True,
|
78
81
|
)
|
79
82
|
response = RobotUploadURDFResponse.model_validate(data)
|
80
|
-
async with httpx.AsyncClient(
|
83
|
+
async with httpx.AsyncClient(
|
84
|
+
timeout=httpx.Timeout(UPLOAD_TIMEOUT),
|
85
|
+
) as client:
|
81
86
|
async with client.stream(
|
82
87
|
"PUT",
|
83
88
|
response.url,
|
@@ -97,7 +102,9 @@ class RobotClassClient(BaseClient):
|
|
97
102
|
cache_path.parent.mkdir(parents=True, exist_ok=True)
|
98
103
|
|
99
104
|
logger.info("Downloading URDF file from %s", response.url)
|
100
|
-
async with httpx.AsyncClient(
|
105
|
+
async with httpx.AsyncClient(
|
106
|
+
timeout=httpx.Timeout(DOWNLOAD_TIMEOUT),
|
107
|
+
) as client:
|
101
108
|
with open(cache_path, "wb") as file:
|
102
109
|
hash_value = hashlib.md5()
|
103
110
|
async with client.stream("GET", response.url) as r:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: kscale
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: The kscale project
|
5
5
|
Home-page: https://github.com/kscalelabs/kscale
|
6
6
|
Author: Benjamin Bolte
|
@@ -9,7 +9,6 @@ Description-Content-Type: text/markdown
|
|
9
9
|
License-File: LICENSE
|
10
10
|
Requires-Dist: omegaconf
|
11
11
|
Requires-Dist: email_validator
|
12
|
-
Requires-Dist: colorlogging
|
13
12
|
Requires-Dist: aiohttp
|
14
13
|
Requires-Dist: cryptography
|
15
14
|
Requires-Dist: httpx
|
@@ -19,6 +18,7 @@ Requires-Dist: requests
|
|
19
18
|
Requires-Dist: yarl
|
20
19
|
Requires-Dist: aiofiles
|
21
20
|
Requires-Dist: click
|
21
|
+
Requires-Dist: colorlogging
|
22
22
|
Requires-Dist: tabulate
|
23
23
|
Requires-Dist: async-lru
|
24
24
|
Requires-Dist: krec
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|