Skip to main content

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 check
  • POST /api/analyze - Analyze code
  • POST /api/detect - Detect language
  • GET /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.1.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

pactfix-1.0.1-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file pactfix-1.0.1.tar.gz.

File metadata

  • Download URL: pactfix-1.0.1.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pactfix-1.0.1.tar.gz
Algorithm Hash digest
SHA256 385c25eefe8fbf375942bf617e0012c7282357f99bcaf7c8e7ed0c810ed16420
MD5 2b64557ddbc2e0f4837e8b6dfc8a600d
BLAKE2b-256 6e0c8b0fb6635311531d42e2db6797c5cbff38ecbb66327c89ccdeb22441948f

See more details on using hashes here.

File details

Details for the file pactfix-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pactfix-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pactfix-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00ef317b3b06349311c54fd9617825ef653df7d1d33afd0959e6f2c3328d7257
MD5 244f8b681947a0c883b621d2c691c28b
BLAKE2b-256 6dffa5d8bfd9ac1ae798c9bbbab26cab671e1c32a6ac3b6af9fbaae2e86e64e8

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