Skip to main content

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_ENDPOINT should 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_KEY to the API key. Example:

    export OCT_LIBRETRANSLATE_API_KEY=your_api_key_here
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocr_translate_libretranslate-0.1.1.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocr_translate_libretranslate-0.1.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file ocr_translate_libretranslate-0.1.1.tar.gz.

File metadata

File hashes

Hashes for ocr_translate_libretranslate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8c3503fa0bc08bec29f6d8a5c1e2a312b13aced8d8610c292248be45e18bba6f
MD5 4a64db558f7920bea1eb07ff573f5e08
BLAKE2b-256 d1f42afaa79664006705f2f72927892c66f4364bdfc89538b45258620590868b

See more details on using hashes here.

File details

Details for the file ocr_translate_libretranslate-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ocr_translate_libretranslate-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8ac4281de5790b5fb93c26f16f13703b71ec4cd7d944ed9718601105a259f6b
MD5 bb63f78687e1e20f0d097c9e7b7add27
BLAKE2b-256 3a3672e2a839708dc8c38931d3a60fd69fe624539bf97599313dadb9d6ab6b1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page