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
Metadata
Release files for ocr_translate-libretranslate 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ocr_translate_libretranslate-0.1.1.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ocr_translate_libretranslate-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.1 kB
Release files / ocr_translate_libretranslate-0.1.1.tar.gz
| Download URL | ocr_translate_libretranslate-0.1.1.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c3503fa0bc08bec29f6d8a5c1e2a312b13aced8d8610c292248be45e18bba6f
|
|
BLAKE2b-256 checksum How to use checksums |
d1f42afaa79664006705f2f72927892c66f4364bdfc89538b45258620590868b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Release files / ocr_translate_libretranslate-0.1.1-py3-none-any.whl
| Download URL | ocr_translate_libretranslate-0.1.1-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8ac4281de5790b5fb93c26f16f13703b71ec4cd7d944ed9718601105a259f6b
|
|
BLAKE2b-256 checksum How to use checksums |
3a3672e2a839708dc8c38931d3a60fd69fe624539bf97599313dadb9d6ab6b1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|