motorcortex-python 0.22.4__tar.gz → 0.22.6__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 (36) hide show
  1. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/PKG-INFO +3 -1
  2. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/message_types.py +3 -1
  3. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/request.py +1 -1
  4. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/subscribe.py +1 -1
  5. motorcortex_python-0.22.6/motorcortex/version.py +1 -0
  6. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex_python.egg-info/PKG-INFO +3 -1
  7. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex_python.egg-info/SOURCES.txt +1 -13
  8. motorcortex_python-0.22.6/motorcortex_python.egg-info/requires.txt +2 -0
  9. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/setup.py +1 -1
  10. motorcortex-python-0.22.4/.gitignore +0 -5
  11. motorcortex-python-0.22.4/PIPHOWTO.md +0 -3
  12. motorcortex-python-0.22.4/motorcortex/version.py +0 -1
  13. motorcortex-python-0.22.4/motorcortex_python.egg-info/requires.txt +0 -2
  14. motorcortex-python-0.22.4/pydoc-markdown.yml +0 -9
  15. motorcortex-python-0.22.4/sandbox/req_test.py +0 -32
  16. motorcortex-python-0.22.4/sandbox/test.crt +0 -25
  17. motorcortex-python-0.22.4/test/api_test.py +0 -552
  18. motorcortex-python-0.22.4/test/async_test.py +0 -56
  19. motorcortex-python-0.22.4/test/motorcortex-msg/motionSL_hash.json +0 -118
  20. motorcortex-python-0.22.4/test/motorcortex-msg/motionSL_pb2.py +0 -1533
  21. motorcortex-python-0.22.4/test/motorcortex-msg/motorcortex_hash.json +0 -166
  22. motorcortex-python-0.22.4/test/motorcortex-msg/motorcortex_pb2.py +0 -2346
  23. motorcortex-python-0.22.4/test/nng_tls_client.py +0 -33
  24. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/LICENSE +0 -0
  25. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/MANIFEST.in +0 -0
  26. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/README.md +0 -0
  27. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/__init__.py +0 -0
  28. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/motorcortex_hash.json +0 -0
  29. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/motorcortex_pb2.py +0 -0
  30. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/parameter_tree.py +0 -0
  31. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/reply.py +0 -0
  32. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/setup_logger.py +0 -0
  33. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex/subscription.py +0 -0
  34. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex_python.egg-info/dependency_links.txt +0 -0
  35. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/motorcortex_python.egg-info/top_level.txt +0 -0
  36. {motorcortex-python-0.22.4 → motorcortex_python-0.22.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: motorcortex-python
3
- Version: 0.22.4
3
+ Version: 0.22.6
4
4
  Summary: Python bindings for Motorcortex Engine
5
5
  Home-page: https://www.motorcortex.io
6
6
  Author: Alexey Zakharov
@@ -8,6 +8,8 @@ Author-email: alexey.zakharov@vectioneer.com
8
8
  License: MIT
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
+ Requires-Dist: pynng==0.7.*
12
+ Requires-Dist: protobuf==3.20.*
11
13
 
12
14
  # motorcortex-python
13
15
 
@@ -24,7 +24,8 @@ if sys.version_info[0] >= 3:
24
24
  def importLibrary(name, path):
25
25
  loader = SourceFileLoader(name, path)
26
26
  mod = ModuleType(loader.name)
27
- return loader.exec_module(mod)
27
+ loader.exec_module(mod)
28
+ return mod
28
29
  else:
29
30
  from builtins import bytes
30
31
  from imp import load_source
@@ -213,6 +214,7 @@ class MessageTypes(object):
213
214
 
214
215
  module = module_hash_pair.module
215
216
  # searching for messages from hash file
217
+
216
218
  for name in module.__dict__:
217
219
  type = module.__dict__[name]
218
220
  if hasattr(type, 'DESCRIPTOR'):
@@ -93,7 +93,7 @@ class Request(object):
93
93
 
94
94
  self.__socket.add_post_pipe_connect_cb(pre_connect_cb)
95
95
  self.__socket.add_post_pipe_remove_cb(post_remove_cb)
96
- self.__socket.dial(url)
96
+ self.__socket.dial(url, block=False)
97
97
 
98
98
  return Reply(self.__pool.submit(self.waitForConnection, self.__connected_lock,
99
99
  conn_timeout_ms / 1000.0))
@@ -77,7 +77,7 @@ class Subscribe:
77
77
 
78
78
  self.__socket.add_pre_pipe_connect_cb(pre_connect_cb)
79
79
  self.__socket.add_post_pipe_remove_cb(post_remove_cb)
80
- self.__socket.dial(url)
80
+ self.__socket.dial(url, block=False)
81
81
 
82
82
  self.__pool.submit(self.run, self.__socket)
83
83
 
@@ -0,0 +1 @@
1
+ __version__ = '0.22.6'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: motorcortex-python
3
- Version: 0.22.4
3
+ Version: 0.22.6
4
4
  Summary: Python bindings for Motorcortex Engine
5
5
  Home-page: https://www.motorcortex.io
6
6
  Author: Alexey Zakharov
@@ -8,6 +8,8 @@ Author-email: alexey.zakharov@vectioneer.com
8
8
  License: MIT
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
+ Requires-Dist: pynng==0.7.*
12
+ Requires-Dist: protobuf==3.20.*
11
13
 
12
14
  # motorcortex-python
13
15
 
@@ -1,9 +1,6 @@
1
- .gitignore
2
1
  LICENSE
3
2
  MANIFEST.in
4
- PIPHOWTO.md
5
3
  README.md
6
- pydoc-markdown.yml
7
4
  setup.py
8
5
  motorcortex/__init__.py
9
6
  motorcortex/message_types.py
@@ -20,13 +17,4 @@ motorcortex_python.egg-info/PKG-INFO
20
17
  motorcortex_python.egg-info/SOURCES.txt
21
18
  motorcortex_python.egg-info/dependency_links.txt
22
19
  motorcortex_python.egg-info/requires.txt
23
- motorcortex_python.egg-info/top_level.txt
24
- sandbox/req_test.py
25
- sandbox/test.crt
26
- test/api_test.py
27
- test/async_test.py
28
- test/nng_tls_client.py
29
- test/motorcortex-msg/motionSL_hash.json
30
- test/motorcortex-msg/motionSL_pb2.py
31
- test/motorcortex-msg/motorcortex_hash.json
32
- test/motorcortex-msg/motorcortex_pb2.py
20
+ motorcortex_python.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ pynng==0.7.*
2
+ protobuf==3.20.*
@@ -24,6 +24,6 @@ setup(name='motorcortex-python',
24
24
  license='MIT',
25
25
  packages=['motorcortex'],
26
26
  install_requires=['pynng==0.7.*',
27
- 'protobuf==3.19.*'],
27
+ 'protobuf==3.20.*'],
28
28
  include_package_data=True,
29
29
  )
