standardbots 2.20241120.1__py3-none-any.whl → 2.20250128.1__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.

Potentially problematic release.


This version of standardbots might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: standardbots
3
- Version: 2.20241120.1
3
+ Version: 2.20250128.1
4
4
  Summary: Standard Bots RO1 Robotics API
5
5
  Home-page:
6
6
  Author: Standard Bots Support
@@ -10,6 +10,13 @@ Requires-Python: >=3.7
10
10
  Requires-Dist: setuptools>=21.0.0
11
11
  Requires-Dist: typing_extensions>=4.3.0
12
12
  Requires-Dist: urllib3>=1.26.7
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: description
16
+ Dynamic: keywords
17
+ Dynamic: requires-dist
18
+ Dynamic: requires-python
19
+ Dynamic: summary
13
20
 
14
21
  Standard Bots RO1 Robotics API. # noqa: E501
15
22
 
@@ -0,0 +1,11 @@
1
+ standardbots/__init__.py,sha256=PT6Z2HPama2fb6SaNhF3J1skpYABQWGgDzKEtQY6BDM,29
2
+ standardbots/auto_generated/__init__.py,sha256=PZtDUzYcjIO6R-gE-0NzY0vFXk1Je1tJ3je0ivV5o-k,98
3
+ standardbots/auto_generated/apis.py,sha256=6bcnOPP9QsufGVUsNJ_Aqb8-wRYIi06NDO06T5Pionk,93199
4
+ standardbots/auto_generated/models.py,sha256=YcCOhhIQMQ8UQSX0DQc429dlC5ZiB7f7kh6MZ4Ju3Vo,274674
5
+ tests/fixtures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ tests/fixtures/client_fixt.py,sha256=Va_L90iYIYPguyqr2eYE15ERkCgGgbee3AVLei8TCq4,644
7
+ tests/fixtures/routines_fixt.py,sha256=CpdwndlSDmwFCxzCXicIAeFT2CO2VQqFm_6gVAF385c,1326
8
+ standardbots-2.20250128.1.dist-info/METADATA,sha256=8gGN6Ub7FMPUwlfomUlPl1iXj_9NU_jJWPwNbJAAFZo,551
9
+ standardbots-2.20250128.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
10
+ standardbots-2.20250128.1.dist-info/top_level.txt,sha256=eHgNxowGe-eEE7gOyeuwXN3bHLClu-TQ1VnsOOzzTkw,19
11
+ standardbots-2.20250128.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
File without changes
@@ -0,0 +1,25 @@
1
+ """Fixtures: API Clients"""
2
+
3
+ import os
4
+
5
+ import pytest
6
+ from standardbots import StandardBotsRobot
7
+ from standardbots.auto_generated.apis import RobotKind
8
+
9
+
10
+ @pytest.fixture(scope="session")
11
+ def client_live(api_url: str, api_token: str):
12
+ """StandardBotsRobot API client - Live mode"""
13
+ return StandardBotsRobot(
14
+ url=api_url,
15
+ token=api_token,
16
+ robot_kind=RobotKind.Live,
17
+ )
18
+
19
+
20
+ @pytest.fixture(scope="session")
21
+ def client_sim(api_url: str, api_token: str):
22
+ """StandardBotsRobot API client - Simulated mode"""
23
+ return StandardBotsRobot(
24
+ url=api_url, token=api_token, robot_kind=RobotKind.Simulated
25
+ )
@@ -0,0 +1,48 @@
1
+ """Fixtures: Routines"""
2
+
3
+ import pytest
4
+ from standardbots import StandardBotsRobot
5
+ from standardbots.auto_generated import models
6
+
7
+ SAMPLE_ROUTINE_NAME = "Test Public API"
8
+
9
+
10
+ @pytest.fixture(scope="session")
11
+ def routine_sample(client_live: StandardBotsRobot) -> models.Routine:
12
+ """Fixture: Get a sample routine.
13
+
14
+ Relies on `StandardBotsRobot#routine_editor#routines#list`
15
+ """
16
+ limit = 100
17
+ offset = 0
18
+ i = 0
19
+ while i < 100:
20
+ try:
21
+ with client_live.connection():
22
+ res = client_live.routine_editor.routines.list(
23
+ limit=limit, offset=offset
24
+ )
25
+
26
+ data = res.ok()
27
+ except Exception as e:
28
+ raise ValueError("Failed to fetch a sample routine.") from e
29
+
30
+ if len(data.items) == 0:
31
+ break
32
+
33
+ routines = [r for r in data.items if r.name == SAMPLE_ROUTINE_NAME]
34
+ if len(routines) != 0:
35
+ return routines[0]
36
+
37
+ offset += limit
38
+ i += 1
39
+
40
+ raise ValueError(
41
+ f"Failed to find a routine named '{SAMPLE_ROUTINE_NAME}'. Please create a routine with this name in order to continue testing."
42
+ )
43
+
44
+
45
+ @pytest.fixture(scope="session")
46
+ def routine_sample_id(routine_sample: models.Routine) -> str:
47
+ """Fixture: ID of sample routine"""
48
+ return routine_sample.id
@@ -1,8 +0,0 @@
1
- standardbots/__init__.py,sha256=PT6Z2HPama2fb6SaNhF3J1skpYABQWGgDzKEtQY6BDM,29
2
- standardbots/auto_generated/__init__.py,sha256=PZtDUzYcjIO6R-gE-0NzY0vFXk1Je1tJ3je0ivV5o-k,98
3
- standardbots/auto_generated/apis.py,sha256=mKYO66ZFWbqJcC99_sKBqgo_biWbJmGj4TPqYQB3K7M,89516
4
- standardbots/auto_generated/models.py,sha256=r6wLdXw54wcLvoFDqNVXhcFyNr9is01-K7PEoFsVvQE,208192
5
- standardbots-2.20241120.1.dist-info/METADATA,sha256=mRq1VZcoMWsa0IglY_CqCIolvH-B68EKkhKpX4DaUEU,409
6
- standardbots-2.20241120.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
7
- standardbots-2.20241120.1.dist-info/top_level.txt,sha256=8Cb2uu5PLn7ayueFHSdWnFlKJzvSezDEKTHiup_bxH0,13
8
- standardbots-2.20241120.1.dist-info/RECORD,,