[build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [project] name = "pygtrans" authors = [ { name = "foyoux" }, ] description = "Google Translate, support APIKEY" keywords = ["pygtrans", "google", "translate", "apikey", "text", "html", ...
folder, ## locations - could modify, modify it before install if need, bin_dir="/usr/bin" ## locations - can't modify, pygtrans_config_dir="$HOME/.config/pygtrans" ## command - via "ln -s" ln -sf "$PWD/main.py" "$bin_dir/pygtrans" if [ $? -eq 0 ]; then echo "Done...
公告 昵称:foyoux 园龄:3年8个月 粉丝:0 关注:0 +加关注 <2025年4月> 日一二三四五六 303112345 6789101112 13141516171819 20212223242526 27282930123 45678910 我的标签 python(3) translate(2) wechat(1) voice(1) silk(1) pygtrans(1) google(1) ...
pygtrans包中有两个需要关心的模块 Translate: 通过谷歌翻译API接口实现, 可直接使用, 但可能不稳定 ApiKeyTranslate: 通过Google Cloud Translate APIs实现, 需要提供一个有效的APIKEY,谷歌提供免费试用 二者的差异 缺点优点 Translate稳定性无法得到保证免费, 可直接使用 ...
【pann】男子汉1组真的很不怎么样,让人很生气了 1组在彩排时有3个人唱高音部分,原本应该是2个人唱的,被2组姜东昊发现,1组说是已经跟他们说好了的是姜东昊自己忘记了;虽然最后正式表演中1组只有2个人演唱那...
pygtrans 谷歌翻译, 支持 APIKEY Github 语言支持列表 安装 pip install -U pygtrans pip install git+ssh://git@github.com/foyoux/pygtrans.git pip install git+https://github.com/foyoux/pygtrans.git 基本功能 获取语言支持列表 自动检测语言, 支持批量 文本/HTML 翻译, 支持批量 支持TTS 快速入门 fr...
kuchaguangjie/pygtrans is licensed under the MIT License A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code. Permissions ...
(q=q, target=target, source=source, fmt=fmt, v='1.0') File "C:\Users\Hacke\AppData\Local\Programs\Python\Python310\lib\site-packages\pygtrans\Translate.py", line 172, in __translate response = self.session.post( File "C:\Users\Hacke\AppData\Local\Programs\Python\Python310\lib\site...
使用translate吧,也可以获取到语言信息,detect接口失效了 frompygtransimportTranslateat=Translate()r=at.translate('조언 부탁드립니다')r.detectedSourceLanguage
~/.config/pygtrans/config.ini Usage command line: pygtrans [<target_language>] [] e.g # translate "hi" to default language, pygtrans hi # translate "hi" to Japanese, pygtrans hi ja # translate "hi" from English to Japanese, pygtrans hi ja en Email:kuchaguangjie@gmail.com...