Skip to main content

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

pip install lxmfy-translate-bot

# or

pipx install lxmfy-translate-bot

or

pipx install git+https://github.com/LXMFy/translate-bot.git

Usage

  1. Start the bot:
lxmfy-translate-bot
  1. 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.

  1. 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
  1. Available commands:
  • translate <source_lang> <target_lang> <text> - Translate text between languages Example: translate en es Hello world
  • languages - List all available languages for translation
  • stats - Show bot statistics and performance metrics
  • help - 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

lxmfy_translate_bot-1.2.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

lxmfy_translate_bot-1.2.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file lxmfy_translate_bot-1.2.1.tar.gz.

File metadata

  • Download URL: lxmfy_translate_bot-1.2.1.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

Hashes for lxmfy_translate_bot-1.2.1.tar.gz
Algorithm Hash digest
SHA256 557fd685960e3b06fd9ef6b8c4d81aaa9d0bfc272ba0b4f34fba7849ef29f12a
MD5 9ef000ba5fc6b5712f6e455c7a90cb2b
BLAKE2b-256 5670080d5250e2a6e9ed44b784f7d2da26513ea11cd13607d0653f0c39d73a4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for lxmfy_translate_bot-1.2.1.tar.gz:

Publisher: publish.yml on lxmfy/translate-bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lxmfy_translate_bot-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lxmfy_translate_bot-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4d6ec6f18865c1b2f6f36fed7190dae1d203bdbdb2330434e48b9e46e93fec9
MD5 3d6db31f2b34aa8649f52e9f0b93253d
BLAKE2b-256 08a8bb55489b7dbf6d4a154cb3c42bd44642a5ec6f2df27c90fb40bb559bc46b

See more details on using hashes here.

Provenance

The following attestation bundles were made for lxmfy_translate_bot-1.2.1-py3-none-any.whl:

Publisher: publish.yml on lxmfy/translate-bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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