Skip to main content

大语言模型翻译器终端

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 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

pytest

Code Quality

# Run linter
ruff check .

# Run type checker
mypy src/

# Format code
black src/

License

MIT

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dmxfy-0.5.4-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

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

Hashes for dmxfy-0.5.4.tar.gz
Algorithm Hash digest
SHA256 d786f45a46556fae3b936ad5df3be70fd565af2a17e58b0b2eb128ddc4c2c78f
MD5 9e380093f7ba272ac0e26ac16dbadedd
BLAKE2b-256 61732315f9283b518db0d9a0afb8c985dcb72e44314f699ad190ba707360f20c

See more details on using hashes here.

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

Hashes for dmxfy-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e8d7cb132dd4a04bd7d092c2bca5516d80842382bf6870b2522cd42d4be5e6a6
MD5 5e089941e886b0ee647e9dadeb97643d
BLAKE2b-256 d2e0ee23de335099f98099b910d5ecd63831b017921bf23085999fdf8795e5da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page