{"id":28561646,"url":"https://github.com/ultimaker/pyarcus","last_synced_at":"2026-02-15T23:01:49.163Z","repository":{"id":50731795,"uuid":"517996724","full_name":"Ultimaker/pyArcus","owner":"Ultimaker","description":"Python bindings for Arcus communication library between internal components for Ultimaker software","archived":false,"fork":false,"pushed_at":"2025-09-02T18:37:54.000Z","size":124,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-10-21T04:55:20.757Z","etag":null,"topics":["cura","curaengine","protobuf","python","pythonbinding","sip"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ultimaker.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}},"created_at":"2022-07-26T09:30:22.000Z","updated_at":"2025-09-02T18:37:57.000Z","dependencies_parsed_at":"2024-09-17T09:00:10.851Z","dependency_job_id":null,"html_url":"https://github.com/Ultimaker/pyArcus","commit_stats":{"total_commits":49,"total_committers":5,"mean_commits":9.8,"dds":"0.36734693877551017","last_synced_commit":"3e1770c176ef1d12c4375207fadce61a8c107f16"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Ultimaker/pyArcus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ultimaker%2FpyArcus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ultimaker%2FpyArcus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ultimaker%2FpyArcus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ultimaker%2FpyArcus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ultimaker","download_url":"https://codeload.github.com/Ultimaker/pyArcus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ultimaker%2FpyArcus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29491998,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cura","curaengine","protobuf","python","pythonbinding","sip"],"created_at":"2025-06-10T11:15:15.080Z","updated_at":"2026-02-15T23:01:49.131Z","avatar_url":"https://github.com/Ultimaker.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyArcus\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/Ultimaker/pyArcus/actions/workflows/conan-package.yml\" alt=\"Conan Package\"\u003e\n        \u003cimg src=\"https://github.com/Ultimaker/pyArcus/actions/workflows/conan-package.yml/badge.svg\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Ultimaker/pyArcus/issues\" alt=\"Open Issues\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/issues/ultimaker/pyArcus\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Ultimaker/pyArcus/issues?q=is%3Aissue+is%3Aclosed\" alt=\"Closed Issues\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/issues-closed/ultimaker/pyArcus?color=g\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Ultimaker/pyArcus/pulls\" alt=\"Pull Requests\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/issues-pr/ultimaker/pyArcus\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Ultimaker/pyArcus/graphs/contributors\" alt=\"Contributors\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/contributors/ultimaker/pyArcus\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Ultimaker/pyArcus\" alt=\"Repo Size\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/repo-size/ultimaker/pyArcus?style=flat\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/Ultimaker/pyArcus/blob/master/LICENSE\" alt=\"License\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/ultimaker/pyArcus?style=flat\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThis library contains Python bindings, for libArcus, for creating a socket in a thread and using this socket to send and receive messages\nbased on the Protocol Buffers library. It is designed to facilitate the communication between Cura and its backend and similar code.\n\n## License\n\n![License](https://img.shields.io/github/license/ultimaker/pyArcus?style=flat)  \npyArcus is released under terms of the LGPLv3 License. Terms of the license can be found in the LICENSE file. Or at\nhttp://www.gnu.org/licenses/lgpl.html\n\n\u003e But in general it boils down to:  \n\u003e **You need to share the source of any pyArcus modifications if you make an application with pyArcus.**\n\n## System Requirements\n\n### Windows\n- Python 3.6 or higher\n- Ninja 1.10 or higher\n- VS2022 or higher\n- CMake 3.23 or higher\n- nmake\n- sip 6.5.0 or higher\n- Conan 1.56.0\n\n### MacOs\n- Python 3.6 or higher\n- Ninja 1.10 or higher\n- apply clang 11 or higher\n- CMake 3.23 or higher\n- make\n- sip 6.5.0 or higher\n- Conan 1.56.0\n\n### Linux\n- Python 3.6 or higher\n- Ninja 1.10 or higher\n- gcc 12 or higher\n- CMake 3.23 or higher\n- make\n- sip 6.5.0 or higher\n- Conan 1.56.0\n\n\n## How To Build\n\n\u003e **Note:**  \n\u003e We are currently in the process of switch our builds and pipelines to an approach which uses [Conan](https://conan.io/)\n\u003e and pip to manage our dependencies, which are stored on our JFrog Artifactory server and in the pypi.org.\n\u003e At the moment not everything is fully ported yet, so bare with us.\n\nIf you want to develop Cura with pyArcus see the Cura Wiki: [Running Cura from source](https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source)\n\nIf you have never used [Conan](https://conan.io/) read their [documentation](https://docs.conan.io/en/latest/index.html)\nwhich is quite extensive and well maintained. Conan is a Python program and can be installed using pip\n\n### 1. Configure Conan\n\n```bash\npip install conan==1.56\nconan config install https://github.com/ultimaker/conan-config.git\nconan profile new default --detect --force\n```\n\nCommunity developers would have to remove the Conan cura repository because it requires credentials. \n\nUltimaker developers need to request an account for our JFrog Artifactory server at IT\n```bash\nconan remote remove cura\n```\n\n### 2. Clone pyArcus\n```bash\ngit clone https://github.com/Ultimaker/pyArcus.git\ncd pyArcus\n```\n\n### 3. Install \u0026 Build pyArcus (Release OR Debug)\n\n#### Release\n```bash\nconan install . --build=missing --update\n# optional for a specific version: conan install . pyarcus/\u003cversion\u003e@\u003cuser\u003e/\u003cchannel\u003e --build=missing --update\nconan build .\n# or\nsip-install\n```\n\n#### Debug\n\n```bash\nconan install . --build=missing --update build_type=Debug\nconan build .\n# or\nsip-install\n```\n\n## Creating a new pyArcus Conan package\n\nTo create a new pyArcus Conan package such that it can be used in Cura and Uranium, run the following command:\n\n```shell\nconan create . pyarcus/\u003cversion\u003e@\u003cusername\u003e/\u003cchannel\u003e --build=missing --update\n```\n\nThis package will be stored in the local Conan cache (`~/.conan/data` or `C:\\Users\\username\\.conan\\data` ) and can be used in downstream\nprojects, such as Cura and Uranium by adding it as a requirement in the `conanfile.py` or in `conandata.yml`.\n\nNote: Make sure that the used `\u003cversion\u003e` is present in the conandata.yml in the pyArcus root\n\nYou can also specify the override at the commandline, to use the newly created package, when you execute the `conan install`\ncommand in the root of the consuming project, with:\n\n\n```shell\nconan install . -build=missing --update --require-override=pyarcus/\u003cversion\u003e@\u003cusername\u003e/\u003cchannel\u003e\n```\n\n## Developing pyArcus In Editable Mode\n\nYou can use your local development repository downsteam by adding it as an editable mode package.\nThis means you can test this in a consuming project without creating a new package for this project every time.\n\n```bash\n    conan editable add . pyArcus/\u003cversion\u003e@\u003cusername\u003e/\u003cchannel\u003e\n```\n\nThen in your downsteam projects (Cura) root directory override the package with your editable mode package.  \n\n```shell\nconan install . -build=missing --update --require-override=pyarcus/\u003cversion\u003e@\u003cusername\u003e/\u003cchannel\u003e\n```\n\n## pyArcus python module\n\nThis repository contains a Python module named pyArcus. To build it [sip](https://pypi.org/project/sip/) 6.5.1\nneeds to be used to generate the C/C++ source code. We created a build tool for this called [sipbuildtool](https://github.com/Ultimaker/conan-ultimaker-index/recipes/sipbuildtool/conanfile.py)\nwhich is automatically installed when you run the `conan install` command. This will set up a temporary virtual Python environment, install\nsip and generated the C/C++ source code. The virtual Python environment is then removed. Downside of this method is that Conan should be\ninstalled with the system Python, not the virtual Python environment.\n\n#### usage\n\n```python\nimport pyArcus\nsocket = pyArcus.Socket()\n```\n\n## Using the Socket\n\n\nThe socket assumes a very simple and strict wire protocol: one 32-bit integer with\na header, one 32-bit integer with the message size, one 32-bit integer with a type id\nthen a byte array containing the message as serialized by Protobuf. The receiving side\nchecks for these fields and will deserialize the message, after which it can be processed \nby the application.\n\nTo send or receive messages, the message first needs to be registered on both sides with \na call to `registerMessageType()`. You can also register all messages from a Protobuf \n .proto file with a call to `registerAllMessageTypes()`. For the Python bindings, this \nis the only supported way of registering since there are no Python classses for \nindividual message types.\n\nThe Python bindings expose the same API as the Public C++ API, except for the missing\n`registerMessageType()` and the individual messages. The Python bindings wrap the\nmessages in a class that exposes the message's properties as Python properties, and\ncan thus be set the same way you would set any other Python property. \n\nThe exception is repeated fields. Currently, only repeated messages are supported, which\ncan be created through the `addRepeatedMessage()` method. `repeatedMessageCount()` will\nreturn the number of repeated messages on an object and `getRepeatedMessage()` will get\na certain instance of a repeated message. See python/PythonMessage.h for more details.\n\n## Origin of the Name\n\nThe name Arcus is from the Roman god Arcus. This god is the roman equivalent of\nthe goddess Iris, who is the personification of the rainbow and the messenger\nof the gods.\n\n## Java\nThere is a Java port of pyArcus, which can be found [here](https://github.com/Ocarthon/pyArcus-Java).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultimaker%2Fpyarcus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fultimaker%2Fpyarcus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fultimaker%2Fpyarcus/lists"}