Skip to main content

Docs Translate

CLI tool to translate .md and .rst files from English to Korea and back.

Can use Yandex Translation API and Google Cloud translation.

Installation

Install project:

$ pip install docs-translate

Settings file

You can store your default settings in .json file.

Settings file content example:

{
  "target_dir":"{D:\\language_convert_folder}",
  "reserved_words":"{D:\\reserved_words_json_file}",
  "source_lang": "ko",
  "target_lang": "en",
  "service_name": "Google_v2",
}

If you set config file, you should specify it with -c CONFIG_PATH argument!

Usage

$ docs-translate [-h] [-c CONFIG_PATH]
               [-s {Google,Google_v2}] [-S] [-T]
               [-path {source_path}] [-d {target_dir}]

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
  • -d TARGET_DIR, --target_dir TARGET_DIR, If not set, the target_dir in config.json is set

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, Google_v2

Some of them can be not working, try it and find the most suitable for you

Google --> It's free, but the translation isn't good.
Google_v2 --> need to google Cloud Translation API key.

Release files for docs-translate 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docs-translate 0.1.6
File Size Uploaded
docs_translate-0.1.6.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docs-translate 0.1.6
File Interpreter ABI Platform
docs_translate-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 19.4 kB

Release files / docs_translate-0.1.6.tar.gz

Download URL docs_translate-0.1.6.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8284f81c1b9ba1766296a57f58c93162a1b08e59091d9fa3748a16f2aac17dbb
BLAKE2b-256 checksum
How to use checksums
b4584b1b61f5c8899813e86f94e0634aa90bd817ec1c190f958601edee469b03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.3

Release files / docs_translate-0.1.6-py3-none-any.whl

Download URL docs_translate-0.1.6-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11b432ddd38d0851426dd7814efc509c439d29b93c1a44b378d38056e627ecaa
BLAKE2b-256 checksum
How to use checksums
a8e218b15de0af67fd35ef7c0ad50cead3df8da066e717451387f99614027af0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page