PyCrust
1.0.0
Kuchenkruste / Py (c) Rost
Pycrust ist ein Befehlszeilen-Tool, das den Python-Code in Rostcode umsetzte und Python-Bibliotheken durch immer möglich durch äquivalente Rostbibliotheken ersetzt. Es verwendet die OpenAI -Chatgpt -API, um die Transpilation durchzuführen.
git clone https://github.com/JediRhymeTrix/pycrust.git
cd pycrust
.env
Datei mit Ihrem Chatgpt-API-Schlüssel: echo "API_KEY=<your-api-key>" > .env
chmod +x scripts/pycrust.sh
./pycrust.sh /path/to/input.py
um den Python -Code in Rostcode zu transpilieren. Die Ausgabe wird in einer Datei mit demselben Namen wie der Eingabedatei gespeichert, jedoch mit der Erweiterung .rs
. pycrust/
├── docker-compose.yml
├── Dockerfile
├── scripts/
│ ├── download_dependencies.sh
│ └── pycrust.sh
├── src/
│ ├── __init__.py
│ └── pycrust.py
├── tests/
│ └── test_pycrust.py
└── requirements.txt