DEWETRON / TRION-SDK

DEWETRON TRION SDK. TRION API description and example sources.
https://dewetron.github.io/TRION-SDK/
MIT License
1 stars 2 forks source link

Python Package Support #9

Open willjschmitt opened 2 months ago

willjschmitt commented 2 months ago

I'd like to include the TRION Python SDK into our tools that leverage Dewetron TRION equipment, and while I might understand you aren't publishing to PyPi, the Python SDK folder doesn't contain any package definitions which doesn't afford the ability to pip install at all using a git URL (e.g. how the pyDmdReader package suggests installation). The example assumes a checkout of this repository, adding the Python bindings as a manual path modification, suggesting its the expected approach, which is pretty unideal for anything except a quick script. I'd like to be able to use the standard Python tools at the very least, so is there a world where a setup.py (or pyproject.toml) could be defined for the Python package, so that we can install with pip?

Secondarily, it would be nice not to have to use a GUI installer for the Dewetron API to be able to use the SDK, instead hermetically including it as a dependency of our build process (perhaps as a dll/so with a published package to PyPi), but I get that might be a harder reach (although very much desired)

matthiasstraka commented 2 days ago

Thanks for the request. It is certainly possible to package the python binding into something that PIP can install directly from GitHub. We are currently busy with other projects, but I will take a look at it in the near future and comment progress on this ticket.

Update: I added a quick set of setup.py files that allows to install from GitHub already. We still need to update the examples and documentation to reflect those changes.

pip install git+https://github.com/DEWETRON/TRION-SDK.git