PyCrust
1.0.0
Pie-crust / py (c) สนิม
PyCrust เป็นเครื่องมือบรรทัดคำสั่งที่ transpiles รหัส Python เป็นรหัสสนิมแทนที่ไลบรารี Python ด้วยไลบรารีสนิมที่เทียบเท่าทุกที่ที่เป็นไปได้ มันใช้ OpenAI chatgpt API เพื่อดำเนินการ transpilation
git clone https://github.com/JediRhymeTrix/pycrust.git
cd pycrust
.env
ด้วยคีย์ chatgpt api ของคุณ: echo "API_KEY=<your-api-key>" > .env
chmod +x scripts/pycrust.sh
./pycrust.sh /path/to/input.py
เพื่อ transpile รหัส Python เป็นรหัสสนิม เอาต์พุตจะถูกบันทึกในไฟล์ที่มีชื่อเดียวกับไฟล์อินพุต แต่ด้วยส่วนขยาย. .rs
pycrust/
├── docker-compose.yml
├── Dockerfile
├── scripts/
│ ├── download_dependencies.sh
│ └── pycrust.sh
├── src/
│ ├── __init__.py
│ └── pycrust.py
├── tests/
│ └── test_pycrust.py
└── requirements.txt