Metadata-Version: 2.4
Name: transphrase
Version: 0.1.1
Summary: AI-powered web novel translation tool
Author-email: shinyPy <adveniscool@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/shinyPy/TransPhrase
Project-URL: Issues, https://github.com/shinyPy/TransPhrase/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rich>=14.0.0
Requires-Dist: tenacity>=9.1.0
Requires-Dist: openai>=1.70.0
Requires-Dist: readchar>=4.2.1
Requires-Dist: sqlalchemy>=2.0.40
Dynamic: license-file

# TransPhrase

TransPhrase is an AI-powered tool for translating web novels and other text content using various language models.

## Features

- Supports multiple AI models for translation
- Interactive model selection with real-time filtering
- Automatic caching of translations to avoid redundant API calls
- Rate limiting to prevent API quota exhaustion
- Multi-threaded processing for faster translation
- Database tracking of translation jobs
- Plugin system for custom prompt templates

## Installation

### Using pip

```bash
pip install transphrase
```

### From source

```bash
git clone https://github.com/shinyPy/TransPhrase.git
cd TransPhrase
pip install -e .
```

## Usage

Once installed, you can run TransPhrase from the command line:

```bash
transphrase
```

Follow the interactive prompts to configure your translation job:

1. Enter the source directory containing text files to translate
2. Select an output directory
3. Choose a language model
4. Select a prompt template
5. Configure additional options

## Configuration

TransPhrase looks for an API key in the `MASTER_API_KEY` environment variable. You can set this in your environment or provide it when prompted.

## Requirements

- Python 3.9+
- OpenAI API key or compatible API endpoint

## License

MIT
