8000 GitHub - SushantPulavarthi/PyFixer: Simple Kotlin CLI tool to fix syntax/runtime errors by feeding it to Perplexity.ai
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

SushantPulavarthi/PyFixer

Repository files navigation

PyFixer

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.

Usage

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

Demo

specified_path.mp4
specified_path2.mp4
interactive.mp4

Alternative Link to Demos (Imgur)

Environment Variables

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.

About

Simple Kotlin CLI tool to fix syntax/runtime errors by feeding it to Perplexity.ai

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0