bosdyn-orbit 4.0.0__py3-none-any.whl → 4.0.2__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.
bosdyn/orbit/client.py CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  """ The client uses a web API to send HTTPs requests to a number of REStful endpoints using the Requests library.
8
8
  """
9
- from collections.abc import Iterable
9
+ from typing import Dict, Iterable
10
10
 
11
11
  import requests
12
12
 
@@ -525,9 +525,9 @@ class Client():
525
525
  def post_calendar_event(self, nickname: str = None, time_ms: int = None, repeat_ms: int = None,
526
526
  mission_id: str = None, force_acquire_estop: bool = None,
527
527
  require_docked: bool = None, schedule_name: str = None,
528
- blackout_times: Iterable[dict[str:int]] = None,
529
- disable_reason: str = None, event_id: str = None,
530
- **kwargs) -> requests.Response:
528
+ blackout_times: Iterable[Dict[str,
529
+ int]] = None, disable_reason: str = None,
530
+ event_id: str = None, **kwargs) -> requests.Response:
531
531
  """ This function serves two purposes. It creates a new calendar event on using the following arguments
532
532
  when Event ID is not specified. When the Event ID associated with a pre-existing calendar event is specified,
533
533
  the function overwrites the attributes of the pre-existing calendar event.
bosdyn/orbit/utils.py CHANGED
@@ -14,6 +14,7 @@ import secrets
14
14
  import shutil
15
15
  import sys
16
16
  import time
17
+ from typing import Dict, List
17
18
 
18
19
  from bosdyn.orbit.exceptions import WebhookSignatureVerificationError
19
20
 
@@ -36,7 +37,7 @@ def get_api_token() -> str:
36
37
 
37
38
 
38
39
  def get_latest_created_at_for_run_events(client: 'bosdyn.orbit.client.Client',
39
- params: dict = {}) -> datetime.datetime:
40
+ params: Dict = {}) -> datetime.datetime:
40
41
  """ Given a dictionary of query params, returns the max created at time for run events
41
42
 
42
43
  Args:
@@ -59,7 +60,7 @@ def get_latest_created_at_for_run_events(client: 'bosdyn.orbit.client.Client',
59
60
 
60
61
 
61
62
  def get_latest_run_capture_resources(client: 'bosdyn.orbit.client.Client',
62
- params: dict = {}) -> list:
63
+ params: Dict = {}) -> List:
63
64
  """ Given a dictionary of query params, returns the latest run capture resources in json format
64
65
 
65
66
  Args:
@@ -78,7 +79,7 @@ def get_latest_run_capture_resources(client: 'bosdyn.orbit.client.Client',
78
79
 
79
80
 
80
81
  def get_latest_created_at_for_run_captures(client: 'bosdyn.orbit.client.Client',
81
- params: dict = {}) -> datetime.datetime:
82
+ params: Dict = {}) -> datetime.datetime:
82
83
  """ Given a dictionary of query params, returns the max created at time for run captures
83
84
 
84
85
  Args:
@@ -100,7 +101,7 @@ def get_latest_created_at_for_run_captures(client: 'bosdyn.orbit.client.Client',
100
101
  return datetime_from_isostring(latest_resource["resources"][0]["createdAt"])
101
102
 
102
103
 
103
- def get_latest_run_resource(client: 'bosdyn.orbit.client.Client', params: dict = {}) -> list:
104
+ def get_latest_run_resource(client: 'bosdyn.orbit.client.Client', params: Dict = {}) -> List:
104
105
  """ Given a dictionary of query params, returns the latest run resource in json format
105
106
 
106
107
  Args:
@@ -120,7 +121,7 @@ def get_latest_run_resource(client: 'bosdyn.orbit.client.Client', params: dict =
120
121
  return latest_run_json['resources'][0]
121
122
 
122
123
 
123
- def get_latest_run_in_progress(client: 'bosdyn.orbit.client.Client', params: dict = {}) -> list:
124
+ def get_latest_run_in_progress(client: 'bosdyn.orbit.client.Client', params: Dict = {}) -> List:
124
125
  """ Given a dictionary of query params, returns the latest running resource in json format
125
126
 
126
127
  Args:
@@ -144,7 +145,7 @@ def get_latest_run_in_progress(client: 'bosdyn.orbit.client.Client', params: dic
144
145
 
145
146
 
146
147
  def get_latest_end_time_for_runs(client: 'bosdyn.orbit.client.Client',
147
- params: dict = {}) -> datetime.datetime:
148
+ params: Dict = {}) -> datetime.datetime:
148
149
  """ Given a dictionary of query params, returns the max end time for runs
149
150
 
150
151
  Args:
@@ -180,8 +181,8 @@ def write_image(img_raw, image_fp: str) -> None:
180
181
  shutil.copyfileobj(img_raw, out_file)
181
182
 
182
183
 
183
- def data_capture_urls_from_run_events(client: 'bosdyn.orbit.client.Client', run_events: list,
184
- list_of_channel_names: list = None) -> list:
184
+ def data_capture_urls_from_run_events(client: 'bosdyn.orbit.client.Client', run_events: List,
185
+ list_of_channel_names: List = None) -> List:
185
186
  """ Given run events and list of desired channel names, returns the list of data capture urls
186
187
 
187
188
  Args:
@@ -209,8 +210,8 @@ def data_capture_urls_from_run_events(client: 'bosdyn.orbit.client.Client', run_
209
210
 
210
211
 
211
212
  def data_capture_url_from_run_capture_resources(client: 'bosdyn.orbit.client.Client',
212
- run_capture_resources: list,
213
- list_of_channel_names: list = None) -> list:
213
+ run_capture_resources: List,
214
+ list_of_channel_names: List = None) -> List:
214
215
  """ Given run capture resources and list of desired channel names, returns the list of data capture urls
215
216
 
216
217
  Args:
@@ -234,7 +235,7 @@ def data_capture_url_from_run_capture_resources(client: 'bosdyn.orbit.client.Cli
234
235
  return data_urls
235
236
 
236
237
 
237
- def get_action_names_from_run_events(run_events: dict) -> list:
238
+ def get_action_names_from_run_events(run_events: Dict) -> List:
238
239
  """ Given run events, returns a list of action names
239
240
 
240
241
  Args:
@@ -264,7 +265,7 @@ def datetime_from_isostring(datetime_isostring: str) -> datetime.datetime:
264
265
  "%Y-%m-%dT%H:%M:%S.%f")
