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
Metadata
Release files for capov 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| capov-0.1.6.tar.gz | 7.1 kB | Without provenance | Details for capov-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| capov-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for capov-0.1.6-py3-none-any.whl |
Total release size: 16.6 kB
Release files / capov-0.1.6.tar.gz
| Download URL | capov-0.1.6.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0246bf1983f33af999714709471077c070599dad312c2056e3417793a31a5897
|
|
BLAKE2b-256 checksum How to use checksums |
7233fb6f15b5a2ce847a89a4469396b76c319253684e85dd9ca95642807f79ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / capov-0.1.6-py3-none-any.whl
| Download URL | capov-0.1.6-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a629d8b5bc4bcdc3cbf99a1127899714914244e3bd4ca17925f5fd0c65c2bdf1
|
|
BLAKE2b-256 checksum How to use checksums |
1706696daac9e340556ef286a0299fc5dd20994dc60bd19541ee2f41c22b72e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for capov 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.