autoverse-cli 0.12.0__tar.gz → 0.12.2__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/PKG-INFO +1 -1
  2. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/pyproject.toml +1 -1
  3. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/autoverse_cli.egg-info/PKG-INFO +1 -1
  4. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/app_version.py +1 -1
  5. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/race_cloud.py +9 -4
  6. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/race_cloud_util.py +7 -1
  7. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/LICENSE +0 -0
  8. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/README.md +0 -0
  9. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/setup.cfg +0 -0
  10. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/autoverse_cli.egg-info/SOURCES.txt +0 -0
  11. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/autoverse_cli.egg-info/dependency_links.txt +0 -0
  12. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/autoverse_cli.egg-info/entry_points.txt +0 -0
  13. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/autoverse_cli.egg-info/requires.txt +0 -0
  14. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/autoverse_cli.egg-info/top_level.txt +0 -0
  15. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/__init__.py +0 -0
  16. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/argparse_help.py +0 -0
  17. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/avrs.py +0 -0
  18. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/can_tool.py +0 -0
  19. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/can_tool_util.py +0 -0
  20. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/cfg.py +0 -0
  21. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/launcher.py +0 -0
  22. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/launcher_util.py +0 -0
  23. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/race_cloud_cfg_util.py +0 -0
  24. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/change_camera.py +0 -0
  25. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/code_booz.py +0 -0
  26. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/demo.py +0 -0
  27. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/dump_sim_config.py +0 -0
  28. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/environment.py +0 -0
  29. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/fault_injection.py +0 -0
  30. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/get_object_config.py +0 -0
  31. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/list_sim_objects.py +0 -0
  32. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/log_path.py +0 -0
  33. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/misc.py +0 -0
  34. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/move_to_landmark.py +0 -0
  35. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/npc.py +0 -0
  36. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/request.py +0 -0
  37. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/reset_to_track.py +0 -0
  38. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/restart.py +0 -0
  39. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/scenario_control.py +0 -0
  40. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/spawn_object.py +0 -0
  41. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/teleport.py +0 -0
  42. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/toggle_hud.py +0 -0
  43. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/vd.py +0 -0
  44. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/vehicle_input.py +0 -0
  45. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/requests/vehicle_replay.py +0 -0
  46. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/simconfig.py +0 -0
  47. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/simconfig_util.py +0 -0
  48. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/tests.py +0 -0
  49. {autoverse_cli-0.12.0 → autoverse_cli-0.12.2}/src/avrs/util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: autoverse-cli
3
- Version: 0.12.0
3
+ Version: 0.12.2
4
4
  Summary: The Autoverse CLI
5
5
  Author-email: Dan Kamrath <dan.kamrath@autonomalabs.com>
6
6
  License: # End-User License Agreement (EULA) of the Autonoma AutoVerse CLI
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "autoverse-cli"
3
- version = "0.12.0"
3
+ version = "0.12.2"
4
4
  dependencies = [
5
5
  "boto3",
6
6
  "cantools"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: autoverse-cli
3
- Version: 0.12.0
3
+ Version: 0.12.2
4
4
  Summary: The Autoverse CLI
5
5
  Author-email: Dan Kamrath <dan.kamrath@autonomalabs.com>
6
6
  License: # End-User License Agreement (EULA) of the Autonoma AutoVerse CLI
@@ -2,7 +2,7 @@ import http.client
2
2
  import json
3
3
 
4
4
  def get_app_version():
5
- return '0.12.0'
5
+ return '0.12.2'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
@@ -38,6 +38,10 @@ class AvrsRaceCloud(AvrsApiRequest):
38
38
  '--no-check-cans',
39
39
  action='store_true',
40
40
  help='if set, vcan interfaces will not be checked for validity')
41
+ connect_parser.add_argument(
42
+ '--print-debug',
43
+ action='store_true',
44
+ help='if set, debug information will be printed')
41
45
  connect_parser.set_defaults(func=self.race_connect)
42
46
 
43
47
  rx_connect_parser = sps.add_parser(
@@ -156,7 +160,8 @@ class AvrsRaceCloud(AvrsApiRequest):
156
160
  print(rbody)
157
161
  return
158
162
 
159
- #print(rbody)
163
+ if args.print_debug:
164
+ print(rbody)
160
165
  #print(sim_ip)
161
166
 
162
167
  slot_info = {}
@@ -200,13 +205,13 @@ class AvrsRaceCloud(AvrsApiRequest):
200
205
  vcan_ok = True
201
206
  vcan_msg = ''
202
207
  if not check_vcan_exists(bsu_vcan):
203
- vcan_msg = 'bsu vcan {} does not appear to exist'.format()
208
+ vcan_msg = 'bsu vcan {} does not appear to exist'.format(bsu_vcan)
204
209
  vcan_ok = False
205
210
  if not check_vcan_exists(kistler_vcan):
206
- vcan_msg = 'kistler vcan {} does not appear to exist'.format()
211
+ vcan_msg = 'kistler vcan {} does not appear to exist'.format(kistler_vcan)
207
212
  vcan_ok = False
208
213
  if not check_vcan_exists(badenia_vcan):
209
- vcan_msg = 'badenia vcan {} does not appear to exist'.format()
214
+ vcan_msg = 'badenia vcan {} does not appear to exist'.format(badenia_vcan)
210
215
  vcan_ok = False
211
216
 
212
217
  if not vcan_ok:
@@ -113,6 +113,10 @@ CHECK_VCAN_EXISTS_SCRIPT = '''
113
113
  fi
114
114
  '''
115
115
 
116
+ GET_EC2_LOCAL_IP_SCRIPT = '''
117
+ echo -n $(ec2metadata --local-ipv4)
118
+ '''
119
+
116
120
  # kill a process with a given name
117
121
  def bash_kill_process(pname):
118
122
  return run_process(['bash', '-c',
@@ -181,7 +185,9 @@ def connect_peer_vcan(peer_id, peer_ip, vcan_id, vcan_name=''):
181
185
 
182
186
  def get_local_instance_ip():
183
187
  try:
184
- pres = run_process(['ec2metadata', '--local-ipv4'])
188
+ pres = run_process(['bash', '-c', GET_EC2_LOCAL_IP_SCRIPT])
189
+ if pres.out == '':
190
+ return '127.0.0.1'
185
191
  return pres.out
186
192
  except:
187
193
  return '127.0.0.1'
File without changes
File without changes
File without changes