Skip to content

feat: add python bindings#59

Open
jorgehermo9 wants to merge 1 commit into
mainfrom
feature/python-binddings
Open

feat: add python bindings#59
jorgehermo9 wants to merge 1 commit into
mainfrom
feature/python-binddings

Conversation

@jorgehermo9

Copy link
Copy Markdown
Owner

TODO:

  • Publish on github action when releasing a new version
  • work with python dicts instead of strings
  • support only json or yaml too? like we do in javascript with the JsData struct

Comment thread crates/python/src/lib.rs
use pyo3::exceptions::PyValueError;
use pyo3::prelude::*;

/// Formats the sum of two numbers as string.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: better documentation xd

Comment thread crates/python/src/lib.rs

/// Formats the sum of two numbers as string.
#[pyfunction]
fn gq(query: &str, data: &str) -> PyResult<String> {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: this creates bindings with kwargs. Is this desirable? or should we use positional args

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

Successfully merging this pull request may close these issues.

1 participant