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

14 lines
376 B
Python
Raw Permalink Normal View History

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