Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python binding? #19

Open
hongquan opened this issue Feb 8, 2018 · 6 comments
Open

Python binding? #19

hongquan opened this issue Feb 8, 2018 · 6 comments

Comments

@hongquan
Copy link

hongquan commented Feb 8, 2018

Could you please add Python binding for this lib? Also add wheel package for ARM.

I would like to use it in ARM board, to replace the Python-pure client.

@driftluo
Copy link
Owner

driftluo commented Feb 9, 2018

Emmm ... it is a good idea to export this library to C lib and then wrap it for work in Python, I will try to do it but the completion time is indefinite.

If you want to use it immediately, I think this is a bad idea and it is welcome if you want to contribute.

@hongquan
Copy link
Author

hongquan commented Feb 9, 2018

I also want to contribute but my Rust level is still very low (not even do trait and impl yet) .

cargo let you cross-compile to support ARM board. But I don't know how to tell setuptools to cross-compile.

For "export this library to C lib", I think it needs your side to expose some API as pub extern "C" fn and also define some C structures equivalent to Rust data type.

I've just read this and found that a Rust data type doesn't always have an equivalent in C.

@driftluo
Copy link
Owner

driftluo commented Feb 9, 2018

There is a library to Rust binding to Python, but currently only supports nightly, I don't very want to use it. Probably still use ffi export to do, but this seems a bit complicated.

@weaming
Copy link

weaming commented Mar 30, 2019

@driftluo Why not try https://github.com/dgrunwald/rust-cpython? This seems do not require nightly rust.

@faulesocke
Copy link

Why don't you use this? https://github.com/influxdata/influxdb-python

@hongquan
Copy link
Author

@weaming That rust-cpython requires to write very longer code.

@faulesocke Bad performance on low-end computer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants