eva-shell 0.2.26__tar.gz → 0.2.28__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
1
  Metadata-Version: 2.1
2
2
  Name: eva-shell
3
- Version: 0.2.26
3
+ Version: 0.2.28
4
4
  Summary: EVA ICS v4 shell
5
5
  Home-page: https://github.com/eva-ics/eva4
6
6
  Author: Bohemia Automation / Altertech
@@ -1,3 +1,3 @@
1
- __version__ = '0.2.26'
1
+ __version__ = '0.2.28'
2
2
 
3
3
  DEFAULT_REPOSITORY_URL = 'https://pub.bma.ai/eva4'
@@ -784,6 +784,10 @@ def append_item_cli(root_sp):
784
784
  help='fill (e.g. 1T - 1 min, 2H - 2 hours), requires start time,'
785
785
  ' value precision can be specified as e.g. 1T:2 '
786
786
  'for 2 digits after comma')
787
+ p.add_argument('--xopts',
788
+ metavar='NAME=VALUE',
789
+ help='Extra query options',
790
+ nargs='*')
787
791
 
788
792
  p = sp.add_parser('slog', help='item state log')
789
793
  p.add_argument('i', metavar='OID').completer = ComplOID()
@@ -1168,9 +1168,14 @@ class CLI:
1168
1168
  ])
1169
1169
 
1170
1170
  def item_history(self, i, db_svc, time_start, time_end, time_zone, limit,
1171
- prop, fill):
1171
+ prop, fill, xopts):
1172
1172
  time_start = prepare_time(time_start)
1173
1173
  time_end = prepare_time(time_end)
1174
+ xopts_map = {}
1175
+ if xopts:
1176
+ for x in xopts:
1177
+ n, v = x.split('=', 1)
1178
+ xopts_map[n] = v
1174
1179
  precs = None
1175
1180
  if fill is not None:
1176
1181
  if ':' in fill:
@@ -1183,7 +1188,8 @@ class CLI:
1183
1188
  fill=fill,
1184
1189
  precision=precs,
1185
1190
  prop=prop,
1186
- limit=limit),
1191
+ limit=limit,
1192
+ xopts=xopts_map),
1187
1193
  target=db_svc)
1188
1194
  cols = []
1189
1195
  if prop == 'status' or prop is None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eva-shell
3
- Version: 0.2.26
3
+ Version: 0.2.28
4
4
  Summary: EVA ICS v4 shell
5
5
  Home-page: https://github.com/eva-ics/eva4
6
6
  Author: Bohemia Automation / Altertech
@@ -1,4 +1,4 @@
1
- __version__ = '0.2.26'
1
+ __version__ = '0.2.28'
2
2
 
3
3
  import setuptools
4
4
 
File without changes
File without changes
File without changes
@@ -1,11 +1,11 @@
1
+ argcomplete>=2.0.0
1
2
  busrt>=0.1.0
2
3
  evaics>=0.0.32
3
- yedb[cli]>=0.2.25
4
- argcomplete>=2.0.0
5
- python-dateutil>=2.7.3
6
4
  neotermcolor>=2.0.10
7
- pyyaml>=6.0
5
+ pwinput>=1.0.2
8
6
  pygments>=2.11.2
7
+ python-dateutil>=2.7.3
9
8
  pytz>=2024.1
10
- pwinput>=1.0.2
9
+ pyyaml>=6.0
11
10
  tzlocal>=5.1
11
+ yedb[cli]>=0.2.25
File without changes