Metadata-Version: 2.4
Name: api2cli
Version: 0.1.1
Summary: Convert APIs to CLI tools
Author-email: Your Name <your.email@example.com>
License: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.12
Requires-Dist: requests>=2.31.0
Requires-Dist: typer>=0.12.0
Description-Content-Type: text/markdown

# api2cli

Convert APIs to CLI tools.

## Installation

```bash
pip install api2cli
```

Or with uv:

```bash
uv add api2cli
```

## Usage

```bash
api2cli --version
```

### Minimax

Set your API key:

```bash
export MINIMAX_API_KEY="your_api_key_here"
```

Generate an image:

```bash
api2cli minimax image --prompt "A cinematic mountain sunrise" --output-file /tmp/mountain.png
```

Generate speech:

```bash
api2cli minimax tts --text "Hello from Minimax" --output-file /tmp/voice.mp3
```

## Development

This project uses [uv](https://docs.astral.sh/uv/) for dependency management.

```bash
# Install dependencies
uv sync

# Run the CLI
uv run api2cli --version
```

## Publishing

To publish a new version to PyPI:

1. Update the version in `src/api2cli/__init__.py` and `pyproject.toml`
2. Create and push a git tag:
   ```bash
   git tag v0.1.0
   git push origin v0.1.0
   ```
3. GitHub Actions will automatically build and publish to PyPI

## License

MIT
