meshcore-cli 0.8.0.dev4__tar.gz → 0.8.0.dev5__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.
- {meshcore_cli-0.8.0.dev4 → meshcore_cli-0.8.0.dev5}/PKG-INFO +2 -2
- {meshcore_cli-0.8.0.dev4 → meshcore_cli-0.8.0.dev5}/pyproject.toml +2 -2
- {meshcore_cli-0.8.0.dev4 → meshcore_cli-0.8.0.dev5}/src/meshcore_cli/meshcore_cli.py +11 -0
- {meshcore_cli-0.8.0.dev4 → meshcore_cli-0.8.0.dev5}/.gitignore +0 -0
- {meshcore_cli-0.8.0.dev4 → meshcore_cli-0.8.0.dev5}/LICENSE +0 -0
- {meshcore_cli-0.8.0.dev4 → meshcore_cli-0.8.0.dev5}/README.md +0 -0
- {meshcore_cli-0.8.0.dev4 → meshcore_cli-0.8.0.dev5}/src/meshcore_cli/__init__.py +0 -0
- {meshcore_cli-0.8.0.dev4 → meshcore_cli-0.8.0.dev5}/src/meshcore_cli/__main__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshcore-cli
|
|
3
|
-
Version: 0.8.0.
|
|
3
|
+
Version: 0.8.0.dev5
|
|
4
4
|
Summary: Command line interface to meshcore companion radios
|
|
5
5
|
Project-URL: Homepage, https://github.com/fdlamotte/meshcore-cli
|
|
6
6
|
Project-URL: Issues, https://github.com/fdlamotte/meshcore-cli/issues
|
|
@@ -10,7 +10,7 @@ License-File: LICENSE
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Requires-Python: >=3.10
|
|
13
|
-
Requires-Dist: meshcore>=1.9.8.
|
|
13
|
+
Requires-Dist: meshcore>=1.9.8.dev5
|
|
14
14
|
Requires-Dist: prompt-toolkit>=3.0.50
|
|
15
15
|
Requires-Dist: requests>=2.28.0
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "meshcore-cli"
|
|
7
|
-
version = "0.8.0.
|
|
7
|
+
version = "0.8.0.dev5"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
|
|
10
10
|
]
|
|
@@ -17,7 +17,7 @@ classifiers = [
|
|
|
17
17
|
]
|
|
18
18
|
license = "MIT"
|
|
19
19
|
license-files = ["LICEN[CS]E*"]
|
|
20
|
-
dependencies = [ "meshcore >= 1.9.8.
|
|
20
|
+
dependencies = [ "meshcore >= 1.9.8.dev5", "prompt_toolkit >= 3.0.50", "requests >= 2.28.0" ]
|
|
21
21
|
|
|
22
22
|
[project.urls]
|
|
23
23
|
Homepage = "https://github.com/fdlamotte/meshcore-cli"
|
|
@@ -239,6 +239,7 @@ def make_completion_dict(contacts, to=None):
|
|
|
239
239
|
"reset_path" : contact_list,
|
|
240
240
|
"change_path" : contact_list,
|
|
241
241
|
"remove_contact" : contact_list,
|
|
242
|
+
"import_contact" : {"meshcore://":None},
|
|
242
243
|
"login" : contact_list,
|
|
243
244
|
"cmd" : contact_list,
|
|
244
245
|
"req_status" : contact_list,
|
|
@@ -1240,6 +1241,16 @@ async def next_cmd(mc, cmds, json_output=False):
|
|
|
1240
1241
|
else :
|
|
1241
1242
|
print(res.payload['uri'])
|
|
1242
1243
|
|
|
1244
|
+
case "import_contact"|"ic":
|
|
1245
|
+
argnum = 1
|
|
1246
|
+
if cmds[1].startswith("meshcore://") :
|
|
1247
|
+
res = await mc.commands.import_contact(bytes.fromhex(cmds[1][11:]))
|
|
1248
|
+
logger.debug(res)
|
|
1249
|
+
if res.type == EventType.ERROR:
|
|
1250
|
+
print(f"Error while importing contact: {res}")
|
|
1251
|
+
else:
|
|
1252
|
+
logger.info("Contact successfully added, refresh with lc")
|
|
1253
|
+
|
|
1243
1254
|
case "upload_contact" | "uc" :
|
|
1244
1255
|
argnum = 1
|
|
1245
1256
|
await mc.ensure_contacts()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|