Metadata-Version: 2.4
Name: gitlab-ci-optimizer
Version: 0.1.0
Summary: Analyze and optimize GitLab CI configurations
Author: Alexandre Anastassiades
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: click>=8.0
Requires-Dist: pyyaml>=6.0

# GitLab CI Optimizer

Analyze and optimize your GitLab CI/CD pipeline configurations.

## Installation

```bash
pip install gitlab-ci-optimizer
```

## Usage

### Analyze a pipeline

```bash
gitlab-ci-optimizer analyze .gitlab-ci.yml
```

### Generate optimized configuration

```bash
gitlab-ci-optimizer optimize .gitlab-ci.yml -o .gitlab-ci-optimized.yml
```

### Generate a template

```bash
# Node.js
gitlab-ci-optimizer template node -o .gitlab-ci.yml

# Python
gitlab-ci-optimizer template python -o .gitlab-ci.yml

# Docker
gitlab-ci-optimizer template docker -o .gitlab-ci.yml

# Go
gitlab-ci-optimizer template go -o .gitlab-ci.yml
```

## Options

- `-o, --output` - Output file path
- `-f, --format` - Output format (json, yaml, text) for analyze command
- `-v, --verbose` - Verbose output

## Features

- Parse and validate `.gitlab-ci.yml` files
- Detect optimization opportunities (caching, parallelization, artifacts)
- Generate optimized pipeline configurations
- Support for Node.js, Python, Docker, Go, Rust, and Java templates
