Metadata-Version: 2.4
Name: pactfix
Version: 1.0.1
Summary: Multi-language code and config file analyzer and fixer
License: Apache-2.0
Project-URL: Homepage, https://github.com/wronai/pactfix-debug
Project-URL: Repository, https://github.com/wronai/pactfix-debug
Keywords: linter,code-analysis,bash,python,php,javascript,docker,sql,terraform,kubernetes
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: flask>=2.0.0
Requires-Dist: flask-cors>=3.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"

# 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

```bash
pip install -e .
```

## CLI Usage

```bash
# 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

```bash
# 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

```bash
docker build -t pactfix .
docker run -p 5000:5000 pactfix
```
