An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# optpy

[![CI](https://github.com/kenkoooo/optpy/actions/workflows/ci.yml/badge.svg)](https://github.com/kenkoooo/optpy/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/kenkoooo/optpy/branch/main/graph/badge.svg?token=HIXDTWK17I)](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 ...