PyFixer is an AI-powered CLI tool designed to streamline fixing common syntax and runtime issues within Python files. To do this it analyzes Python files by compiling them to check for any errors, then uses Perplexity.ai to fix these.
Pre-Requisite: Will need a Perplexity.ai API key to use the tool.
./pyfixer.sh # On first run will build the gradle distribution
# Subsequent runs will an start interactive session
./pyfixer.sh [path to python file] # Will start analyzing and attempt to fix this file
./pyfixer.sh --rebuild # Included if gradle application needs to be rebuilt
specified_path.mp4
specified_path2.mp4
interactive.mp4
Alternative Link to Demos (Imgur)
Must define a .env
file in running directory or define environment variables as System variables.
PPLX_API_KEY
- Perplexity.ai API Key that will be used during by the CLI tool.
Optional:
MAX_ALLOWED_ATTEMPTS
- Optional parameter that defines the maximum number requests the CLI tool will try before giving up.
- By default, this is set to
5
.