CLI tool to translate markdown files
Project description
MD Translate
CLI tool to translate .md
files from English to Russian and back.
Can use Yandex Translation API and Google Cloud translation.
Installation
Install project:
$ pip install md-translate
Settings file
You can store your default settings in .json
file.
Settings file content example:
{
"source_lang": "ru",
"target_lang": "en",
"service_name": "Google",
}
If you set config file, you should specify it with -c CONFIG_PATH
argument!
Usage
$ md-translate [-h] [-c CONFIG_PATH]
[-s {Yandex,Google}] [-S] [-T]
[path]
If you set config file, you can override any of settings by arguments
Positional arguments:
path
Path to folder to process. If not set, uses current folder
Optional arguments:
-h, --help
, show this help message and exit-c CONFIG_PATH, --config_path CONFIG_PATH
, Path to config_file-s {Yandex,Google,Bing,Deepl}, --service_name {Yandex,Google,Bing,Deepl}
, Translating service-S SOURCE_LANG, --source_lang SOURCE_LANG
, Source language code-T TARGET_LANG, --target_lang TARGET_LANG
, Target language code
Translation services:
Now used Yandex
, Google
, Bing
, Deepl
Some of them can be not working, try it and find the most suitable for you
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
md_translate-2.0.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for md_translate-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 660a4fd4ee7146a1ff874b506c8c02fba4a2da7d184d02ae2261b214c30c7036 |
|
MD5 | f7961281f659f9ee04b3f20bf077aaff |
|
BLAKE2b-256 | d53ab46a187949852070c445fcaccace41d9e4f5a17ecfebce00f6cce17e9ba9 |