yamcs-cli 1.4.13__py3-none-any.whl → 1.4.15__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.
- yamcs/cli/__main__.py +7 -3
- yamcs/cli/packets.py +7 -0
- yamcs/cli/utils.py +2 -3
- {yamcs_cli-1.4.13.dist-info → yamcs_cli-1.4.15.dist-info}/METADATA +16 -3
- {yamcs_cli-1.4.13.dist-info → yamcs_cli-1.4.15.dist-info}/RECORD +9 -9
- {yamcs_cli-1.4.13.dist-info → yamcs_cli-1.4.15.dist-info}/WHEEL +1 -1
- {yamcs_cli-1.4.13.dist-info → yamcs_cli-1.4.15.dist-info}/entry_points.txt +0 -0
- {yamcs_cli-1.4.13.dist-info → yamcs_cli-1.4.15.dist-info/licenses}/LICENSE +0 -0
- {yamcs_cli-1.4.13.dist-info → yamcs_cli-1.4.15.dist-info}/top_level.txt +0 -0
yamcs/cli/__main__.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import argparse
|
|
2
2
|
import sys
|
|
3
3
|
import traceback
|
|
4
|
+
from importlib.metadata import entry_points
|
|
4
5
|
|
|
5
6
|
import argcomplete
|
|
6
|
-
import pkg_resources
|
|
7
7
|
from yamcs.client import Unauthorized
|
|
8
8
|
|
|
9
9
|
from yamcs.cli import utils
|
|
@@ -95,8 +95,12 @@ def main():
|
|
|
95
95
|
TablesCommand(subparsers)
|
|
96
96
|
|
|
97
97
|
# Discover subcommand plugins
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
try:
|
|
99
|
+
eps = entry_points(group="yamcs.cli.subcommands")
|
|
100
|
+
except TypeError: # < Python 3.10
|
|
101
|
+
eps = entry_points().get("yamcs.cli.subcommands", [])
|
|
102
|
+
for entry in eps:
|
|
103
|
+
subcommand_cls = entry.load()
|
|
100
104
|
subcommand_cls(subparsers)
|
|
101
105
|
|
|
102
106
|
# Provide bash autocompletion
|
yamcs/cli/packets.py
CHANGED
|
@@ -41,6 +41,12 @@ class PacketsCommand(utils.Command):
|
|
|
41
41
|
type=str,
|
|
42
42
|
help="Include packets not newer than the specified date",
|
|
43
43
|
)
|
|
44
|
+
subparser.add_argument(
|
|
45
|
+
"--filter",
|
|
46
|
+
metavar="EXPRESSION",
|
|
47
|
+
type=str,
|
|
48
|
+
help="Apply a filter expression to each packet",
|
|
49
|
+
)
|
|
44
50
|
subparser.set_defaults(func=self.log)
|
|
45
51
|
|
|
46
52
|
subparser = self.create_subparser(
|
|
@@ -93,6 +99,7 @@ class PacketsCommand(utils.Command):
|
|
|
93
99
|
|
|
94
100
|
iterator = archive.list_packets(
|
|
95
101
|
name=args.packet,
|
|
102
|
+
filter=args.filter,
|
|
96
103
|
descending=most_recent_only,
|
|
97
104
|
start=start,
|
|
98
105
|
stop=stop,
|
yamcs/cli/utils.py
CHANGED
|
@@ -4,9 +4,9 @@ import os
|
|
|
4
4
|
import sys
|
|
5
5
|
from configparser import ConfigParser
|
|
6
6
|
from datetime import datetime, timedelta, timezone
|
|
7
|
+
from importlib.metadata import version
|
|
7
8
|
from typing import Any, List
|
|
8
9
|
|
|
9
|
-
import pkg_resources
|
|
10
10
|
from dateutil import parser
|
|
11
11
|
from yamcs.client import Credentials, parse_server_timestring, to_isostring
|
|
12
12
|
|
|
@@ -19,8 +19,7 @@ CREDENTIALS_FILE = os.path.join(CONFIG_DIR, "credentials")
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
def get_user_agent():
|
|
22
|
-
|
|
23
|
-
return "Yamcs CLI v" + dist.version
|
|
22
|
+
return "Yamcs CLI v" + version("yamcs-cli")
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
def read_config():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: yamcs-cli
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.15
|
|
4
4
|
Summary: Yamcs Command-Line Tools
|
|
5
5
|
Home-page: https://github.com/yamcs/yamcs-cli
|
|
6
6
|
Author: Space Applications Services
|
|
@@ -26,9 +26,22 @@ Description-Content-Type: text/markdown
|
|
|
26
26
|
License-File: LICENSE
|
|
27
27
|
Requires-Dist: argcomplete
|
|
28
28
|
Requires-Dist: python-dateutil
|
|
29
|
-
Requires-Dist: yamcs-client>=1.
|
|
29
|
+
Requires-Dist: yamcs-client>=1.12.1
|
|
30
30
|
Provides-Extra: kerberos
|
|
31
31
|
Requires-Dist: yamcs-client-kerberos>=1.3.0; extra == "kerberos"
|
|
32
|
+
Dynamic: author
|
|
33
|
+
Dynamic: author-email
|
|
34
|
+
Dynamic: classifier
|
|
35
|
+
Dynamic: description
|
|
36
|
+
Dynamic: description-content-type
|
|
37
|
+
Dynamic: home-page
|
|
38
|
+
Dynamic: license
|
|
39
|
+
Dynamic: license-file
|
|
40
|
+
Dynamic: platform
|
|
41
|
+
Dynamic: provides-extra
|
|
42
|
+
Dynamic: requires-dist
|
|
43
|
+
Dynamic: requires-python
|
|
44
|
+
Dynamic: summary
|
|
32
45
|
|
|
33
46
|
# Command-Line Interface
|
|
34
47
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
yamcs/cli/__main__.py,sha256=
|
|
1
|
+
yamcs/cli/__main__.py,sha256=GiDQy_LTHUdc6sNoWNDw90jS8qCjPCWr2Aq5hPDS3_E,4356
|
|
2
2
|
yamcs/cli/alarms.py,sha256=cHLwveHqvpnLHddktGA5LCyOt9FRljcwid9Q7TYd5FI,7126
|
|
3
3
|
yamcs/cli/algorithms.py,sha256=Oqw0tiIv_mmK7smPYIdI00uUfM2KxHMbrySGi8Ywlcc,1622
|
|
4
4
|
yamcs/cli/bash_completion.sh,sha256=sQOPhbykD68uMYkcWudqJNJKuSQh2Blzozt2kkawRo4,1032
|
|
@@ -13,7 +13,7 @@ yamcs/cli/instances.py,sha256=RBfHQUGZB4hU_MGdhPmZgzO_WkA2Sj54KpxT7BSyLeQ,2119
|
|
|
13
13
|
yamcs/cli/links.py,sha256=RmdeYLqC1agtORso2T8MUcgp3f-zJKIfeb0UsupsXzc,3330
|
|
14
14
|
yamcs/cli/login.py,sha256=VAIE--YGiCTwf8D79L3dHKKtTlmdSFcgkUcR37CwVzY,4969
|
|
15
15
|
yamcs/cli/logout.py,sha256=XgIdxuAUHQ5VbPP6sZwN88cAvWQEm7GBPfvYj6vn9Rg,562
|
|
16
|
-
yamcs/cli/packets.py,sha256=
|
|
16
|
+
yamcs/cli/packets.py,sha256=am8CZxJWpqsWtA3wqSBuD3xck8uv0dYkAYfdwnfimOM,4860
|
|
17
17
|
yamcs/cli/parameter_archive.py,sha256=KWdrtHXygGJNPhbAyHK5itxBAl1YqAwgQnkoDsd_5c4,3999
|
|
18
18
|
yamcs/cli/parameters.py,sha256=ZDOfLly5gzKoUvfvg9vbDLMh_NYnh3mBi95n_sZCjSY,6012
|
|
19
19
|
yamcs/cli/processors.py,sha256=9BJlQywmq6x_ea3tWT66dB2wBry9divqWhG3VWKM6Nw,1988
|
|
@@ -23,7 +23,7 @@ yamcs/cli/space_systems.py,sha256=hsjDzRNZLlUSlBuO-WJGyUXmIpoQYk0n84sgQ4y8wEA,22
|
|
|
23
23
|
yamcs/cli/storage.py,sha256=Ynqz5kIIqcPLTgfPJsnQ6dubOaqqE5_CmVOo0MzTnAQ,9771
|
|
24
24
|
yamcs/cli/streams.py,sha256=RvB4OuqU0CiY_XAn356JiSlaO_AgIXEbHN1VRaHul64,2392
|
|
25
25
|
yamcs/cli/tables.py,sha256=7my4-oDD1270qO1s7zgKZ9vH92HtDMOlePbmFv5-2O0,8795
|
|
26
|
-
yamcs/cli/utils.py,sha256=
|
|
26
|
+
yamcs/cli/utils.py,sha256=MoefwXFjfYjYGHHrs_eHH23D1_pbvt8By7kBxb-RKaI,7733
|
|
27
27
|
yamcs/cli/protobuf/activities_pb2.py,sha256=8V42hiw99laYl0pAMISd-B_PY6LAuXMkAeMOXwjyX88,2741
|
|
28
28
|
yamcs/cli/protobuf/cmdhistory_pb2.py,sha256=8WK--s8OO9dCbDur86MraQXoMvJq-kU1ZMOHAJ4PvuI,4198
|
|
29
29
|
yamcs/cli/protobuf/db_pb2.py,sha256=ObnWfpZZDoCCHQcBH7GRGRjXfnKgu8bKnw5fOZMo_e0,15789
|
|
@@ -31,9 +31,9 @@ yamcs/cli/protobuf/replication_pb2.py,sha256=0YzH8bVPi2DNmHcgxyv9m_XuhYnH83U0O6k
|
|
|
31
31
|
yamcs/cli/protobuf/security_pb2.py,sha256=SbVHS7ghG_JDbZ_35p8GwVnV-3HuwNOGAWRVhFoWbPE,21569
|
|
32
32
|
yamcs/cli/protobuf/tablespace_pb2.py,sha256=DLYPDKOgLm1xeZAT5F7WMLaGQJM_npeYfpZAFMSM6OU,37008
|
|
33
33
|
yamcs/cli/protobuf/timeline_pb2.py,sha256=JUl7sGOYMS8IP6h0hCOCrQz8BaBtvxjf6lY7cpDYcfg,5004
|
|
34
|
-
yamcs_cli-1.4.
|
|
35
|
-
yamcs_cli-1.4.
|
|
36
|
-
yamcs_cli-1.4.
|
|
37
|
-
yamcs_cli-1.4.
|
|
38
|
-
yamcs_cli-1.4.
|
|
39
|
-
yamcs_cli-1.4.
|
|
34
|
+
yamcs_cli-1.4.15.dist-info/licenses/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
|
|
35
|
+
yamcs_cli-1.4.15.dist-info/METADATA,sha256=qW6I5UpXfZvRpNJvwxtdcuvu5-XG9Jhoypuhw9AkpaM,1695
|
|
36
|
+
yamcs_cli-1.4.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
37
|
+
yamcs_cli-1.4.15.dist-info/entry_points.txt,sha256=M6Juk3MbdDMR1v3htR2aHEebitGHW-E3ujHmYQLwEas,50
|
|
38
|
+
yamcs_cli-1.4.15.dist-info/top_level.txt,sha256=EsFTpWxnHBl6f_5Wf-CrENGPSoY7xP4T-JpgBMwsk8Q,6
|
|
39
|
+
yamcs_cli-1.4.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|