Metadata-Version: 2.4
Name: dmxfy
Version: 0.6.1
Summary: 大语言模型翻译器终端
Author-email: workspc <wokspc@gmail.com>
Requires-Python: >=3.11
Requires-Dist: prompt-toolkit>=3.0.0
Provides-Extra: test
Requires-Dist: pytest-cov>=4.1.0; extra == 'test'
Requires-Dist: pytest<8.0.0,>=7.4.3; extra == 'test'
Description-Content-Type: text/markdown

# DMXFY - 大语言模型翻译器

DMXFY is a terminal-based translation tool powered by Alibaba Cloud's Qwen-MT-Turbo model. It provides a simple command-line interface for translating text between multiple languages.

## Features

- Interactive terminal interface with history support
- Support for 40+ languages
- Switch between translation directions (Chinese to English / English to Chinese)
- Command history with up/down arrow navigation
- Reverse history search with Ctrl+R
- Powered by Alibaba Cloud's Qwen-MT-Turbo model

## Installation

```bash
pip install dmxfy
```

## Configuration

Before using DMXFY, you need to set your Alibaba Cloud API key as an environment variable:

```bash
export DMXFY_API_KEY=your_api_key_here
```

## Usage

Run the tool with:

```bash
dmxfy
```

### Commands

- `\\e` - Switch to English-to-Chinese translation mode
- `\\c` - Switch to Chinese-to-English translation mode
- `Ctrl+C` - Exit the program

## Development

### Setup

1. Clone the repository
2. Install dependencies with `pip install -e .`
3. Set the `DMXFY_API_KEY` environment variable

### Running Tests

```bash
pytest
```

### Code Quality

```bash
# Run linter
ruff check .

# Run type checker
mypy src/

# Format code
black src/
```

## License

MIT