265
266
 
266
267
 
267
- def validate_webhook_payload(payload: dict, signature_header: str, secret: str,
268
+ def validate_webhook_payload(payload: Dict, signature_header: str, secret: str,
268
269
  max_age_ms: int = DEFAULT_MAX_MESSAGE_AGE_MS) -> None:
269
270
  """ Verifies that the webhook payload came from
270
271
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bosdyn-orbit
3
- Version: 4.0.0
3
+ Version: 4.0.2
4
4
  Summary: Boston Dynamics API Orbit Client
5
5
  Home-page: https://dev.bostondynamics.com/docs/orbit/
6
6
  Author: Boston Dynamics
@@ -0,0 +1,9 @@
1
+ bosdyn/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I0s,330
2
+ bosdyn/orbit/__init__.py,sha256=L_VSEXjtWZNHVHs3Jdr_TF2pJ2ju2yysAi0-YZsbJoU,266
3
+ bosdyn/orbit/client.py,sha256=7WoQodp9bgIiyB2o7bmqd9snj6ny5rfYPnUJuj0B-qA,40131
4
+ bosdyn/orbit/exceptions.py,sha256=eaeHSlGh27JlZUEjcpLKxR1CNdW6Twp4e685pUgEjyQ,711
5
+ bosdyn/orbit/utils.py,sha256=i9nEEpdceD3HecLQKw7jQGQ5qR7bNWwMrcsxVpt4TJ4,13666
6
+ bosdyn_orbit-4.0.2.dist-info/METADATA,sha256=D67foMlISF1YFDIArtpTRv6uwRF4KD0a-jlPWQ8N7PU,1894
7
+ bosdyn_orbit-4.0.2.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
8
+ bosdyn_orbit-4.0.2.dist-info/top_level.txt,sha256=an2OWgx1ej2jFjmBjPWNQ68ZglvUfKhmXWW-WhTtDmA,7
9
+ bosdyn_orbit-4.0.2.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- bosdyn/__init__.py,sha256=CMQioQKK1NlMk3kZuY49b_Aw-JyvDeOtuqOCAul1I0s,330
2
- bosdyn/orbit/__init__.py,sha256=L_VSEXjtWZNHVHs3Jdr_TF2pJ2ju2yysAi0-YZsbJoU,266
3
- bosdyn/orbit/client.py,sha256=6aY_il9mPt8IjYdWwPFWBdyxrxaNv1z3KJDxeX-B9kw,40103
4
- bosdyn/orbit/exceptions.py,sha256=eaeHSlGh27JlZUEjcpLKxR1CNdW6Twp4e685pUgEjyQ,711
5
- bosdyn/orbit/utils.py,sha256=Ryz0oHIud5n433JDuiyLLUjOS89wWcMbOu45b4ISVMw,13636
6
- bosdyn_orbit-4.0.0.dist-info/METADATA,sha256=5zpzRF8QV-OkBQWIoNI0-1Y2gV0p-wNk47rCxuBcVwY,1894
7
- bosdyn_orbit-4.0.0.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
8
- bosdyn_orbit-4.0.0.dist-info/top_level.txt,sha256=an2OWgx1ej2jFjmBjPWNQ68ZglvUfKhmXWW-WhTtDmA,7
9
- bosdyn_orbit-4.0.0.dist-info/RECORD,,