eva-shell 0.2.39__tar.gz → 0.2.41__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: eva-shell
3
- Version: 0.2.39
3
+ Version: 0.2.41
4
4
  Summary: EVA ICS v4 shell
5
5
  Home-page: https://github.com/eva-ics/eva4
6
6
  Author: Bohemia Automation / Altertech
@@ -22,5 +22,15 @@ Requires-Dist: pygments>=2.11.2
22
22
  Requires-Dist: pytz>=2024.1
23
23
  Requires-Dist: pwinput>=1.0.2
24
24
  Requires-Dist: tzlocal>=5.1
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: classifier
28
+ Dynamic: description
29
+ Dynamic: description-content-type
30
+ Dynamic: home-page
31
+ Dynamic: license
32
+ Dynamic: license-file
33
+ Dynamic: requires-dist
34
+ Dynamic: summary
25
35
 
26
36
  # EVA ICS v4 shell
@@ -1,3 +1,3 @@
1
- __version__ = '0.2.39'
1
+ __version__ = '0.2.41'
2
2
 
3
3
  DEFAULT_REPOSITORY_URL = 'https://pub.bma.ai/eva4'
@@ -1211,7 +1211,7 @@ def append_video_cli(root_sp):
1211
1211
  sp = ap.add_subparsers(dest='_subc2', help='sub command')
1212
1212
 
1213
1213
  p = sp.add_parser('create', help='create a video recording')
1214
- p.add_argument('i', metavar='source')
1214
+ p.add_argument('i', metavar='source').completer = ComplOIDtp('sensor')
1215
1215
  p.add_argument('--keep', type=float, help='Keep (seconds)')
1216
1216
  p.add_argument('--enabled', help='Enable recording', action='store_true')
1217
1217
  p.add_argument(
@@ -1228,7 +1228,7 @@ def append_video_cli(root_sp):
1228
1228
  default=DEFAULT_VIDEO_SERVICE).completer = ComplSvc('videosrv')
1229
1229
 
1230
1230
  p = sp.add_parser('edit', help='edit a video recording config')
1231
- p.add_argument('i', metavar='source')
1231
+ p.add_argument('i', metavar='source').completer = ComplOIDtp('sensor')
1232
1232
  p.add_argument(
1233
1233
  '-a',
1234
1234
  '--video-svc',
@@ -1236,7 +1236,7 @@ def append_video_cli(root_sp):
1236
1236
  default=DEFAULT_VIDEO_SERVICE).completer = ComplSvc('videosrv')
1237
1237
 
1238
1238
  p = sp.add_parser('enable', help='enable (start) a video recording')
1239
- p.add_argument('i', metavar='source')
1239
+ p.add_argument('i', metavar='source').completer = ComplOIDtp('sensor')
1240
1240
  p.add_argument(
1241
1241
  '-a',
1242
1242
  '--video-svc',
@@ -1244,7 +1244,7 @@ def append_video_cli(root_sp):
1244
1244
  default=DEFAULT_VIDEO_SERVICE).completer = ComplSvc('videosrv')
1245
1245
 
1246
1246
  p = sp.add_parser('disable', help='disable (stop) a video recording')
1247
- p.add_argument('i', metavar='source')
1247
+ p.add_argument('i', metavar='source').completer = ComplOIDtp('sensor')
1248
1248
  p.add_argument(
1249
1249
  '-a',
1250
1250
  '--video-svc',
@@ -1252,7 +1252,7 @@ def append_video_cli(root_sp):
1252
1252
  default=DEFAULT_VIDEO_SERVICE).completer = ComplSvc('videosrv')
1253
1253
 
1254
1254
  p = sp.add_parser('destroy', help='destroy a video recording')
1255
- p.add_argument('i', metavar='source')
1255
+ p.add_argument('i', metavar='source').completer = ComplOIDtp('sensor')
1256
1256
  p.add_argument(
1257
1257
  '-a',
1258
1258
  '--video-svc',
@@ -6,7 +6,7 @@ from functools import partial
6
6
  from collections import OrderedDict
7
7
 
8
8
  import busrt
9
- from evaics.sdk import pack, VideoFrame
9
+ from evaics.sdk import pack
10
10
  from neotermcolor import colored
11
11
  from rapidtables import format_table, FORMAT_GENERATOR, FORMAT_GENERATOR_COLS
12
12
 
@@ -1191,6 +1191,10 @@ class CLI:
1191
1191
  ])
1192
1192
 
1193
1193
  def item_stream_info(self, i):
1194
+ try:
1195
+ from evaics.sdk import VideoFrame
1196
+ except:
1197
+ raise RuntimeError('Requires EVA ICS Python SDK 0.2.35 or newer')
1194
1198
  data = call_rpc(
1195
1199
  'item.state',
1196
1200
  dict(i=i, include_binary_values=True),
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: eva-shell
3
- Version: 0.2.39
3
+ Version: 0.2.41
4
4
  Summary: EVA ICS v4 shell
5
5
  Home-page: https://github.com/eva-ics/eva4
6
6
  Author: Bohemia Automation / Altertech
@@ -22,5 +22,15 @@ Requires-Dist: pygments>=2.11.2
22
22
  Requires-Dist: pytz>=2024.1
23
23
  Requires-Dist: pwinput>=1.0.2
24
24
  Requires-Dist: tzlocal>=5.1
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: classifier
28
+ Dynamic: description
29
+ Dynamic: description-content-type
30
+ Dynamic: home-page
31
+ Dynamic: license
32
+ Dynamic: license-file
33
+ Dynamic: requires-dist
34
+ Dynamic: summary
25
35
 
26
36
  # EVA ICS v4 shell
@@ -1,4 +1,4 @@
1
- __version__ = '0.2.39'
1
+ __version__ = '0.2.41'
2
2
 
3
3
  import setuptools
4
4
 
File without changes
File without changes
File without changes
File without changes