- Make sure you have Python installed on your system
- Open the terminal
- Install SpiceCode via PIP with:
pip install spicecode- After installing via PIP, you can run these three commands: (replace file with the filename)
spice hellospice translatespice analyze FILE- EXAMPLE:
spice analyze code.js- Python (.py)
- JavaScript (.js)
- Ruby (.rb)
- Go (.go)
You can visit our page on the pypi registry: https://pypi.org/project/spicecode/
- Clone the repo to your machine
- Go to the cloned spicecode folder
- Create a python virtual environment (venv):
python -m venv venv-
Activate your virtual environment:
-
Windows
./venv/Scripts/activate- Linux
source ./venv/bin/activate- Install all packages from requirements.txt:
pip install -r requirements.txt- Install (build) the spicecode package locally:
pip install -e .- Have fun!
spice versionspice hellospice translatespice analyze