Skip to content
/ pyrust Public

A minimal skeleton for building Rust applications with a Python frontend

License

Notifications You must be signed in to change notification settings

eegli/pyrust

Repository files navigation

PyRust

A minimal skeleton for building Rust applications with a Python frontend.

Building native, Rust-based Python modules is not very straightforward, especially since most inter-dependencies are barely explained in the maturin tutorial. A full walkthrough for this template is available at TODO.

This template includes:

  • Rust as a foundation with support for Cargo workspaces
  • A generated Python package
  • A CLI implemented in Rust, exposed to Python
  • Stubs to enable Python type hints
  • Test setup, including GitHub actions
  • Linting and packaging
  • A Makefile for convenience

Further reading and sources:

Some design choices are inspired by how Polars and uv create Rust bindings for Python.

About

A minimal skeleton for building Rust applications with a Python frontend

Topics

Resources

License

Stars

Watchers

Forks