mech-client 0.2.1__tar.gz → 0.2.3__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.
Files changed (42) hide show
  1. {mech_client-0.2.1 → mech_client-0.2.3}/PKG-INFO +5 -5
  2. mech_client-0.2.3/mech_client/__init__.py +3 -0
  3. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/interact.py +4 -1
  4. {mech_client-0.2.1 → mech_client-0.2.3}/pyproject.toml +7 -7
  5. mech_client-0.2.1/mech_client/__init__.py +0 -3
  6. {mech_client-0.2.1 → mech_client-0.2.3}/LICENSE +0 -0
  7. {mech_client-0.2.1 → mech_client-0.2.3}/README.md +0 -0
  8. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/acn.py +0 -0
  9. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/cli.py +0 -0
  10. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/__init__.py +0 -0
  11. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/README.md +0 -0
  12. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/__init__.py +0 -0
  13. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/acn.proto +0 -0
  14. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/acn_pb2.py +0 -0
  15. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/custom_types.py +0 -0
  16. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/dialogues.py +0 -0
  17. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/message.py +0 -0
  18. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/protocol.yaml +0 -0
  19. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/serialization.py +0 -0
  20. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/tests/__init__.py +0 -0
  21. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/tests/test_acn.py +0 -0
  22. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/tests/test_acn_dialogues.py +0 -0
  23. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn/tests/test_acn_messages.py +0 -0
  24. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/README.md +0 -0
  25. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/__init__.py +0 -0
  26. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/acn_data_share.proto +0 -0
  27. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/acn_data_share_pb2.py +0 -0
  28. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/dialogues.py +0 -0
  29. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/message.py +0 -0
  30. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/protocol.yaml +0 -0
  31. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/serialization.py +0 -0
  32. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/tests/test_acn_data_share_dialogues.py +0 -0
  33. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/acn_data_share/tests/test_acn_data_share_messages.py +0 -0
  34. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/p2p_libp2p_client/README.md +0 -0
  35. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/p2p_libp2p_client/__init__.py +0 -0
  36. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/p2p_libp2p_client/connection.py +0 -0
  37. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/helpers/p2p_libp2p_client/connection.yaml +0 -0
  38. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/prompt_to_ipfs.py +0 -0
  39. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/push_to_ipfs.py +0 -0
  40. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/subgraph.py +0 -0
  41. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/to_png.py +0 -0
  42. {mech_client-0.2.1 → mech_client-0.2.3}/mech_client/wss.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mech-client
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: Basic client to interact with a mech
5
5
  License: Apache-2.0
6
6
  Author: David Minarsch
@@ -12,10 +12,10 @@ Classifier: Programming Language :: Python :: 3.10
12
12
  Classifier: Programming Language :: Python :: 3.11
13
13
  Requires-Dist: asn1crypto (>=1.4.0,<1.5.0)
14
14
  Requires-Dist: gql (>=3.4.1)
15
- Requires-Dist: open-aea-cli-ipfs (==1.35.0)
16
- Requires-Dist: open-aea-ledger-cosmos (==1.35.0)
17
- Requires-Dist: open-aea-ledger-ethereum (==1.35.0)
18
- Requires-Dist: open-aea[cli] (==1.35.0)
15
+ Requires-Dist: open-aea-cli-ipfs (==1.36.0)
16
+ Requires-Dist: open-aea-ledger-cosmos (==1.36.0)
17
+ Requires-Dist: open-aea-ledger-ethereum (==1.36.0)
18
+ Requires-Dist: open-aea[cli] (==1.36.0)
19
19
  Requires-Dist: websocket-client (>=0.32.0,<1)
20
20
  Description-Content-Type: text/markdown
21
21
 
@@ -0,0 +1,3 @@
1
+ """Mech client."""
2
+
3
+ __version__ = "0.2.2"
@@ -275,7 +275,7 @@ def interact(
275
275
  tool: Optional[str] = None,
276
276
  private_key_path: Optional[str] = None,
277
277
  confirmation_type: ConfirmationType = ConfirmationType.WAIT_FOR_BOTH,
278
- ) -> None:
278
+ ) -> Any:
279
279
  """
280
280
  Interact with agent mech contract.
281
281
 
@@ -289,6 +289,8 @@ def interact(
289
289
  :type private_key_path: Optional[str]
290
290
  :param confirmation_type: The confirmation type for the interaction (default: ConfirmationType.WAIT_FOR_BOTH).
291
291
  :type confirmation_type: ConfirmationType
292
+ :return: The data received from on-chain/off-chain.
293
+ :rtype: Any
292
294
  """
293
295
  contract_address = query_agent_address(agent_id=agent_id)
294
296
  if contract_address is None:
@@ -340,3 +342,4 @@ def interact(
340
342
  print(f"Data arrived: {data_url}")
341
343
  data = requests.get(f"{data_url}/{request_id}").json()
342
344
  print(f"Data from agent: {data}")
345
+ return data
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "mech-client"
3
- version = "0.2.1"
3
+ version = "0.2.3"
4
4
  description = "Basic client to interact with a mech"
5
5
  authors = ["David Minarsch <david.minarsch@googlemail.com>"]
6
6
  readme = "README.md"
@@ -26,20 +26,20 @@ include = [
26
26
 
27
27
  [tool.poetry.dependencies]
28
28
  python = "^3.10"
29
- open-aea = {version = "1.35.0", extras = ["cli"]}
30
- open-aea-ledger-ethereum = "1.35.0"
31
- open-aea-cli-ipfs = "1.35.0"
29
+ open-aea = {version = "1.36.0", extras = ["cli"]}
30
+ open-aea-ledger-ethereum = "1.36.0"
31
+ open-aea-cli-ipfs = "1.36.0"
32
32
  websocket-client = ">=0.32.0,<1"
33
33
  gql = ">=3.4.1"
34
34
  asn1crypto = ">=1.4.0,<1.5.0"
35
- open-aea-ledger-cosmos = "1.35.0"
35
+ open-aea-ledger-cosmos = "1.36.0"
36
36
 
37
37
  [tool.poetry.scripts]
38
38
  mechx = "mech_client.cli:cli"
39
39
 
40
40
  [tool.poetry.group.dev.dependencies]
41
- open-autonomy = "==0.10.7"
42
- tomte = {extras = ["tox"], version = "==0.2.12"}
41
+ open-autonomy = "==0.10.8"
42
+ tomte = {extras = ["tox"], version = "==0.2.13"}
43
43
 
44
44
  [build-system]
45
45
  requires = ["poetry-core"]
@@ -1,3 +0,0 @@
1
- """Mech client."""
2
-
3
- __version__ = "0.2.1"
File without changes
File without changes