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.
Files changed (45) hide show
  1. {kscale-0.1.0/kscale.egg-info → kscale-0.1.1}/PKG-INFO +2 -2
  2. {kscale-0.1.0 → kscale-0.1.1}/kscale/__init__.py +1 -1
  3. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/robot_class.py +9 -2
  4. {kscale-0.1.0 → kscale-0.1.1/kscale.egg-info}/PKG-INFO +2 -2
  5. {kscale-0.1.0 → kscale-0.1.1}/LICENSE +0 -0
  6. {kscale-0.1.0 → kscale-0.1.1}/MANIFEST.in +0 -0
  7. {kscale-0.1.0 → kscale-0.1.1}/README.md +0 -0
  8. {kscale-0.1.0 → kscale-0.1.1}/kscale/api.py +0 -0
  9. {kscale-0.1.0 → kscale-0.1.1}/kscale/artifacts/__init__.py +0 -0
  10. {kscale-0.1.0 → kscale-0.1.1}/kscale/artifacts/plane.obj +0 -0
  11. {kscale-0.1.0 → kscale-0.1.1}/kscale/artifacts/plane.urdf +0 -0
  12. {kscale-0.1.0 → kscale-0.1.1}/kscale/cli.py +0 -0
  13. {kscale-0.1.0 → kscale-0.1.1}/kscale/conf.py +0 -0
  14. {kscale-0.1.0 → kscale-0.1.1}/kscale/py.typed +0 -0
  15. {kscale-0.1.0 → kscale-0.1.1}/kscale/requirements-dev.txt +0 -0
  16. {kscale-0.1.0 → kscale-0.1.1}/kscale/requirements.txt +1 -1
  17. {kscale-0.1.0 → kscale-0.1.1}/kscale/utils/__init__.py +0 -0
  18. {kscale-0.1.0 → kscale-0.1.1}/kscale/utils/api_base.py +0 -0
  19. {kscale-0.1.0 → kscale-0.1.1}/kscale/utils/checksum.py +0 -0
  20. {kscale-0.1.0 → kscale-0.1.1}/kscale/utils/cli.py +0 -0
  21. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/__init__.py +0 -0
  22. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/api.py +0 -0
  23. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/__init__.py +0 -0
  24. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/robot.py +0 -0
  25. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/robot_class.py +0 -0
  26. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/token.py +0 -0
  27. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/cli/user.py +0 -0
  28. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/__init__.py +0 -0
  29. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/base.py +0 -0
  30. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/client.py +0 -0
  31. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/robot.py +0 -0
  32. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/clients/user.py +0 -0
  33. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/gen/__init__.py +0 -0
  34. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/gen/api.py +0 -0
  35. {kscale-0.1.0 → kscale-0.1.1}/kscale/web/utils.py +0 -0
  36. {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/SOURCES.txt +0 -0
  37. {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/dependency_links.txt +0 -0
  38. {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/entry_points.txt +0 -0
  39. {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/not-zip-safe +0 -0
  40. {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/requires.txt +1 -1
  41. {kscale-0.1.0 → kscale-0.1.1}/kscale.egg-info/top_level.txt +0 -0
  42. {kscale-0.1.0 → kscale-0.1.1}/pyproject.toml +0 -0
  43. {kscale-0.1.0 → kscale-0.1.1}/setup.cfg +0 -0
  44. {kscale-0.1.0 → kscale-0.1.1}/setup.py +0 -0
  45. {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.0
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
@@ -1,6 +1,6 @@
1
1
  """Defines the common interface for the K-Scale Python API."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.1.1"
4
4
 
5
5
  from pathlib import Path
6
6
 
@@ -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() as client:
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() as client:
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.0
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
@@ -3,7 +3,6 @@
3
3
  # Configuration
4
4
  omegaconf
5
5
  email_validator
6
- colorlogging
7
6
 
8
7
  # HTTP requests
9
8
  aiohttp
@@ -17,6 +16,7 @@ yarl
17
16
  # CLI
18
17
  aiofiles
19
18
  click
19
+ colorlogging
20
20
  tabulate
21
21
 
22
22
  # Async
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
@@ -1,6 +1,5 @@
1
1
  omegaconf
2
2
  email_validator
3
- colorlogging
4
3
  aiohttp
5
4
  cryptography
6
5
  httpx
@@ -10,6 +9,7 @@ requests
10
9
  yarl
11
10
  aiofiles
12
11
  click
12
+ colorlogging
13
13
  tabulate
14
14
  async-lru
15
15
  krec
File without changes
File without changes
File without changes
File without changes