@@ -1,5 +0,0 @@
1
- .idea
2
- *.pyc
3
- dist
4
- __pycache__
5
- motorcortex_python.egg-info
@@ -1,3 +0,0 @@
1
- 1. update version in setup.py (for example: 0.9.16)
2
- 2. python3 ./setup.py sdist
3
- 3. twine upload ./dist/motorcortex-python-0.9.16.tar.gz
@@ -1 +0,0 @@
1
- __version__ = '0.22.4'
@@ -1,2 +0,0 @@
1
- pynng==0.7.*
2
- protobuf==3.19.*
@@ -1,9 +0,0 @@
1
- loaders:
2
- - type: python
3
- processors:
4
- - type: filter
5
- documented_only: true
6
- - type: smart
7
- - type: crossref
8
- renderer:
9
- type: markdown
@@ -1,32 +0,0 @@
1
- #!/usr/bin/python3
2
-
3
- import motorcortex
4
-
5
- if __name__ == '__main__':
6
- parameter_tree = motorcortex.ParameterTree()
7
- motorcortex_types = motorcortex.MessageTypes()
8
-
9
- # Vectioneer camera
10
- endpoint_1 = "ws://motorcortex:5558:5557"
11
- req, sub = motorcortex.connect(endpoint_1, motorcortex_types, parameter_tree,
12
- certificate="mcx.cert.crt", timeout_ms=1000,
13
- login="", password="")
14
-
15
-
16
- # Local processing
17
- endpoint_2 = "wss://localhost:5568:5567"
18
- req1, sub1 = motorcortex.connect(endpoint_2, motorcortex.MessageTypes(), motorcortex.ParameterTree(),
19
- certificate="mcx.cert.crt", timeout_ms=1000,
20
- login="", password="")
21
-
22
- print("Sending data from {} to {}".format(endpoint_1, endpoint_2))
23
-
24
- counter = 0
25
- while True:
26
- ss = req.getParameter("root/Camera/image")
27
- res = ss.get()
28
- print("{}: {}".format(counter, len(res.value)))
29
- handle = req1.setParameter("root/Processing/image", res.value)
30
- res = handle.get()
31
- counter = counter + 1
32
-
@@ -1,25 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIID9DCCAtygAwIBAgIUAVMW5N37aC4INzOmLic5EFbgt+4wDQYJKoZIhvcNAQEL
3
- BQAwgY0xCzAJBgNVBAYTAk5MMRAwDgYDVQQIDAdMaW1idXJnMSswKQYDVQQHDCJL
4
- YXJ2ZWVsd2VnIDE5QiwgNjIyMiBOSiBNYWFzdHJpY2h0MRMwEQYDVQQKDApWZWN0
5
- aW9uZWVyMRQwEgYDVQQLDAtEZXZlbG9wbWVudDEUMBIGA1UEAwwLTW90b3Jjb3J0
6
- ZXgwIBcNMjAwMTIxMDkxMjQwWhgPMjExOTEyMjgwOTEyNDBaMIGNMQswCQYDVQQG
7
- EwJOTDEQMA4GA1UECAwHTGltYnVyZzErMCkGA1UEBwwiS2FydmVlbHdlZyAxOUIs
8
- IDYyMjIgTkogTWFhc3RyaWNodDETMBEGA1UECgwKVmVjdGlvbmVlcjEUMBIGA1UE
9
- CwwLRGV2ZWxvcG1lbnQxFDASBgNVBAMMC01vdG9yY29ydGV4MIIBIjANBgkqhkiG
10
- 9w0BAQEFAAOCAQ8AMIIBCgKC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