Skip to main content

Generates complete Python projects from a single prompt.

Project description

CapOv — Captain Obvious

Fixes the dumbest, most obvious Python code errors automatically.

CapOv corrects only the 100% safe stuff: missing imports, duplicate imports, unclosed brackets, and more — with zero assumptions.


🔧 Installation

pip install capov

🚀 Example usage

from capov.fixers import process

code = '''
import os
import os
x = [1, 2, 3,
print(json.dumps(x)
'''

fixed = process(code)
print(fixed)

Command-line:

python -m capov your_script.py [options]

Options:

  • --in-place → Overwrite the input file
  • --output FILENAME → Write fixed code to a separate file
  • --backup → Create a .bak backup before overwrite
  • --verbose → Print debug messages
  • --log FILE → Log to specified log file

🧪 Run tests

To verify installation and test functionality:

python3 -m capov.tests

🗂 Project structure

  • capov/ — main package
    • fixers.py — bug fixing logic
    • main.py — CLI entry point
    • example.py — example usage
    • tests/
      • test_cli_full.py — full run tests
      • test_cli_params.py — CLI parameter tests
      • test_module_usage.py — module usage tests
      • faulty_scripts/ — broken Python samples

CapOv is your cleanup butler. Let him sweep the dumb bugs so you don't have to.

Submit bugs or contribute: https://github.com/HansPeterRadtke/capov

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

llm_project_builder-0.1.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

llm_project_builder-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file llm_project_builder-0.1.0.tar.gz.

File metadata

  • Download URL: llm_project_builder-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for llm_project_builder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8ca2345331ca6450058e74b541d4284fb3e740b3768128f5ec474dd41c0631c1
MD5 d516eb12c06074026d0c8e7b5eb33e1a
BLAKE2b-256 3da66a55d6e4d9af94b2089007261fcd0fe802905536934245cee47d8fa63b1d

See more details on using hashes here.

File details

Details for the file llm_project_builder-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_project_builder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 496ebf29fcfc4380b568772ff352bb9f6ca87224191589fa6b8ac558aa447795
MD5 db7a270d30a1699993dda9b91964191f
BLAKE2b-256 12e52940f04615fbc1662a386ac7a8a48d30f791683a914fc30970c03537b429

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