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 install rioriost/tap/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.37 Release

  • move formula to rioriost/tap

0.1.36 Release

  • Dependency update

0.1.35 Release

  • Dependency update

0.1.34 Release

  • Dependency update

0.1.33 Release

  • Dependency Update

0.1.32 Release

  • Dependency Update

0.1.31 Release

  • Dependency Update

0.1.30 Release

  • Dependency Update

0.1.29 Release

  • Dependency Update

0.1.28 Release

  • Dependency Update

0.1.27 Release

  • Security Update

0.1.26 Release

  • Dependency Update

0.1.25 Release

  • Dependency Update

0.1.24 Release

  • Dependency Update

0.1.23 Release

  • Dependency Update

0.1.22 Release

  • Dependency Update

0.1.21 Release

  • Dependency Update

0.1.20 Release

  • Dependency Update

0.1.19 Release

  • Dependency Update

0.1.18 Release

  • Dependency Update

0.1.17 Release

  • Dependency Update

0.1.16 Release

  • Dependency Update

0.1.15 Release

  • Dependency Update

0.1.14 Release

  • Dependency Update

0.1.13 Release

  • Dependency Update

0.1.12 Release

  • Dependency Update

0.1.11 Release

  • Dependency Update

0.1.10 Release

  • Dependency Update

0.1.9 Release

  • Dependency Update

0.1.8 Release

  • Dependency Update

0.1.7 Release

  • Dependency Update

0.1.6 Release

  • Dependency Update

0.1.5 Release

  • Dependency Update

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.41.tar.gz (48.3 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.41-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trmd-0.1.41.tar.gz
  • Upload date:
  • Size: 48.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for trmd-0.1.41.tar.gz
Algorithm Hash digest
SHA256 21ae369824b4998f0ecd8efe166a824bdeaa3df074de8216389ed59976b92ab2
MD5 83caac7188a4aeb6207b0b7b49de5f94
BLAKE2b-256 4f970a75fe40ff5bac944ee22adcf627a23610b64b390d53020558b4047d4a9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trmd-0.1.41-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for trmd-0.1.41-py3-none-any.whl
Algorithm Hash digest
SHA256 dad046a8ae3c990c3e479398de60b7d63c79a2156106d44c6a34976df1dca0e9
MD5 5dd12e1df34e543801bcde3758b7aa31
BLAKE2b-256 4639c95d580e6a19d44e482cb2ebdc0f3ab99ea3e1a59c935578ed20ad2ef81a

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