Multi-language code and config file analyzer and fixer
Project description
Pactfix
Multi-language code and config file analyzer and fixer.
Supported Languages
Code
- Bash
- Python
- PHP
- JavaScript
- Node.js
Config Files
- Dockerfile
- docker-compose.yml
- SQL
- Terraform
- Kubernetes YAML
- nginx config
- GitHub Actions
- Ansible playbooks
Installation
pip install -e .
CLI Usage
# Analyze single file
pactfix input.py -o output.py --log-file log.json -v
# Batch process directory
pactfix --batch ./src
# Fix all example files
pactfix --fix-all
# Output as JSON
pactfix input.py --json
API Server
# Run server
python -m pactfix.server
# Or with custom port
PORT=8000 python -m pactfix.server
Endpoints
GET /api/health- Health checkPOST /api/analyze- Analyze codePOST /api/detect- Detect languageGET /api/languages- List supported languages
Docker
docker build -t pactfix .
docker run -p 5000:5000 pactfix
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
pactfix-1.0.0.tar.gz
(15.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pactfix-1.0.0-py3-none-any.whl
(31.2 kB
view details)
File details
Details for the file pactfix-1.0.0.tar.gz.
File metadata
- Download URL: pactfix-1.0.0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deb2c617d7264721b53368d792274bc19374bb9cdafb1f9f2e0a7c4cab6f7434
|
|
| MD5 |
c252009d89f98bd9afe3beabeb8aac60
|
|
| BLAKE2b-256 |
df9c805e84698c3c5196679de25956b0ff985361015013cc1e26a34b8056a077
|
File details
Details for the file pactfix-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pactfix-1.0.0-py3-none-any.whl
- Upload date:
- Size: 31.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17ffae7bd45ec79c15c2f1552f80fd0e0e095925ba71912256714e97f9abba8d
|
|
| MD5 |
b37ce990cadb7e04feb32b241aa41af6
|
|
| BLAKE2b-256 |
b7e4e8da5b943ebc8fbe1a6e6df651b1f61ebe4a7ab246217a6f5fc8231f98fa
|