-
Notifications
You must be signed in to change notification settings - Fork 4
Go as c-shared library for Python #16
Comments
@alexnavis Today I learned that you can compile Go code as C shared libraries :) But that also means I have zero experience with it. Sounds feasible though. All the options are a reasonable bit of effort, so I would say do whatever seems least annoying in your context? |
:). Sure thanks for the reply. To create the python client, is "chronix.go" good reference or the java client ? |
@alexnavis TBH I wrote that Go client library as an external contractor two years ago and haven't followed Chronix much since then. @FlorianLautenschlager would be able to give you a better idea of whether anything in there is outdated, but back then it was a pretty basic client for our immediate requirements. The Java libraries might be more complete. |
@FlorianLautenschlager Any thoughts from your side ? |
@alexnavis your suggested solution with the c-shared library sounds good (but I have no experience with that either). Regardless, do you want to read and write or just read with the client? Reading is less complicated to implement. I would make the implementation dependent on this decision.
Query: Chronix can also serialize the time series data as JSON (that's not very fast at the moment) but allows easy integration. Regardless, I can assist with the development. |
Thanks for the reply and the information.
Thanks, |
Hi @alexnavis,
I would suggest to write a plain python client as the read is not too complicated to implement even when using the protobuf protocol. Maybe a new repository within the chronix org (but it is up to you).
I would prefer github issues, so other can see whats happening. |
Hi,
Currently I'm using ChronixDB for a project. We need to query data from ChronixDB from our python code. I see 3 options
- Reference: https://dustymabe.com/2016/09/13/sharing-a-go-library-to-python-using-cffi/
Questions
Thanks,
Alex
The text was updated successfully, but these errors were encountered: