pyo3/examples/maturin-starter/maturin_starter/__init__.py

12 lines
333 B
Python

# import the contents of the Rust library into the Python extension
# optional: include the documentation from the Rust module
from .maturin_starter import *
from .maturin_starter import __all__, __doc__
__all__ = __all__ + ["PythonClass"]
class PythonClass:
def __init__(self, value: int) -> None:
self.value = value