pycyphal2 2.0.0.dev1__py3-none-any.whl → 2.0.0.dev2__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.
pycyphal2/__init__.py CHANGED
@@ -10,7 +10,7 @@ Supports various transports such as Ethernet (UDP) and CAN FD with optional redu
10
10
  Optional features inside the brackets can be removed if not needed; see `pyproject.toml` for the full list:
11
11
 
12
12
  ```
13
- pip install pycyphal2[udp,pythoncan]
13
+ pip install 'pycyphal2[udp,pythoncan]'
14
14
  ```
15
15
 
16
16
  ## Usage
@@ -18,6 +18,7 @@ pip install pycyphal2[udp,pythoncan]
18
18
  Set up a transport, make a node, publish and subscribe:
19
19
 
20
20
  ```python
21
+ import asyncio
21
22
  from pycyphal2 import Node, Instant
22
23
  from pycyphal2.udp import UDPTransport
23
24
 
@@ -30,6 +31,9 @@ async def main():
30
31
  sub = node.subscribe("sensor/temperature")
31
32
  async for arrival in sub:
32
33
  print(arrival.message)
34
+
35
+ if __name__ == "__main__":
36
+ asyncio.run(main())
33
37
  ```
34
38
 
35
39
  All public symbols live at the top level — just `import pycyphal2`.
@@ -147,11 +151,11 @@ existing applications leveraging `pycyphal` should upgrade to the new API of `py
147
151
  from __future__ import annotations
148
152
 
149
153
  from ._api import *
154
+ from ._transport import SubjectWriter as SubjectWriter
150
155
  from ._transport import Transport as Transport
151
156
  from ._transport import TransportArrival as TransportArrival
152
- from ._transport import SubjectWriter as SubjectWriter
153
157
 
154
- __version__ = "2.0.0.dev1"
158
+ __version__ = "2.0.0.dev2"
155
159
 
156
160
  # pdoc needs __all__ to display re-exported members.
157
161
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pycyphal2
3
- Version: 2.0.0.dev1
3
+ Version: 2.0.0.dev2
4
4
  Summary: Pure-Python implementation of Cyphal -- a simple and robust real-time publish/subscribe stack that runs anywhere.
5
5
  Author-email: Pavel Kirienko and OpenCyphal team <pavel@opencyphal.org>
6
6
  License: MIT
@@ -1,4 +1,4 @@
1
- pycyphal2/__init__.py,sha256=nxnNW6FRdNG9SkboIR3MvzZMmWi4IWw_iOq_0dSuvuA,6780
1
+ pycyphal2/__init__.py,sha256=PbQlgcHcmDlxhG_gA0yFJjARWz3tAvIQvhRZVV6QYCo,6849
2
2
  pycyphal2/_api.py,sha256=fYtM9J0RmaEp30iSzebi6a0kLeINPRM0UvvAjevEV6E,22688
3
3
  pycyphal2/_hash.py,sha256=qdQ3A35oFy5mxPNO873OlLntVsCuOak6ckJf8r5j254,10621
4
4
  pycyphal2/_header.py,sha256=12r_jQQ1t3rrNG6si5C3-vNcUSkvYQCBo8YhG16g19Q,10448
@@ -15,8 +15,8 @@ pycyphal2/can/_transport.py,sha256=sWNoyUnVJnUuhQ8pEtzAkfJSuqvI0RzMVVDKA5j1NOk,2
15
15
  pycyphal2/can/_wire.py,sha256=OSStXci7qzwnbz0YZ0H07rNU5bdi5fCLRNKVZmDOtdw,13696
16
16
  pycyphal2/can/pythoncan.py,sha256=-zgFhoKDvihlRpVZg3OV12ClBTsf5MNLf1eD9_HxDus,10845
17
17
  pycyphal2/can/socketcan.py,sha256=nBYzbAcoVXeGoRrovpJnCbTqs4MBabpt27QJw4JqUYc,8529
18
- pycyphal2-2.0.0.dev1.dist-info/licenses/LICENSE,sha256=ILoAsB6eavnHqYkHMZt5JIp4-2oIMglw7vQr2aizB8w,1101
19
- pycyphal2-2.0.0.dev1.dist-info/METADATA,sha256=QoXOiDmVMmg9p4swuXqlFSpeBSAApWNC_HmenAI7xok,2602
20
- pycyphal2-2.0.0.dev1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
21
- pycyphal2-2.0.0.dev1.dist-info/top_level.txt,sha256=m3-ZKFH4OwPKxa94jzEP4OCKx7B7qnONx3GYXgaw8BU,10
22
- pycyphal2-2.0.0.dev1.dist-info/RECORD,,
18
+ pycyphal2-2.0.0.dev2.dist-info/licenses/LICENSE,sha256=ILoAsB6eavnHqYkHMZt5JIp4-2oIMglw7vQr2aizB8w,1101
19
+ pycyphal2-2.0.0.dev2.dist-info/METADATA,sha256=6agEQ9TVYp3cEBjv4cy2MogON3a_PsJdD1jJlVg7SmE,2602
20
+ pycyphal2-2.0.0.dev2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
21
+ pycyphal2-2.0.0.dev2.dist-info/top_level.txt,sha256=m3-ZKFH4OwPKxa94jzEP4OCKx7B7qnONx3GYXgaw8BU,10
22
+ pycyphal2-2.0.0.dev2.dist-info/RECORD,,