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.9.tar.gz (13.9 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.9-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for trmd-0.1.9.tar.gz
Algorithm Hash digest
SHA256 0cbf80b730f995b7d5a4c75b6dcbbc2e703268636f6bb6b9747d1cbc5a4c483e
MD5 73e99b7e0162e9eaef26313fd4e1d8ba
BLAKE2b-256 4f6255154fbcc18bdb2bb4620877303b604b8daaf20cf104c89bcb46c54aabb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trmd-0.1.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8da94db6e117f369334cf835776cb48ef3244f0cd47d395e4275f61338786347
MD5 f7c0d679f1143fcac063216f232f4637
BLAKE2b-256 3370198528680917f215d6eb54e3ee6e120c613b9a30cc5c45b9d0792f5df33e

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