{"id":28103303,"url":"https://github.com/yudaikitamura/mcpxpy","last_synced_at":"2025-05-13T20:28:07.652Z","repository":{"id":288275796,"uuid":"967429718","full_name":"YudaiKitamura/mcpxpy","owner":"YudaiKitamura","description":"mcpxpy is a Python wrapper for McpX,   a .NET library for communicating with Mitsubishi Electric PLCs using the MC protocol.","archived":false,"fork":false,"pushed_at":"2025-04-16T13:59:14.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T20:15:18.198Z","etag":null,"topics":["mcprotocol","melsec","plc","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YudaiKitamura.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-16T12:50:21.000Z","updated_at":"2025-04-16T14:03:49.000Z","dependencies_parsed_at":"2025-04-16T20:15:20.901Z","dependency_job_id":"bc116a63-6afe-4fbd-8b8b-fb14113e931b","html_url":"https://github.com/YudaiKitamura/mcpxpy","commit_stats":null,"previous_names":["yudaikitamura/mcpxpy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YudaiKitamura%2Fmcpxpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YudaiKitamura%2Fmcpxpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YudaiKitamura%2Fmcpxpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YudaiKitamura%2Fmcpxpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YudaiKitamura","download_url":"https://codeload.github.com/YudaiKitamura/mcpxpy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254020879,"owners_count":22000802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mcprotocol","melsec","plc","python"],"created_at":"2025-05-13T20:27:37.521Z","updated_at":"2025-05-13T20:28:07.643Z","avatar_url":"https://github.com/YudaiKitamura.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"logo.svg\" alt=\"logo\" /\u003e\n\u003cbr\u003e\n\u003cp\u003e\n  \u003cimg alt=\"Python\" src=\"https://img.shields.io/pypi/pyversions/mcpxpy.svg\" /\u003e\n  \u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/mcpxpy.svg\" /\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/pypi/l/mcpxpy.svg\" /\u003e\n\u003c/p\u003e\n\n**mcpxpy is a Python wrapper for [McpX](https://github.com/YudaiKitamura/McpX),  \na .NET library for communicating with Mitsubishi Electric PLCs using the MC protocol.**\n\nThis package allows Python applications to communicate with Mitsubishi PLCs via a high-performance native interface  \npowered by Ahead-of-Time (AOT) compiled shared libraries (`.so` / `.dll`) using `ctypes`.\n\n\u003e ⚡ **By leveraging AOT-compiled binaries, mcpxpy achieves near-native performance**,  \n\u003e making it highly efficient for real-time or high-frequency communication tasks.\n\n\u003e ⚠️ **This library is currently under active development and not yet production-ready.**  \n\u003e APIs and behavior may change without notice.\n\n## Installation\n### PyPI\n```sh\npip install -i https://test.pypi.org/simple/ mcpxpy\n```\n\n## Example Usage \n```python\nfrom mcpxpy import *\n\n# Connect to PLC by specifying IP and port\nwith McpX(\"192.168.12.88\", 10000) as mcpx:\n    # Read 7000 words starting from D1000\n    d_list = mcpx.batch_read_short(Prefix.D, \"1000\", 7000)\n\n    # Write 1234 to D0 and 5678 to D1 as signed 16-bit shorts\n    mcpx.batch_write_short(Prefix.D, \"0\", [1234, 5678])\n```\n\n## Supported Protocols\n- TCP\n- UDP\n- 3E frame (binary code)\n- 3E frame (ASCII code)\n- 4E frame (binary code)\n- 4E frame (ASCII code)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyudaikitamura%2Fmcpxpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyudaikitamura%2Fmcpxpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyudaikitamura%2Fmcpxpy/lists"}