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 client #258

Open
tmct opened this issue Feb 7, 2025 · 4 comments
Open

Python client #258

tmct opened this issue Feb 7, 2025 · 4 comments

Comments

@tmct
Copy link

tmct commented Feb 7, 2025

Hi, have you ever thought about releasing a Python client for this? There are already Python wrappers for jq, but they of course require jq to be installed, and would not benefit from the speedups that you have achieved in this Rust library.

I could be wrong, but there doesn't seem to be a library that lets you do fast "jq" operations easily from Python, with no external deps. Interested to hear what you think.

Thanks,
Tom

@tmct
Copy link
Author

tmct commented Feb 7, 2025

(At first glance looks like this is very much focussed on being a CLI than a library, which makes sense!)

@01mf02
Copy link
Owner

01mf02 commented Feb 7, 2025

Hi @tmct, this idea has never crossed my mind before! jaq is very much also usable as a library (not only as CLI), so a Python wrapper seems quite doable. However, I personally have neither the time nor the motivation to create such a wrapper myself. If you --- or somebody else --- wants to go ahead and create such a wrapper, I could try to help out with problems occurring on the Rust side.

@tmct
Copy link
Author

tmct commented Feb 7, 2025

Thank you @01mf02 - I will let you know if I find myself with the capacity to tackle that - would love to use it! (If anyone else gets there first - great.)

@wader
Copy link
Contributor

wader commented Feb 7, 2025

Haven't used it myself directly but i've review code that uses https://github.com/PyO3/pyo3 and it seems very nice for creating bindings

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

No branches or pull requests

3 participants