https://github.com/kenkoooo/optpy
optpy is a transpiler to generate a Rust file from a Python file
https://github.com/kenkoooo/optpy
python rust transpiler
Last synced: about 1 year ago
JSON representation
optpy is a transpiler to generate a Rust file from a Python file
- Host: GitHub
- URL: https://github.com/kenkoooo/optpy
- Owner: kenkoooo
- License: mit
- Created: 2022-08-11T01:39:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-15T08:55:59.000Z (over 3 years ago)
- Last Synced: 2024-05-02T05:01:49.768Z (about 2 years ago)
- Topics: python, rust, transpiler
- Language: Rust
- Homepage:
- Size: 807 KB
- Stars: 28
- Watchers: 2
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# optpy
[](https://github.com/kenkoooo/optpy/actions/workflows/ci.yml)
[](https://codecov.io/gh/kenkoooo/optpy)
`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.](https://github.com/kenkoooo/optpy/releases)
## Usage
```sh
./optpy compile [Output Rust file]
```
# TODO
- [x] Functions
- [x] `for` & `while` loops
- [x] List comprehension
- [ ] Bigint
- [ ] Classes
- [ ] Modules
- [ ] and so many things ...