Skip to main content

Argonaut

PyPI Python versions License: GPL-3.0 Release CI Coverage

Minimalist document translator with a Qt (PyQt5) interface that uses argos-translate-files as an offline translation engine.

Two engines are available from Settings → Engine:

  • Argos Translate (default) — light per-pair models, installed and removed from Settings → Manage language packages….
  • NLLB-200 — Meta's nllb-200-distilled-600M (int8, CTranslate2), noticeably better quality and direct translation between any pair of 32 languages. The model (~630 MB) is downloaded on first use and stored under ~/.local/share/argonaut/. Note that the NLLB weights are licensed CC-BY-NC 4.0 (non-commercial).

Requirements

pip install PyQt5 argos-translate-lt argos-translate-files langdetect psutil

You need at least one language package installed. Open Settings → Manage language packages…, pick the pairs you want and press "Install selected"; the dialog lists every package from the Argos index with its version and download size, filters by installation state, and lets you remove or update the installed ones (a package with a newer version in the index is flagged and can be updated in place). They can also be installed from the command line with argospm install translate-en_es.

Usage

Install it (provides the argonaut command):

pip install argonaut-translator

From a checkout, install in editable mode first:

pip install -e .
python3 -m argonaut

Structure

All modules live in the src/argonaut/ package:

  • __init__.py — package version (__version__).
  • main.py — entry point; silences dependency warnings and launches the window.
  • window.py — main window (PyQt5).
  • worker.py — thread that translates the file list and emits progress signals.
  • pdf.py — fixed PDF translator (paragraphs, progress, cancellation).
  • translation.py — language detection, supported formats and the progress/cache wrapper.
  • nllb.py — optional NLLB-200 backend (CTranslate2 + SentencePiece) exposing the same duck-typed API as argostranslate.
  • packages.py — Argos package index, download, installation and removal.
  • package_dialog.py — dialog to browse, install and remove packages.
  • i18n.py — interface languages (English by default, Spanish, French, German, Italian and Portuguese).

Packaging lives at the top level: pyproject.toml (PyPI), io.github.nibblex.Argonaut.yml (Flatpak manifest) and data/ (desktop entry, AppStream metainfo and icon for Flathub).

Interface language

The interface starts in English. In the Language menu you can switch to Spanish, French, German, Italian or Portuguese; the change applies instantly and the preference is saved (QSettings) for future launches. To add a language just add its dictionary in i18n.py (missing keys fall back to English). The Help menu includes "About Argonaut", showing the version, a short description of the project, the translation engine, the supported formats, the author and the license.

Persistent settings

When the window closes, QSettings stores — besides the interface language — the source and target languages, the output folder and the window size/position; everything is restored on the next launch. If a saved language is no longer installed or the folder no longer exists, the default value is used. The active engine, the translation quality (Settings → Translation quality: best quality, or a faster greedy mode that trades a little accuracy for speed) and the number of CPU threads (Settings → CPU threads, defaulting to every detected core) are saved as soon as they change.

  1. Choose the source and target languages (⇄ button to swap them). By default the source is "Detect language": each document's language is detected automatically, so you can mix files in different languages in the same batch.
  2. Drag documents or whole folders onto the window (dropped folders are walked recursively) or add them with "Add…". Each file shows its size and the list footer shows the batch total.
  3. Optionally pick a folder with "Output…" where all translations are saved (× returns to the default behaviour: next to each original). Tick "Skip files already translated" to leave existing outputs untouched, which makes an interrupted batch resumable.
  4. Press "Translate". Each translated file is saved with the target language suffix (e.g. report_es.docx).
  5. During translation you can press "Cancel": the operation stops (even mid-file) and the files already translated are kept.

Note about PDFs: they are translated paragraph by paragraph while preserving the layout, so a long document can take a while on CPU. The bar shows the real percentage of translated paragraphs and an estimate of the remaining time. Rotated text (e.g. vertical watermarks) is kept untranslated, and links from the original document are not preserved in the translated copy.

Supported formats: .txt .docx .odt .odp .pptx .epub .html .srt .pdf

Tests

pip install -e .[test]
pytest

The suite runs Qt headless (QT_QPA_PLATFORM=offscreen) and needs no language models: translation engines are faked. Coverage is printed at the end of the run; CI publishes the badge on every push to main.

Releasing

To publish a new version, bump __version__ in src/argonaut/__init__.py and add a <release> entry in data/*.metainfo.xml.

PyPI

pip install build twine
python3 -m build
twine upload dist/*

Flathub

The manifest is io.github.nibblex.Argonaut.yml. Flathub builds have no network access, so the Python dependencies must be pinned first with flatpak-pip-generator:

python3 flatpak-pip-generator --requirements-file=requirements.txt \
    --output python3-requirements

Test locally, then lint:

flatpak-builder --user --install --force-clean build-dir \
    io.github.nibblex.Argonaut.yml
flatpak run --command=flatpak-builder-lint org.flatpak.Builder \
    manifest io.github.nibblex.Argonaut.yml

First submission: take a screenshot for the metainfo (see the TODO in data/*.metainfo.xml), then open a PR against flathub/flathub (branch new-pr) adding the manifest, per the submission guide.

Author and license

© 2026 Sergio Rodríguez.

This project is distributed under the GNU GPL v3 license, in line with the license of PyQt5, which the interface depends on.

Download files

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

Source Distribution

argonaut_translator-1.5.0.tar.gz (94.1 kB view details)

Uploaded Source

Built Distribution

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

argonaut_translator-1.5.0-py3-none-any.whl (70.9 kB view details)

Uploaded Python 3

File details

Details for the file argonaut_translator-1.5.0.tar.gz.

File metadata

  • Download URL: argonaut_translator-1.5.0.tar.gz
  • Upload date:
  • Size: 94.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for argonaut_translator-1.5.0.tar.gz
Algorithm Hash digest
SHA256 b42280318aa8acfb7e8676ed506c8f64540e1d926b0f35424f7681ca3575e752
MD5 f48b3bf7bd89ee7d6d34d24e9eb586aa
BLAKE2b-256 b9e8b276ae5d8298aec6eeaa4f355d0b9465e176761c07ee1cd82f37ce70229b

See more details on using hashes here.

Provenance

The following attestation bundles were made for argonaut_translator-1.5.0.tar.gz:

Publisher: publish.yml on Nibblex/Argonaut

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

File details

Details for the file argonaut_translator-1.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for argonaut_translator-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a51301ec62b789093c4c8b48f4e4484c717306f7dce47f7f9b3d45985c91a4a
MD5 df01a829dcd278e7de4e0c71fadc37c7
BLAKE2b-256 fd19e5f0fc30a6ea59b64e562315e2926b69227985055f128729770c7585562d

See more details on using hashes here.

Provenance

The following attestation bundles were made for argonaut_translator-1.5.0-py3-none-any.whl:

Publisher: publish.yml on Nibblex/Argonaut

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

Release history Release notifications | RSS feed

1.8.0

2 files

1.7.2

2 files

1.7.1

2 files

1.7.0

2 files

1.6.0

2 files

This release

1.5.0 This release

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page