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

Uploaded Python 3

File details

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

File metadata

  • Download URL: trmd-0.1.40.tar.gz
  • Upload date:
  • Size: 47.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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.40.tar.gz
Algorithm Hash digest
SHA256 e3b9abe9f4a66157db4dae824411111ff4dc59737e95d530e4a4ceefd346aba3
MD5 e1b0803c4ee6b35e89ef30173a6d4526
BLAKE2b-256 38025cf9789298ae4d74c7fd7e2f97218ef62895f4f2d15d66a4fbcb9b206056

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trmd-0.1.40-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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.40-py3-none-any.whl
Algorithm Hash digest
SHA256 42987d8c2d0faedc128c52b75fe2f3afd802b2b465519dcc9f670a8ccd1d76ca
MD5 b2e944eae0eeb8821975df76c3dbcae9
BLAKE2b-256 afba19c315ca1bfb7215457c3a9c9c77268a8de75d45fddde627bf67a8250a74

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