#pyo3 #python #python-bindings #constructor #macro #pyclass

macro pyo3_macro

A Rust macro crate builds PyO3-compatible Rust protobuf and gRPC structures. So you can easily expose your generated protobuf code as Pythin binding through PyO3. Features Macro with_new that implements __new__ constructor for Rust Python binding. Macro with_pyclass that adds customized pyclass attributes macro for your Rust structures.”

5 releases

0.1.4 Jun 27, 2024
0.1.3 Jun 27, 2024
0.1.2 Jun 23, 2024
0.1.1 Jun 7, 2024
0.1.0 Jun 2, 2024

#566 in Procedural macros

31 downloads per month

Apache-2.0

25KB
119 lines

PyO3-macro

A Rust macro crate builds PyO3-compatible Rust protobuf and gRPC structures. So you can easily expose your generated protobuf code as Pythin binding through PyO3.

Features

  1. Macro with_new that implements __new__ constructor for Rust Python binding.
  2. Macro with_pyclass that add pyclass attributes macro for your structures.

Dependencies

~1.5MB
~35K SLoC