labnode-async 0.16.1__tar.gz → 0.16.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 (21) hide show
  1. {labnode_async-0.16.1 → labnode_async-0.16.3}/PKG-INFO +26 -7
  2. {labnode_async-0.16.1 → labnode_async-0.16.3}/README.md +6 -5
  3. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/__init__.py +1 -0
  4. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/_version.py +1 -1
  5. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/connection.py +1 -0
  6. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/device_factory.py +1 -1
  7. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/labnode.py +0 -1
  8. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/pid_controller.py +0 -1
  9. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async.egg-info/PKG-INFO +27 -8
  10. {labnode_async-0.16.1 → labnode_async-0.16.3}/pyproject.toml +2 -1
  11. {labnode_async-0.16.1 → labnode_async-0.16.3}/LICENSE +0 -0
  12. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/devices.py +0 -0
  13. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/errors.py +0 -0
  14. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/ip_connection.py +0 -0
  15. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async/serial_connection.py +0 -0
  16. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async.egg-info/SOURCES.txt +0 -0
  17. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async.egg-info/dependency_links.txt +0 -0
  18. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async.egg-info/requires.txt +0 -0
  19. {labnode_async-0.16.1 → labnode_async-0.16.3}/labnode_async.egg-info/top_level.txt +0 -0
  20. {labnode_async-0.16.1 → labnode_async-0.16.3}/setup.cfg +0 -0
  21. {labnode_async-0.16.1 → labnode_async-0.16.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: labnode_async
3
- Version: 0.16.1
3
+ Version: 0.16.3
4
4
  Summary: Python3 AsyncIO Labnode driver
5
5
  Author-email: Patrick Baus <patrick.baus@physik.tu-darmstadt.de>
6
6
  License: GNU General Public License v3 (GPLv3)
@@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.7
14
14
  Classifier: Programming Language :: Python :: 3.8
15
15
  Classifier: Programming Language :: Python :: 3.9
16
16
  Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
17
18
  Classifier: Development Status :: 5 - Production/Stable
18
19
  Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
19
20
  Classifier: Operating System :: OS Independent
@@ -24,18 +25,36 @@ Classifier: Topic :: Home Automation
24
25
  Classifier: Topic :: Scientific/Engineering
25
26
  Requires-Python: >=3.7
26
27
  Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ Requires-Dist: typing-extensions; python_version < "3.11"
30
+ Requires-Dist: cbor2
31
+ Requires-Dist: cobs
32
+ Requires-Dist: pyserial-asyncio
27
33
  Provides-Extra: dev
34
+ Requires-Dist: black; extra == "dev"
35
+ Requires-Dist: build; extra == "dev"
36
+ Requires-Dist: isort; extra == "dev"
37
+ Requires-Dist: mypy; extra == "dev"
38
+ Requires-Dist: pre-commit; extra == "dev"
39
+ Requires-Dist: pylint; extra == "dev"
40
+ Requires-Dist: pytest; extra == "dev"
41
+ Requires-Dist: twine; extra == "dev"
28
42
  Provides-Extra: doc
43
+ Requires-Dist: myst-parser; extra == "doc"
44
+ Requires-Dist: sphinx; extra == "doc"
29
45
  Provides-Extra: test
30
- License-File: LICENSE
46
+ Requires-Dist: mypy; extra == "test"
47
+ Requires-Dist: pylint; extra == "test"
48
+ Requires-Dist: pytest; extra == "test"
31
49
 
32
- [![pylint](https://github.com/PatrickBaus/labnode_async/actions/workflows/pylint.yml/badge.svg)](https://github.com/PatrickBaus/labnode_async/actions/workflows/pylint.yml)
50
+ [![pylint](../../actions/workflows/pylint.yml/badge.svg)](../../actions/workflows/pylint.yml)
33
51
  [![PyPI](https://img.shields.io/pypi/v/labnode_async)](https://pypi.org/project/labnode_async/)
34
52
  ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/labnode_async)
35
53
  ![PyPI - Status](https://img.shields.io/pypi/status/labnode_async)
54
+ [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](LICENSE)
36
55
  [![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
37
56
  # LabNode
38
- This is the Python3 AsyncIO API library for the [Labnode](https://github.com/TU-Darmstadt-APQ/Labnode_PID) system.
57
+ This is the Python3 asyncio API library for the [Labnode](https://github.com/TU-Darmstadt-APQ/Labnode_PID) system.
39
58
 
40
59
  The library is fully type-hinted.
41
60
 
@@ -68,15 +87,15 @@ async with IPConnection("192.1680.0.2") as device:
68
87
  ...
69
88
  ```
70
89
 
71
- See [examples/](https://github.com/PatrickBaus/labnode_async/blob/master/examples/) for more working examples.
90
+ See [examples/](/examples/) for more working examples.
72
91
 
73
92
  ## Versioning
74
93
  I use [SemVer](http://semver.org/) for versioning. For the versions available, see the
75
- [tags of this repository](https://github.com/PatrickBaus/labnode_async/tags).
94
+ [tags of this repository](../../tags).
76
95
 
77
96
  ## Authors
78
97
  * **Patrick Baus** - *Initial work* - [PatrickBaus](https://github.com/PatrickBaus)
79
98
 
80
99
  ## License
81
100
  This project is licensed under the GPL v3 license - see the
82
- [LICENSE](https://github.com/PatrickBaus/labnode_async/blob/master/LICENSE) file for details.
101
+ [LICENSE](LICENSE) file for details.
@@ -1,10 +1,11 @@
1
- [![pylint](https://github.com/PatrickBaus/labnode_async/actions/workflows/pylint.yml/badge.svg)](https://github.com/PatrickBaus/labnode_async/actions/workflows/pylint.yml)
1
+ [![pylint](../../actions/workflows/pylint.yml/badge.svg)](../../actions/workflows/pylint.yml)
2
2
  [![PyPI](https://img.shields.io/pypi/v/labnode_async)](https://pypi.org/project/labnode_async/)
3
3
  ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/labnode_async)
4
4
  ![PyPI - Status](https://img.shields.io/pypi/status/labnode_async)
5
+ [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](LICENSE)
5
6
  [![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
6
7
  # LabNode
7
- This is the Python3 AsyncIO API library for the [Labnode](https://github.com/TU-Darmstadt-APQ/Labnode_PID) system.
8
+ This is the Python3 asyncio API library for the [Labnode](https://github.com/TU-Darmstadt-APQ/Labnode_PID) system.
8
9
 
9
10
  The library is fully type-hinted.
10
11
 
@@ -37,15 +38,15 @@ async with IPConnection("192.1680.0.2") as device:
37
38
  ...
38
39
  ```
39
40
 
40
- See [examples/](https://github.com/PatrickBaus/labnode_async/blob/master/examples/) for more working examples.
41
+ See [examples/](/examples/) for more working examples.
41
42
 
42
43
  ## Versioning
43
44
  I use [SemVer](http://semver.org/) for versioning. For the versions available, see the
44
- [tags of this repository](https://github.com/PatrickBaus/labnode_async/tags).
45
+ [tags of this repository](../../tags).
45
46
 
46
47
  ## Authors
47
48
  * **Patrick Baus** - *Initial work* - [PatrickBaus](https://github.com/PatrickBaus)
48
49
 
49
50
  ## License
50
51
  This project is licensed under the GPL v3 license - see the
51
- [LICENSE](https://github.com/PatrickBaus/labnode_async/blob/master/LICENSE) file for details.
52
+ [LICENSE](LICENSE) file for details.
@@ -1,6 +1,7 @@
1
1
  """
2
2
  The Python implementation for the Labnode API. It supports both :class:`~IPConnection` and :class:`~SerialConnection`.
3
3
  """
4
+
4
5
  from ._version import __version__
5
6
  from .ip_connection import IPConnection
6
7
  from .pid_controller import FeedbackDirection, PidController
@@ -1,2 +1,2 @@
1
1
  # pylint: disable=missing-module-docstring
2
- __version__ = "0.16.1"
2
+ __version__ = "0.16.3"
@@ -121,6 +121,7 @@ class Connection: # pylint: disable=too-many-instance-attributes
121
121
  bytes
122
122
  The encoded bytestring
123
123
  """
124
+ self.__logger.debug("Encoding data with COBS: %s", data.hex())
124
125
  return cobs.encode(data) + self._SEPARATOR
125
126
 
126
127
  @staticmethod
@@ -50,7 +50,7 @@ class DeviceFactory:
50
50
  A Labnode device class to be registered with the factory.
51
51
  """
52
52
  # We cast device.device_identifier because mypy has problems class properties
53
- self.__available_devices[cast(DeviceIdentifier, device.device_identifier)] = device
53
+ self.__available_devices[cast(DeviceIdentifier, device.device_identifier())] = device
54
54
 
55
55
  def get(self, device_id: DeviceIdentifier, connection: Connection, *args: Any, **kwargs: Any) -> Labnode:
56
56
  """
@@ -34,7 +34,6 @@ class Labnode(ABC):
34
34
  """
35
35
 
36
36
  @classmethod
37
- @property
38
37
  @abstractmethod
39
38
  def device_identifier(cls) -> DeviceIdentifier:
40
39
  """
@@ -61,7 +61,6 @@ class PidController(Labnode): # pylint: disable=too-many-public-methods
61
61
  __DEVICE_IDENTIFIER = DeviceIdentifier.PID
62
62
 
63
63
  @classmethod
64
- @property
65
64
  def device_identifier(cls) -> DeviceIdentifier:
66
65
  """The device identifier used to identify the device type"""
67
66
  return cls.__DEVICE_IDENTIFIER
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: labnode-async
3
- Version: 0.16.1
2
+ Name: labnode_async
3
+ Version: 0.16.3
4
4
  Summary: Python3 AsyncIO Labnode driver
5
5
  Author-email: Patrick Baus <patrick.baus@physik.tu-darmstadt.de>
6
6
  License: GNU General Public License v3 (GPLv3)
@@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.7
14
14
  Classifier: Programming Language :: Python :: 3.8
15
15
  Classifier: Programming Language :: Python :: 3.9
16
16
  Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
17
18
  Classifier: Development Status :: 5 - Production/Stable
18
19
  Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
19
20
  Classifier: Operating System :: OS Independent
@@ -24,18 +25,36 @@ Classifier: Topic :: Home Automation
24
25
  Classifier: Topic :: Scientific/Engineering
25
26
  Requires-Python: >=3.7
26
27
  Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ Requires-Dist: typing-extensions; python_version < "3.11"
30
+ Requires-Dist: cbor2
31
+ Requires-Dist: cobs
32
+ Requires-Dist: pyserial-asyncio
27
33
  Provides-Extra: dev
34
+ Requires-Dist: black; extra == "dev"
35
+ Requires-Dist: build; extra == "dev"
36
+ Requires-Dist: isort; extra == "dev"
37
+ Requires-Dist: mypy; extra == "dev"
38
+ Requires-Dist: pre-commit; extra == "dev"
39
+ Requires-Dist: pylint; extra == "dev"
40
+ Requires-Dist: pytest; extra == "dev"
41
+ Requires-Dist: twine; extra == "dev"
28
42
  Provides-Extra: doc
43
+ Requires-Dist: myst-parser; extra == "doc"
44
+ Requires-Dist: sphinx; extra == "doc"
29
45
  Provides-Extra: test
30
- License-File: LICENSE
46
+ Requires-Dist: mypy; extra == "test"
47
+ Requires-Dist: pylint; extra == "test"
48
+ Requires-Dist: pytest; extra == "test"
31
49
 
32
- [![pylint](https://github.com/PatrickBaus/labnode_async/actions/workflows/pylint.yml/badge.svg)](https://github.com/PatrickBaus/labnode_async/actions/workflows/pylint.yml)
50
+ [![pylint](../../actions/workflows/pylint.yml/badge.svg)](../../actions/workflows/pylint.yml)
33
51
  [![PyPI](https://img.shields.io/pypi/v/labnode_async)](https://pypi.org/project/labnode_async/)
34
52
  ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/labnode_async)
35
53
  ![PyPI - Status](https://img.shields.io/pypi/status/labnode_async)
54
+ [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](LICENSE)
36
55
  [![code style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
37
56
  # LabNode
38
- This is the Python3 AsyncIO API library for the [Labnode](https://github.com/TU-Darmstadt-APQ/Labnode_PID) system.
57
+ This is the Python3 asyncio API library for the [Labnode](https://github.com/TU-Darmstadt-APQ/Labnode_PID) system.
39
58
 
40
59
  The library is fully type-hinted.
41
60
 
@@ -68,15 +87,15 @@ async with IPConnection("192.1680.0.2") as device:
68
87
  ...
69
88
  ```
70
89
 
71
- See [examples/](https://github.com/PatrickBaus/labnode_async/blob/master/examples/) for more working examples.
90
+ See [examples/](/examples/) for more working examples.
72
91
 
73
92
  ## Versioning
74
93
  I use [SemVer](http://semver.org/) for versioning. For the versions available, see the
75
- [tags of this repository](https://github.com/PatrickBaus/labnode_async/tags).
94
+ [tags of this repository](../../tags).
76
95
 
77
96
  ## Authors
78
97
  * **Patrick Baus** - *Initial work* - [PatrickBaus](https://github.com/PatrickBaus)
79
98
 
80
99
  ## License
81
100
  This project is licensed under the GPL v3 license - see the
82
- [LICENSE](https://github.com/PatrickBaus/labnode_async/blob/master/LICENSE) file for details.
101
+ [LICENSE](LICENSE) file for details.
@@ -13,6 +13,7 @@ classifiers = [
13
13
  "Programming Language :: Python :: 3.8",
14
14
  "Programming Language :: Python :: 3.9",
15
15
  "Programming Language :: Python :: 3.10",
16
+ "Programming Language :: Python :: 3.11",
16
17
  "Development Status :: 5 - Production/Stable",
17
18
  "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
18
19
  "Operating System :: OS Independent",
@@ -73,7 +74,7 @@ markers = [
73
74
  requires = [
74
75
  "setuptools>=61.0",
75
76
  "typing-extensions; python_version <'3.11'",
76
- "cbor2",
77
+ "cbor2>=5.6.2",
77
78
  "cobs",
78
79
  "pyserial-asyncio",
79
80
  ]
File without changes
File without changes
File without changes