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

Add Python Bindings #27

Open
XAMPPRocky opened this issue Aug 11, 2021 · 0 comments
Open

Add Python Bindings #27

XAMPPRocky opened this issue Aug 11, 2021 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed kind/enhancement New feature or request

Comments

@XAMPPRocky
Copy link
Collaborator

XAMPPRocky commented Aug 11, 2021

I'd like to be able to provide easy integration between rasn and python code, so I'd like to add a feature to the macros to have them also generate PyO3 bindings, and provide these bindings for the crates in the repository. My hope is that all that should be required is adding #[pyclass], and adding a decode and encode #[pymethod] functions that accept a enum (enum Codec { Ber, Der, Cer }, I know python doesn't have enums like rust but you know what I mean) and call the appropriate encode/decode Rust functions depending on the Codec.

I don't have time to work on this in the near future, but I would be able to help and review a PR to add it, so if anyone is interested in adding this themselves feel free to post in the issue.

@XAMPPRocky XAMPPRocky added kind/enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant