Plugin to implement LibreTranslate translation for ocr_translate.
Project description
Plugin for using LibreTranslate with ocr_translate
This is a plugin for the ocr_translate server for implementing translations using LibreTranslate
Usage
For versions of the server >=0.7
- Install through the server plugin manager OR manually by running
pip install ocr_translate-libretranslate
IMPORTANT
LibreTranslate needs to be installed separately and reachable from the server.
For the plugin:
-
The environment variable
OCT_LIBRETRANSLATE_ENDPOINTshould be set to the endpoint of the LibreTranslate server (WITHOUT the/translate).Example:
export OCT_LIBRETRANSLATE_ENDPOINT=http://localhost:5000/
-
If the server requires an API key, set the environment variable
OCT_LIBRETRANSLATE_API_KEYto the API key. Example:export OCT_LIBRETRANSLATE_API_KEY=your_api_key_here
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 Distribution
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 ocr_translate_libretranslate-0.1.1.tar.gz.
File metadata
- Download URL: ocr_translate_libretranslate-0.1.1.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c3503fa0bc08bec29f6d8a5c1e2a312b13aced8d8610c292248be45e18bba6f
|
|
| MD5 |
4a64db558f7920bea1eb07ff573f5e08
|
|
| BLAKE2b-256 |
d1f42afaa79664006705f2f72927892c66f4364bdfc89538b45258620590868b
|
File details
Details for the file ocr_translate_libretranslate-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ocr_translate_libretranslate-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8ac4281de5790b5fb93c26f16f13703b71ec4cd7d944ed9718601105a259f6b
|
|
| MD5 |
bb63f78687e1e20f0d097c9e7b7add27
|
|
| BLAKE2b-256 |
3a3672e2a839708dc8c38931d3a60fd69fe624539bf97599313dadb9d6ab6b1f
|