[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-75754":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},75754,"argos-translate","argosopentech\u002Fargos-translate","argosopentech","Open-source offline translation library written in Python",null,"https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-translate","Python",6130,472,58,149,0,21,43,145,63,39.02,false,"main",[25,26,27,28,29,30,31,32],"python","machine-translation","transformers","translation","language-models","linux","nlp","open-source","2026-06-12 02:03:35","# Argos Translate\n[Demo](https:\u002F\u002Flibretranslate.com) | [Website](https:\u002F\u002Fwww.argosopentech.com) | [Docs](https:\u002F\u002Fargos-translate.readthedocs.io) |  [Forum](https:\u002F\u002Fcommunity.libretranslate.com\u002Fc\u002Fargos-translate\u002F5) | [GitHub](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-translate) | [PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fargostranslate\u002F)\n\n**Open-source offline translation library written in Python**\n\nArgos Translate uses [OpenNMT](https:\u002F\u002Fopennmt.net\u002F) for translations and can be used as either a Python library, command-line, or GUI application. Argos Translate supports installing language model packages which are zip archives with a \".argosmodel\" extension containing the data needed for translation. [LibreTranslate](https:\u002F\u002Flibretranslate.com) is an API and web-app built on top of Argos Translate.\n\nArgos Translate also manages automatically pivoting through intermediate languages to translate between languages that don't have a direct translation between them installed. For example, if you have a es → en and en → fr translation installed you are able to translate from es → fr as if you had that translation installed. This allows for translating between a wide variety of languages at the cost of some loss of translation quality.\n\nThe [argospm-index](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargospm-index) contains metadata and download links to access pre-trained Argos Translate models.\n\n### Supported languages\n\n##### [Browse Package Index](https:\u002F\u002Fwww.argosopentech.com\u002Fargospm\u002Findex\u002F)\n\nArabic, Azerbaijani, Basque, Catalan, Chinese, Czech, Danish, Dutch, English, Esperanto, Finnish, French, Galician, German, Greek, Hebrew, Hindi, Hungarian, Indonesian, Irish, Italian, Japanese, Kyrgyz, Korean, Malay, Persian, Polish, Portuguese, Portuguese (Brazil), Russian, Slovak, Spanish, Swedish, Turkish, Ukrainian, Urdu, and more\n\n[Request a language](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-translate\u002Fdiscussions\u002F91)\n\n## Installation\n### Install with Python\nArgos Translate is available from [PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fargostranslate\u002F) and can be easily installed with [pip](https:\u002F\u002Fpip.pypa.io\u002Fen\u002Fstable\u002Finstallation\u002F).\n\n```\npip install argostranslate\n```\n\nInstall [GUI](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-translate-gui):\n```\npip install argostranslategui\n```\n\n### Python source installation into virtualenv\n\nDownload a copy of this repo and install with pip.\n\n```\ngit clone https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-translate.git\ncd argos-translate\nvirtualenv env\nsource env\u002Fbin\u002Factivate\npip install -e .\n```\n\n## Examples\n### [Python](https:\u002F\u002Fargos-translate.readthedocs.io\u002Fen\u002Flatest\u002Fpy-modindex.html)\n\n```python\nimport argostranslate.package\nimport argostranslate.translate\n\nfrom_code = \"en\"\nto_code = \"es\"\n\n# Download and install Argos Translate package\nargostranslate.package.update_package_index()\navailable_packages = argostranslate.package.get_available_packages()\npackage_to_install = next(\n    filter(\n        lambda x: x.from_code == from_code and x.to_code == to_code, available_packages\n    )\n)\nargostranslate.package.install_from_path(package_to_install.download())\n\n# Translate\ntranslatedText = argostranslate.translate.translate(\"Hello World\", from_code, to_code)\nprint(translatedText)\n# '¡Hola Mundo!'\n```\n\n### Command Line Interface\n```\nargospm update\nargospm install translate-en_de\nargos-translate --from en --to de \"Hello World!\"\n# Hallo Welt!\n\n```\n\nInstall all translation packages:\n```\nargospm install translate\n```\n\n### [LibreTranslate](https:\u002F\u002Fgithub.com\u002FLibreTranslate\u002FLibreTranslate) Web App ([Demo](https:\u002F\u002Flibretranslate.com\u002F))\n![Web App Screenshot](img\u002FWebAppScreenshot.png)\n\n### [LibreTranslate](https:\u002F\u002Fgithub.com\u002Fuav4geo\u002FLibreTranslate) API\n\n```javascript\nconst res = await fetch(\"https:\u002F\u002Ftranslate.argosopentech.com\u002Ftranslate\", {\n\tmethod: \"POST\",\n\tbody: JSON.stringify({\n\t\tq: \"Hello!\",\n\t\tsource: \"en\",\n\t\ttarget: \"es\"\n\t}),\n\theaders: {\n\t\t\"Content-Type\": \"application\u002Fjson\"}\n\t});\n\nconsole.log(await res.json());\n\n{\n    \"translatedText\": \"¡Hola!\"\n}\n```\n\n#### Graphical user interface\nThe GUI code is in a [separate repository](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-translate-gui).\n\n![Screenshot](\u002Fimg\u002FScreenshot.png)\n![Screenshot2](\u002Fimg\u002FScreenshot2.png)\n\n\n## [Packages](https:\u002F\u002Fwww.argosopentech.com\u002Fargospm\u002Findex\u002F)\n- [Browse](https:\u002F\u002Fwww.argosopentech.com\u002Fargospm\u002Findex\u002F)\n- [P2P download with BitTorrent](\u002Fp2p\u002FREADME.md)\n- [Training scripts](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-train)\n- [Google Drive download](https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F11wxM3Ze7NCgOk_tdtRjwet10DmtvFu3i)\n\n\n### GPU Acceleration\n\nTo enable GPU support, you need to set the `ARGOS_DEVICE_TYPE` env variable to `cuda` or `auto`.\n\n```\n$ ARGOS_DEVICE_TYPE=cuda argos-translate --from-lang en --to-lang es \"Hello World\"\nHola Mundo\n```\n\nThe above env variable passes the device type to [CTranslate2](https:\u002F\u002Fgithub.com\u002FOpenNMT\u002FCTranslate2).\n\n### HTML Translation\nThe [translate-html](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Ftranslate-html) library is built on top of Argos Translate and [Beautiful Soup](https:\u002F\u002Fbeautiful-soup-4.readthedocs.io\u002Fen\u002Flatest\u002F) and parses and translates HTML. The LibreTranslate API also has support for translating HTML.\n\n\n### Files Translation\nThe [argos-translate-files](https:\u002F\u002Fgithub.com\u002FLibreTranslate\u002Fargos-translate-files) library is built on top of Argos Translate and parses and translates files. The LibreTranslate API also has support for translating files.\n\n## Uninstall\n\n``` shell\npip uninstall argostranslate\n```\n\nYou may choose to also delete temporary and cached files:\n\n``` shell\nrm -r ~\u002F.local\u002Fcache\u002Fargos-translate\nrm -r ~\u002F.local\u002Fshare\u002Fargos-translate\n```\n\n## Related Projects\n- [LibreTranslate-py](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002FLibreTranslate-py) - Python bindings for LibreTranslate\n- [MetalTranslate](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002FMetalTranslate) - Customizable translation in C++\n- [LibreTranslate\u002FLocomotive](https:\u002F\u002Fgithub.com\u002FLibreTranslate\u002FLocomotive) - Toolkit for training\u002Fconverting LibreTranslate compatible language models 🚂 \n- [DesktopTranslator](https:\u002F\u002Fgithub.com\u002Fymoslem\u002FDesktopTranslator) - [OpenNMT](https:\u002F\u002Fopennmt.net\u002F) based translation application\n- [LibreTranslate-rs](https:\u002F\u002Fgithub.com\u002Fgrantshandy\u002Flibretranslate-rs) - LibreTranslate Rust bindings\n- [LibreTranslate Go](https:\u002F\u002Fgithub.com\u002FSnakeSel\u002Flibretranslate) - LibreTranslate Golang bindings\n- [LibreTranslate Java](https:\u002F\u002Fgithub.com\u002Fdynomake\u002Flibretranslate-java) - LibreTranslate Java bindings\n- [LibreTranslator](https:\u002F\u002Fgitlab.com\u002FBeowuIf\u002Flibretranslator) - LibreTranslate Android app\n\n## Contributing\nContributions are welcome! Available issues are on the [GitHub issues page](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-translate\u002Fissues). Contributions of code, data, and pre-trained models can all be accepted.\n\n## Support\nFor support please use the [LibreTranslate Forum](https:\u002F\u002Fcommunity.libretranslate.com\u002Fc\u002Fargos-translate\u002F5) or [GitHub Issues](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-translate\u002Fissues).\n\nFor questions about [CTranslate2](https:\u002F\u002Fgithub.com\u002FOpenNMT\u002FCTranslate2) or general machine translation research the [OpenNMT Forum](https:\u002F\u002Fforum.opennmt.net\u002F) is a good resource.\n\n## Services\nCustom models trained on your own data are available for $1000\u002Flanguage (negotiable).\n\n[I am also available for hire](https:\u002F\u002Fwww.argosopentech.com\u002Fabout\u002F) to do support, consulting, or custom software development.\n\n## Donate\nIf you find this software useful donations are greatly appreciated and help to make this project sustainable.\n- [GitHub Sponsor](https:\u002F\u002Fgithub.com\u002Fsponsors\u002Fargosopentech)\n- [PayPal](https:\u002F\u002Fwww.paypal.com\u002Fbiz\u002Ffund?id=MCCFG437JP9PJ)\n- [Venmo @pjfinlay](https:\u002F\u002Fvenmo.com\u002Fu\u002Fpjfinlay)\n- Bitcoin: 16UJrmSEGojFPaqjTGpuSMNhNRSsnspFJT\n\nPaid supporters receive priority support.\n\n#### Hosting affiliate links\nYou can help support Argos Translate financially by purchasing hosting through these referral links:\n- [Vast.ai](http:\u002F\u002Fvast.ai\u002F?ref=24817) - Cheap GPU rentals\n- [DigitalOcean](https:\u002F\u002Fm.do.co\u002Fc\u002Fa1af57be6e3f) - Best all around hosting\n- [Sharktech](https:\u002F\u002Fportal.sharktech.net\u002Faff.php?aff=1181) - Cheap bandwith\n- [Time4VPS](https:\u002F\u002Fwww.time4vps.com\u002F?affid=6929) - Cheap storage\n\n## Contributing\nContributions are welcome! Bug reports, pull requests, documentation writing, and feature ideas are all appreciated.\n\n## License\nArgos Translate is dual licensed under either the [MIT License](https:\u002F\u002Fgithub.com\u002Fargosopentech\u002Fargos-translate\u002Fblob\u002Fmaster\u002FLICENSE) or [Creative Commons CC0](https:\u002F\u002Fcreativecommons.org\u002Fshare-your-work\u002Fpublic-domain\u002Fcc0\u002F).\n","Argos Translate是一个用Python编写的开源离线翻译库。它基于OpenNMT进行翻译，并支持作为Python库、命令行工具或GUI应用程序使用。用户可以安装包含翻译所需数据的语言模型包（.argosmodel格式）。此外，Argos Translate能够通过中间语言自动转换来实现不直接支持的语言之间的翻译，从而扩展了可翻译语言的范围，尽管这可能会导致一定的翻译质量下降。该项目适合需要在没有网络连接的情况下进行多语言翻译的应用场景，如移动设备上的本地化应用或对隐私有较高要求的服务。",2,"2026-06-11 03:53:15","trending"]