Minimalist offline document translator (PyQt5 + Argos Translate)
Project description
Argonaut
Minimalist document translator with a Qt (PyQt5) interface that uses argos-translate-files as an offline translation engine.
Requirements
pip install PyQt5 argos-translate-lt argos-translate-files langdetect
You need at least one language package installed, for example:
argospm update
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.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.
- 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.
- Drag documents onto the window or add them with "Add…".
- Optionally pick a folder with "Output…" where all translations are saved (× returns to the default behaviour: next to each original).
- Press "Translate". Each translated file is saved with the target
language suffix (e.g.
report_es.docx). - 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. 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.
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 argonaut_translator-1.0.4.tar.gz.
File metadata
- Download URL: argonaut_translator-1.0.4.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
481d83d3d8de0f8149590071cdc4da69479f35a6eccf4da340b58301b8a94e8e
|
|
| MD5 |
9ab57bc8fe9742516c70da78b332d54b
|
|
| BLAKE2b-256 |
650ca7009548bcd949900941c5f33be2d80b1e412265d3516c5de6d83729407d
|
Provenance
The following attestation bundles were made for argonaut_translator-1.0.4.tar.gz:
Publisher:
publish.yml on Nibblex/Argonaut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
argonaut_translator-1.0.4.tar.gz -
Subject digest:
481d83d3d8de0f8149590071cdc4da69479f35a6eccf4da340b58301b8a94e8e - Sigstore transparency entry: 2215105925
- Sigstore integration time:
-
Permalink:
Nibblex/Argonaut@df710716da05ff24016f7bff20605dea135f2641 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/Nibblex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@df710716da05ff24016f7bff20605dea135f2641 -
Trigger Event:
release
-
Statement type:
File details
Details for the file argonaut_translator-1.0.4-py3-none-any.whl.
File metadata
- Download URL: argonaut_translator-1.0.4-py3-none-any.whl
- Upload date:
- Size: 30.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe7faecfa86974b13b8cc54b0d31bd0033fa9f0195ee0b3971f9df64b1dceabb
|
|
| MD5 |
4caaa2fabae46f2830ed56b5d4c04d95
|
|
| BLAKE2b-256 |
7e3d0205ef942458dd61d9b7f079163ab222ced7342defba0deacbee50f7c5c3
|
Provenance
The following attestation bundles were made for argonaut_translator-1.0.4-py3-none-any.whl:
Publisher:
publish.yml on Nibblex/Argonaut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
argonaut_translator-1.0.4-py3-none-any.whl -
Subject digest:
fe7faecfa86974b13b8cc54b0d31bd0033fa9f0195ee0b3971f9df64b1dceabb - Sigstore transparency entry: 2215105947
- Sigstore integration time:
-
Permalink:
Nibblex/Argonaut@df710716da05ff24016f7bff20605dea135f2641 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/Nibblex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@df710716da05ff24016f7bff20605dea135f2641 -
Trigger Event:
release
-
Statement type: