Skip to main content

Translate Markdown using OpenAI

Project description

TRMD

License Python

Translate Markdown using OpenAI.

Table of Contents

Prerequisites

  • Python 3.13 and above

Install

  • with brew
brew tap rioriost/trmd
brew install trmd
  • with uv
uv init your_project
cd your_project
uv venv
source .venv/bin/activate
uv add trmd
  • with python venv on macOS / Linux
mkdir your_project
cd your_project
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install trmd
  • with python venv on Windows
mkdir your_project
cd your_project
python -m venv venv
.\venv\Scripts\activate
python -m pip install trmd

Usage

trmd --help
usage: trmd [-h] [-o OUTPUT_FILE] [-k KEY] [-m MODEL] [--temperature TEMPERATURE] [--fragment-size FRAGMENT_SIZE] [-s {en,fr,es,de,it,pt,ru,ja,zh,ko}]
            [-t {en,fr,es,de,it,pt,ru,ja,zh,ko}] [-a ADDITIONAL_PROMPT_FILE]
            input_file

Trmd

positional arguments:
  input_file            Path to Markdown file to be translated

options:
  -h, --help            show this help message and exit
  -o, --output_file OUTPUT_FILE
                        Path to the translated file
  -k, --key KEY         OpenAI API key
  -m, --model MODEL     OpenAI Model to use
  --temperature TEMPERATURE
                        Temperature for API requests
  --fragment-size FRAGMENT_SIZE
                        Fragment size for API requests
  -s, --source-language {en,fr,es,de,it,pt,ru,ja,zh,ko}
                        Language of source Markdown
  -t, --target-language {en,fr,es,de,it,pt,ru,ja,zh,ko}
                        Language to translate to
  -a, --additional-prompt-file ADDITIONAL_PROMPT_FILE
                        Additional prompt for translation

Release Notes

0.1.4 Release

  • Dependency Update

0.1.3 Release

  • Dependency Update

0.1.2 Release

  • Dependency Update

0.1.1 Release

  • Dependency Update

0.1.0 Release

  • Initial release

License

MIT License

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

trmd-0.1.10.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

trmd-0.1.10-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file trmd-0.1.10.tar.gz.

File metadata

  • Download URL: trmd-0.1.10.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for trmd-0.1.10.tar.gz
Algorithm Hash digest
SHA256 5121168d983bd9eae656e667a392be57693099d946b64ef0b0c85fcd2784b03e
MD5 e778e707fd9346a3e2308152f134f462
BLAKE2b-256 2a28cff82e49f973d6c7881ad0f1f4728ad378f00afcf05ad38feee962d57109

See more details on using hashes here.

File details

Details for the file trmd-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: trmd-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for trmd-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 007e6b44805f7e4e36b2a76fafdc0a2d80d43562d0952fb3a0f441ac9c8118f6
MD5 9881936317b8fb20810c0e74f8750a60
BLAKE2b-256 03a1309208936781990e95006a9b9a4ac7732a545cbae39485851d91510205e0

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