optpy icon indicating copy to clipboard operation
optpy copied to clipboard

optpy is a transpiler to generate a Rust file from a Python file

optpy

CI codecov

optpy is a transpiler to generate a Rust file from a Python file.

https://user-images.githubusercontent.com/9150073/200675788-267792f1-a14c-4746-a51d-1e0ecb0c3bac.mp4

Installation

Archives of precompiled binaries are available for Linux and macOS.

Usage

./optpy compile <Input Python file> [Output Rust file]

TODO

  • [x] Functions
  • [x] for & while loops
  • [x] List comprehension
  • [ ] Bigint
  • [ ] Classes
  • [ ] Modules
  • [ ] and so many things ...