大语言模型翻译器终端
Project description
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
pip install dmxfy
Configuration
Before using DMXFY, you need to set your Alibaba Cloud API key as an environment variable:
export DMXFY_API_KEY=your_api_key_here
Usage
Run the tool with:
dmxfy
Commands
\\e- Switch to English-to-Chinese translation mode\\c- Switch to Chinese-to-English translation modeCtrl+C- Exit the program
Development
Setup
- Clone the repository
- Install dependencies with
pip install -e . - Set the
DMXFY_API_KEYenvironment variable
Running Tests
pytest
Code Quality
# Run linter
ruff check .
# Run type checker
mypy src/
# Format code
black src/
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dmxfy-0.6.1.tar.gz
(66.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dmxfy-0.6.1-py3-none-any.whl
(8.3 kB
view details)
File details
Details for the file dmxfy-0.6.1.tar.gz.
File metadata
- Download URL: dmxfy-0.6.1.tar.gz
- Upload date:
- Size: 66.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f91fb3ce80c369062a910ed9437a293a61eb2b0f061f521d527497cfe4b1cd8
|
|
| MD5 |
ba6367d16253c283b55499257226b111
|
|
| BLAKE2b-256 |
585318fa1b993f5cd3832fc918f8fba023d194afb330b9bd44f5fc93ef1d624d
|
File details
Details for the file dmxfy-0.6.1-py3-none-any.whl.
File metadata
- Download URL: dmxfy-0.6.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
078cba6097bdee95a6963a2964ad0d8e0520f4bd57ca717c6ba302afb67072fa
|
|
| MD5 |
0ae47a746963a55baf6f13309b495591
|
|
| BLAKE2b-256 |
401292afec4306cc54bdb5dc53cc2d65416f2dedaefff4e1fa1e54e050e72f98
|