Add Python Bindings #27
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
kind/enhancement
New feature or request
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 adecode
andencode
#[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 appropriateencode
/decode
Rust functions depending on theCodec
.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.
The text was updated successfully, but these errors were encountered: