Skip to main content

A smart CLI runner that analyzes command errors and suggests fixes.

Project description

🛠️ runfix

Stop googling errors. Let runfix do the dirty work.

A lightweight, smart CLI tool that executes commands, intercepts errors, and actively fixes your code so you can stay in the flow.

🇹🇷 Türkçe döküman için buraya tıklayın.


🚀 Overview

runfix is not just an error formatter; it's your local terminal copilot. Instead of manually copying tracebacks to search for solutions, runfix analyzes stderr and offers active fixes—from installing missing packages to repairing typos and indentations directly in your Python scripts.

✨ Key Features

  • 🧠 Smart Execution: Auto-detects file types. Just type runfix run app.py and it knows to run python app.py. (Also supports .js and .sh).
  • 🔧 Active Code Fixer: - 📦 Missing a library? It prompts to run pip install.
    • 📝 Forgot to import json? It adds the import to the top of your file.
    • 🔤 Typo in a variable? It scans your file, finds the closest match, and replaces it.
    • 📑 Indentation broken? It auto-aligns the broken line based on context.
  • 🛡️ Safe by Design: Before altering any of your source code, it automatically creates a .bak backup file.
  • 🪄 First-Run Wizard: Setup your language, color preferences, and auto-fix rules on the first run.
  • ⚡ Minimalist: Zero heavy dependencies. Pure Python power.

📦 Installation

Grab the latest version directly from PyPI:

pip install --upgrade runfix

And Setup with:

runfix

💡 Quick Start

Simply wrap your target file with runfix run:

runfix run my_script.py

If it fails, runfix catches the error and offers a fix:

[+] Smart Detect: .py file -> 'python'

[!] Error: NameError
[-] Message: name 'jsn' is not defined
[*] Fix: Typo at line 12: 'jsn'. Did you mean 'json'? Fix it?

? Apply this? [y/N]: y
-> Applying fix...
[] All done!

⚙️ Configuration

Don't want to confirm every fix? Turn on auto-fix to let runfix apply solutions instantly:

runfix config --auto-fix on

Change the output language to supported languages like Turkish:

runfix config --lang tr

Disable colorful output:

runfix config --color off

📜 License

Distributed under the MIT License. See LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runfix-0.2.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runfix-0.2.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file runfix-0.2.0.tar.gz.

File metadata

  • Download URL: runfix-0.2.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for runfix-0.2.0.tar.gz
Algorithm Hash digest
SHA256 88721ea041518423abb03c5c6e46f5d0b0809e56a089c49d1ab1eef0abc0b38a
MD5 b03714b30dd8131e808c1c7e53fdbc78
BLAKE2b-256 5e4c1aa82376901c687a997652d44ba5456088b35993a0f48b744e77d0c1863e

See more details on using hashes here.

File details

Details for the file runfix-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: runfix-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for runfix-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8521095f9aac5eafdca2a19d0abc9036930ae63845e7288dcbf27422affc366a
MD5 ecfa30c5aa0a509c6db2d080a38ac650
BLAKE2b-256 615b3c07a4ee9732a98c6e222e74b842298767cade7294c664ba78e7d0b85b8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page