大语言模型翻译器终端
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
- Support for 40+ languages
- Switch between translation directions (Chinese to English / English to Chinese)
- 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.5.4.tar.gz
(64.9 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.5.4-py3-none-any.whl
(7.7 kB
view details)
File details
Details for the file dmxfy-0.5.4.tar.gz.
File metadata
- Download URL: dmxfy-0.5.4.tar.gz
- Upload date:
- Size: 64.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d786f45a46556fae3b936ad5df3be70fd565af2a17e58b0b2eb128ddc4c2c78f
|
|
| MD5 |
9e380093f7ba272ac0e26ac16dbadedd
|
|
| BLAKE2b-256 |
61732315f9283b518db0d9a0afb8c985dcb72e44314f699ad190ba707360f20c
|
File details
Details for the file dmxfy-0.5.4-py3-none-any.whl.
File metadata
- Download URL: dmxfy-0.5.4-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8d7cb132dd4a04bd7d092c2bca5516d80842382bf6870b2522cd42d4be5e6a6
|
|
| MD5 |
5e089941e886b0ee647e9dadeb97643d
|
|
| BLAKE2b-256 |
d2e0ee23de335099f98099b910d5ecd63831b017921bf23085999fdf8795e5da
|