yrcom 0.2.0__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.
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.4
2
+ Name: yrcom
3
+ Version: 0.2.0
4
+ Summary: Yaskawa robot communication — Ethernet Server, HSES and HSES File Control (pure stdlib)
5
+ Author: cmosbk
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/CMOSBK/yrcom
8
+ Project-URL: Issues, https://github.com/CMOSBK/yrcom/issues
9
+ Keywords: yaskawa,robot,hses,ethernet-server,motoman,yrc1000
10
+ Requires-Python: >=3.11
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Provides-Extra: dev
14
+ Requires-Dist: pytest>=8; extra == "dev"
15
+ Dynamic: license-file
16
+
17
+ # yrcom
18
+
19
+ [![CI](https://github.com/CMOSBK/yrcom/actions/workflows/ci.yml/badge.svg)](https://github.com/CMOSBK/yrcom/actions/workflows/ci.yml)
20
+
21
+ Yaskawa robot communication as a standalone Python library — a single,
22
+ hardware-verified communication core meant to be shared across projects
23
+ instead of being duplicated.
24
+
25
+ The name: **YRC** (Yaskawa Robot Controller, e.g. YRC1000) + **COM**munication.
26
+
27
+ **Pure stdlib** — no runtime dependencies. Import name: `yrcom`.
28
+
29
+ ## Transports
30
+
31
+ | Class | Transport | Purpose |
32
+ |---|---|---|
33
+ | `YaskawaClient` | Ethernet Server, TCP 80 | classic host-control commands |
34
+ | `HsesClient` | HSES, UDP 10040 | high speed: 45 commands (status, alarms, variables, IO, telemetry, motion) |
35
+ | `HsesFileClient` | HSES File Control, UDP 10041 | read/write job files, file list, CMOS backup |
36
+ | `RobotConnection` | ES + HSES behind one IP | pick the transport via `transport="hses"\|"ethernet"` |
37
+ | `HsesReplayServer` | — (testing) | replays a recorded robot session as a UDP server → offline development/testing |
38
+
39
+ Command coverage: HSES Robot Control **45/45**, File Control **5/5**
40
+ (verified against real hardware: YRC1000, SW YAS5.40).
41
+
42
+ ## Installation
43
+
44
+ ```bash
45
+ pip install yrcom # from PyPI
46
+ ```
47
+
48
+ For development:
49
+
50
+ ```bash
51
+ pip install -e ".[dev]" # editable install incl. pytest
52
+ ```
53
+
54
+ ## Quick start
55
+
56
+ ```python
57
+ from yrcom import HsesClient
58
+
59
+ c = HsesClient("192.0.2.10") # UDP 10040
60
+ c.open()
61
+ print(c.read_status()) # {'servo_on': False, 'teach': True, ...}
62
+ print(c.read_d_var(0)) # D[0]
63
+ c.close()
64
+ ```
65
+
66
+ Transport-agnostic via `RobotConnection`:
67
+
68
+ ```python
69
+ from yrcom import RobotConnection
70
+
71
+ rc = RobotConnection("192.0.2.10", transport="hses")
72
+ rc.connect()
73
+ print(rc.status()) # same keys, whether HSES or ES
74
+ ```
75
+
76
+ ## Offline: the replay simulator
77
+
78
+ Record a controller's real responses as JSON (tx/rx pairs per command, see
79
+ `tests/fixtures/sample_capture.json` for the format) and replay them — the
80
+ real `HsesClient` talks to the simulator:
81
+
82
+ ```python
83
+ from yrcom import HsesReplayServer, HsesClient
84
+
85
+ with HsesReplayServer.from_capture("capture.json") as srv:
86
+ c = HsesClient("127.0.0.1", srv.port); c.open()
87
+ print(c.read_status()) # recorded response, no robot needed
88
+ ```
89
+
90
+ Or as a standalone server: `python -m yrcom.hses_sim capture.json --port 10040`.
91
+
92
+ ## Legal
93
+
94
+ Independent community project, not affiliated with or endorsed by Yaskawa.
95
+ *Yaskawa*, *Motoman* and *YRC1000* are trademarks of Yaskawa Electric
96
+ Corporation and are used here descriptively (compatibility) only. The
97
+ implementation is based on the publicly available protocol manuals
98
+ (HW0483202, HW1483358).
99
+
100
+ ## Tests
101
+
102
+ ```bash
103
+ pip install -e ".[dev]"
104
+ pytest
105
+ ```
106
+
107
+ The tests run **without a robot**: a stateful ES mock (`tests/mock_robot.py`)
108
+ and a small HSES capture fixture (`tests/fixtures/`).
109
+
110
+ ## License
111
+
112
+ MIT — see [LICENSE](LICENSE).
@@ -0,0 +1,13 @@
1
+ yrcom/__init__.py,sha256=7UyqyMY7-M7zwMVNpx9ptK2DscZ_THFpJ1HTmYG7K-U,1622
2
+ yrcom/hses_client.py,sha256=56EFOwPQ-tpY-VmnPcLkAndtAH_61sKnWXhlMAClm60,74320
3
+ yrcom/hses_errors.py,sha256=c6nhqNGpyATrJdppndAlmoMRw-Icd5y_UJhQ2TYFdTY,8199
4
+ yrcom/hses_file.py,sha256=OHQKSNiAwwHRw3z7B_h6OjS4HuwiQkszsFdRhG44pok,11124
5
+ yrcom/hses_sim.py,sha256=xQxFeRNRhgWCej5xHL42b_gwuym2dJS4uRiDzX_oiz8,6276
6
+ yrcom/robot_connection.py,sha256=ASN1YcmMir1HJMXfOEmusoeZnpX0_BkvNYI1vArZPPQ,18309
7
+ yrcom/yaskawa_client.py,sha256=nlWpiFADc1trpLfKzcbqNbipBCXPLMVHrAWJc3CkTIk,27014
8
+ yrcom-0.2.0.dist-info/licenses/LICENSE,sha256=XVWHFASfdf1BpVm21aFktjxmg-qTFWVHG8PGGx4hsrU,1063
9
+ yrcom-0.2.0.dist-info/METADATA,sha256=tEK-ypx4L7LM7_FoF3FqyCX1ATbY2yIjjErmUOoRxKg,3415
10
+ yrcom-0.2.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
11
+ yrcom-0.2.0.dist-info/entry_points.txt,sha256=vpDNDtqn2pgTTxgn-nJq6de4skJEdxYXOz1XoFuFqu0,51
12
+ yrcom-0.2.0.dist-info/top_level.txt,sha256=YF9HbmaX5IOpXTkwPopCLk7gAp9rKbee3_4WB3hPP_M,6
13
+ yrcom-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ yrcom-sim = yrcom.hses_sim:_main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 cmosbk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ yrcom