AA-Translate-Tool
LibreTranslate Helpers for Alliance Auth.
https://github.com/LibreTranslate/LibreTranslate
Features
- AA-Discordbot Cog for translation of messages on discord.
Installation
-
Install and setup LibreTranslate from its docs, configure as required.
-
Install the app with your venv active or add it to your requirements.txt for Docker
pip install allianceauth-translate-tool
or
allianceauth-translate-tool==version
-
Add
'aatranslate',to your INSTALLED_APPS list in local.py. -
Add the below lines to your
local.pysettings file, Changing the contexts to yours.
## Settings for AA-Translate-Tool
# URL of the self hosted libretranslate instance
AA_TRANSLATIONS_URL = "http://URL_to_api:5000"
# Optional Api Key
AA_TRANSLATIONS_API_KEY= "i was generated from libretranslate"
# Languages we allow in the tool. list of ("Display Name", "language code https://libretranslate.com/languages") or leave as is for defaults
# AA_TRANSLATIONS_LANGUAGES = []
Usage
Libretranslate System Requirements
Seems to be CPU bound using around 2gb of memory. On a 2 core, 4gb instance it takes around a minute to translate 60 words.
Metadata
Release files for allianceauth-translate-tool 0.0.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 | Provenance | Actions |
|---|---|---|---|---|
| allianceauth_translate_tool-0.0.1.tar.gz | 87.8 kB | Without provenance | Details for allianceauth_translate_tool-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| allianceauth_translate_tool-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for allianceauth_translate_tool-0.0.1-py3-none-any.whl |
Total release size: 94.8 kB
Release files / allianceauth_translate_tool-0.0.1.tar.gz
| Download URL | allianceauth_translate_tool-0.0.1.tar.gz |
|---|---|
| Size | 87.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4760c9ee76d3e221330015c259fedaf5de9789ad195022eac08e9628f4fe398f
|
|
BLAKE2b-256 checksum How to use checksums |
eaf77dae3312597f887f739caff8a92183462099682d52ebbc0dc1bb8635972a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / allianceauth_translate_tool-0.0.1-py3-none-any.whl
| Download URL | allianceauth_translate_tool-0.0.1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9b3971d6c0a124332b5449521833c3e2247c9d874041fbadf3a67fa7aeae216
|
|
BLAKE2b-256 checksum How to use checksums |
0af58db7631b35dcfc5978e68f51411dca7dd9a1a217aa96e9ce1e885abd4082
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for allianceauth-translate-tool 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.