translate-bot for lxmf
Project description
Translate Bot
A translation bot built with LXMFy and Argos Translate that provides offline translation capabilities through the Reticulum Network.
Features
- Offline translation using Argos Translate
- Support for multiple languages
Requirements
- sentencepiece
Installation
pipx install git+https://github.com/LXMFy/translate-bot.git
Usage
- Start the bot:
lxmfy-translate-bot
- Pre-download models (optional, speeds up first translations):
# Download all available models (skips already installed)
lxmfy-translate-bot --download-all
# Download specific language pairs (skips already installed)
lxmfy-translate-bot --download en-es fr-de it-en
Note: Download commands automatically detect and skip already installed models.
- Enable message signing and verification (optional):
# Enable optional signature verification (recommended)
lxmfy-translate-bot --enable-signatures
# Require signatures for all messages (strict mode)
lxmfy-translate-bot --require-signatures
- Available commands:
translate <source_lang> <target_lang> <text>- Translate text between languages Example:translate en es Hello worldlanguages- List all available languages for translationstats- Show bot statistics and performance metricshelp- Show detailed help and usage information
Language Codes
The bot uses standard language codes (e.g., 'en' for English, 'es' for Spanish). Use the languages command to see all available language codes.
Message Signing & Verification
The bot supports cryptographic message signing and verification for enhanced security:
- Signature Verification: Verify that incoming messages are cryptographically signed using RNS identities
- Optional vs Required: Choose whether to allow unsigned messages or require signatures for all messages
- Command-line flags:
--enable-signatures: Enable optional signature verification (recommended)--require-signatures: Require signatures for all messages (strict mode)
When signature verification is enabled, the bot will automatically sign outgoing messages and verify incoming message signatures when present. Unsigned messages are rejected only in strict mode.
License
MIT License
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
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 lxmfy_translate_bot-1.2.0.tar.gz.
File metadata
- Download URL: lxmfy_translate_bot-1.2.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f88a27f1f3b97d195d085e19737551a050a45c72128f2ce812b3e9f9deef0f5a
|
|
| MD5 |
56e759ea563f967c9b65b9a1d4087368
|
|
| BLAKE2b-256 |
ae37a179069c53cc6e3a434c496a6df21ed460ec2427debe7dd7940fb97ac96a
|
Provenance
The following attestation bundles were made for lxmfy_translate_bot-1.2.0.tar.gz:
Publisher:
publish.yml on lxmfy/translate-bot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lxmfy_translate_bot-1.2.0.tar.gz -
Subject digest:
f88a27f1f3b97d195d085e19737551a050a45c72128f2ce812b3e9f9deef0f5a - Sigstore transparency entry: 567748080
- Sigstore integration time:
-
Permalink:
lxmfy/translate-bot@ec6ccab472d92a233b9909a3819954cd817c6a3b -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/lxmfy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ec6ccab472d92a233b9909a3819954cd817c6a3b -
Trigger Event:
push
-
Statement type:
File details
Details for the file lxmfy_translate_bot-1.2.0-py3-none-any.whl.
File metadata
- Download URL: lxmfy_translate_bot-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d680e4a0b02261d868e14469da38d67cb0cb377e68f445bfaa7394a5f0d82d6
|
|
| MD5 |
3df0aa7e0604bb711356a468b44fefb8
|
|
| BLAKE2b-256 |
edb8f74637c2052a5e10afad95d09271eb69ffb172f5403b65b1eb851d48f2e6
|
Provenance
The following attestation bundles were made for lxmfy_translate_bot-1.2.0-py3-none-any.whl:
Publisher:
publish.yml on lxmfy/translate-bot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lxmfy_translate_bot-1.2.0-py3-none-any.whl -
Subject digest:
2d680e4a0b02261d868e14469da38d67cb0cb377e68f445bfaa7394a5f0d82d6 - Sigstore transparency entry: 567748087
- Sigstore integration time:
-
Permalink:
lxmfy/translate-bot@ec6ccab472d92a233b9909a3819954cd817c6a3b -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/lxmfy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ec6ccab472d92a233b9909a3819954cd817c6a3b -
Trigger Event:
push
-
Statement type: