PyCrust
1.0.0
Pie-Crust / Py (C) Rust
Pycrust adalah alat baris perintah yang mengubah kode Python ke kode karat, menggantikan pustaka Python dengan pustaka karat yang setara sedapat mungkin. Ini menggunakan OpenAI Chatgpt API untuk melakukan transpilasi.
git clone https://github.com/JediRhymeTrix/pycrust.git
cd pycrust
.env
dengan kunci API chatgpt Anda: echo "API_KEY=<your-api-key>" > .env
chmod +x scripts/pycrust.sh
./pycrust.sh /path/to/input.py
untuk mentranspile kode python ke kode karat. Output akan disimpan dalam file dengan nama yang sama dengan file input, tetapi dengan ekstensi .rs
. pycrust/
├── docker-compose.yml
├── Dockerfile
├── scripts/
│ ├── download_dependencies.sh
│ └── pycrust.sh
├── src/
│ ├── __init__.py
│ └── pycrust.py
├── tests/
│ └── test_pycrust.py
└── requirements.txt