CLI tool to translate markdown files
Project description
MD Translate
CLI tool to translate .md files from English to Russian.
Can use Yandex Translation API and Google Cloud translation.
Installation
Install project:
$ pip install md-translate
Create a file, named .md_translate_api_key in your home folder or wherever you want put your API key into it.
Settings file
You can store your default settings in .ini file.
By default, place for settings file is ~/.md_translate_config.ini, but you can place it wherever you want.
Settings file content example:
[Settings]
# (would be changed to store exactly API KEY)
api_key = <path to api_key file>
service = Yandex
source_lang = en
target_lang = ru
Usage
$ app.py [-h] [-c CONFIG_PATH] [-k API_KEY_FILE | -K API_KEY]
[-s {Yandex,Google}] [-S SOURCE_LANG] [-T TARGET_LANG]
[path]
If you set config file, you can override any of settings by arguments
Positional arguments:
pathPath 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-k API_KEY_FILE, --api_key_file API_KEY_FILE, Path to Translation Service API key file-K API_KEY, --api_key API_KEY, API key to use Translation API-s {Yandex,Google}, --service {Yandex,Google}, Translating service-S SOURCE_LANG, --source_lang SOURCE_LANG, Source language-T TARGET_LANG, --target_lang TARGET_LANG, Target language
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file md_translate-0.1.0.tar.gz.
File metadata
- Download URL: md_translate-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2b6fc361d1048c4b94727f4f9b8e20bbc38a50f2e7108d7b793bb6be2fd94aa
|
|
| MD5 |
19fb626aa126e00d7c71664b2be59d67
|
|
| BLAKE2b-256 |
bbf999505369aa662c7ee4de414b20a1ae354a9b016039f35fc1bfe279ff79c1
|
File details
Details for the file md_translate-0.1.0-py3.6.egg.
File metadata
- Download URL: md_translate-0.1.0-py3.6.egg
- Upload date:
- Size: 15.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40d1d68f165f30e79df11eb3a12f859f8c8a5effc0348133be9f4411279b2f0d
|
|
| MD5 |
15568e3dc485e0179cfb4468f00e7f3c
|
|
| BLAKE2b-256 |
1c7d514d4f9ffb904e20564195b8d35d145bc5eeee267f0c638cfe5abfefc086
|
File details
Details for the file md_translate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: md_translate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b851f1cc307190c47b8a6483804bb537d24fab2e55dc835e8d27135a202e483
|
|
| MD5 |
edc01c211eae33170de7e699df9b54d0
|
|
| BLAKE2b-256 |
c22dbfe66d17f37e1c46de171deb9d4a39e5b43cab1719d83f0d5e8cc13e5408
|