autoverse-cli 0.13.5__py3-none-any.whl → 0.13.7__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: autoverse-cli
3
- Version: 0.13.5
3
+ Version: 0.13.7
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,5 +1,5 @@
1
1
  avrs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- avrs/app_version.py,sha256=KRpVynqUUEfYbgEAxTnWaxS9WbQ51OGC_DUyuv7sk20,856
2
+ avrs/app_version.py,sha256=h8MItbW5jOROvwni7U6mrSm5flal0pll83-5X9BmHGs,856
3
3
  avrs/argparse_help.py,sha256=EoEaohGXZXqJvs1dFEzbo9vh47CYdHdSY2Im2Ps2iFo,945
4
4
  avrs/avrs.py,sha256=bGF35a72MZU41OVWnFHmchqmgKXBKh9djokzGA_4pL4,4621
5
5
  avrs/can_tool.py,sha256=IBoctKobBJ3wCq4ZdtuXuXH4AMEUxazCfYT6YP0Luw8,7161
@@ -7,9 +7,9 @@ avrs/can_tool_util.py,sha256=G3q21dTGMLc09SDq_RieoW7kSn-kXPkXxPDjavPh4hQ,7710
7
7
  avrs/cfg.py,sha256=kMn08Z4Ms1PAu2-U1QI8weEJeIVEppP4A4_tFfwnjtg,2924
8
8
  avrs/launcher.py,sha256=kk1lyHHLgFZ4zsFfa_zV5f1kYbUODT6wEILJ8TZ16rQ,9353
9
9
  avrs/launcher_util.py,sha256=sO3k_z3A-HIQdJVkVXNXUAE_MGFwAYiZUqQBoFwOqew,5325
10
- avrs/race_cloud.py,sha256=KOfa-fJefKoaaxPC74nvPXBj03XbrDsSaQo7bLuudj4,15196
10
+ avrs/race_cloud.py,sha256=mhdypRJsI2ty4BD9hsE6jWuWOsiifkLrqJ5EG3BVTJ4,15314
11
11
  avrs/race_cloud_cfg_util.py,sha256=gcHyUY0m5zc_9zZatKLaSIC_oFGc-6Vs8UlcX5yry9o,5158
12
- avrs/race_cloud_fwd_api.py,sha256=vwzGK1bq3th5tU3drTI46dr3f15Uv2N5BgGZDBShWcQ,1415
12
+ avrs/race_cloud_fwd_api.py,sha256=HuLE5kfmzVq08aP3tlEh3f8WNjGL5N3K5EbXg9uQomo,1506
13
13
  avrs/race_cloud_util.py,sha256=ltp3_mPRV7TpdX0ZlcNQP0qzEq-l0l_mEAdCB4YZAU4,10187
14
14
  avrs/simconfig.py,sha256=UZc4FrxVHUkk2e9IglSpuojXkaL_nPrJW7trbEGgOOo,2907
15
15
  avrs/simconfig_util.py,sha256=1RmnmhK5C4HlCicTQeqn-1ORz3Xrku_QMt1Fqr9XjZs,4839
@@ -37,9 +37,9 @@ avrs/requests/toggle_hud.py,sha256=sV5t5QZc4uvRihPVk8jEKZiQNsyF9tsUwq5b4jjZplc,3
37
37
  avrs/requests/vd.py,sha256=at6oUAGY2h0OxYU6MLOi1gnxyUn6i24vL9DUAj0L880,1600
38
38
  avrs/requests/vehicle_input.py,sha256=R1b1xkRtOBkwyU6OSN4bWVlYsIUroZG0WKbYbc4pEH8,729
39
39
  avrs/requests/vehicle_replay.py,sha256=nCAE21VNyKoeIjjXBGAihgOLO7zYHcu-HWvPZYxdQ2c,11099
40
- autoverse_cli-0.13.5.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
41
- autoverse_cli-0.13.5.dist-info/METADATA,sha256=xvhXfOGNxK8Yvz4JhCZuiXmydwSd0i4lNz5wfISkoYU,3342
42
- autoverse_cli-0.13.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
43
- autoverse_cli-0.13.5.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
44
- autoverse_cli-0.13.5.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
45
- autoverse_cli-0.13.5.dist-info/RECORD,,
40
+ autoverse_cli-0.13.7.dist-info/LICENSE,sha256=d4eWXho-u18HkBsX4K21uHX_bBb2UXZSrJdsb7Z_JlM,2647
41
+ autoverse_cli-0.13.7.dist-info/METADATA,sha256=RwCeOaohgki2iMH9389QE8VSV0Cxa3N8DilUPUTyT5w,3342
42
+ autoverse_cli-0.13.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
43
+ autoverse_cli-0.13.7.dist-info/entry_points.txt,sha256=Cb9qsUyU5AKkklehCcvtfT0-N3SXbUEqvjze4iEU5kE,40
44
+ autoverse_cli-0.13.7.dist-info/top_level.txt,sha256=-AJO2e4MCVej6hY0U84pu5NfMeMW5qaAPSMisDT5rmA,5
45
+ autoverse_cli-0.13.7.dist-info/RECORD,,
avrs/app_version.py CHANGED
@@ -2,7 +2,7 @@ import http.client
2
2
  import json
3
3
 
4
4
  def get_app_version():
5
- return '0.13.5'
5
+ return '0.13.7'
6
6
 
7
7
  def check_app_is_latest():
8
8
  pass
avrs/race_cloud.py CHANGED
@@ -291,7 +291,7 @@ class AvrsRaceCloud(AvrsApiRequest):
291
291
  # stop it if its already running
292
292
  stop_result = stop_fwd_api()
293
293
  logger.info('stopped fwd-api: {}'.format(stop_result))
294
- start_result = start_fwd_api(args.source_port, args.target_port)
294
+ start_result = start_fwd_api(30333, 30313)
295
295
  logger.info('started fwd-api: {}'.format(start_result))
296
296
 
297
297
 
@@ -377,10 +377,13 @@ class AvrsRaceCloud(AvrsApiRequest):
377
377
  # call the cli so that it starts the forwarding server in the background
378
378
 
379
379
  # stop it if its already running
380
- stop_result = stop_fwd_api()
381
- logger.info('stopped fwd-api: {}'.format(stop_result))
382
- start_result = start_fwd_api(args.source_port, args.target_port)
383
- logger.info('started fwd-api: {}'.format(start_result))
380
+ try:
381
+ stop_result = stop_fwd_api()
382
+ logger.info('stopped fwd-api: {}'.format(stop_result))
383
+ start_result = start_fwd_api(args.source_port, args.target_port)
384
+ logger.info('started fwd-api: {}'.format(start_result))
385
+ except Exception as e:
386
+ logger.error('failed to restart fwd-api: {}'.format(e))
384
387
 
385
388
  else:
386
389
  logger.info('starting fwd-api in forground')
@@ -22,8 +22,10 @@ class ApiForwardHandler(BaseHTTPRequestHandler):
22
22
  length = int(self.headers.get('content-length'))
23
23
  rfile_str = self.rfile.read(length).decode('utf8')
24
24
  sim_response = self.get_fwd_response(rfile_str)
25
- self.wfile.write(data.encode(sim_response))
26
25
  self.send_response(HTTPStatus.OK)
26
+ self.send_header("Content-Type", "application/json")
27
+ self.end_headers()
28
+ self.wfile.write(sim_response.encode('utf-8'))
27
29
  self.end_headers()
28
30
 
29
31
  def get_fwd_response(self, body):