みんなの自動翻訳 Python Library
Project description
みんなの自動翻訳 Python Library
「みんなの自動翻訳」をPythonから利用するためのライブラリです。
「みんなの自動翻訳」は日本語から英語、英語から日本語、そして多数の他の言語の間で自動翻訳を提供しています。
Pythonラッパーを使用することで、これらの翻訳機能をPythonプログラムから簡単に利用することができます。
インストール
pip install mt-auto-minhon-mlt
必要条件
本ライブラリは、Python 3.7, 3.8, 3.9, 3.10でテストされています。
使用法
- みんなの自動翻訳の設定画面から
ユーザーID
、API key
、API secret
を取得 Translator
クラスのインスタンスを生成Translator.translate_text
に翻訳対象の文章、翻訳前の言語、翻訳後の言語を指定
API key
及び API secret
は公開しないように注意してください。
from mt_auto_minhon_mlt import Translator
translator = Translator(
client_id='ab5718f...',
client_secret='45791a9...',
user_name='name',
)
en_actual = translator.translate_text('みんなの自動翻訳', source_lang='ja', target_lang='en')
TODO
-
CI -
linter, formatter -
PyPI -
PyPI GitHub Actions -
support other parameter -
badge -
docs -
docs header - support file
- CD
- CLI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mt-auto-minhon-mlt-1.0.3.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for mt_auto_minhon_mlt-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fce4e833984cc1ccc17ed0ef41dcc2fefafc4ef69bc40511d950b48f5eaeb5de |
|
MD5 | f496f986ead80ba69d8b55d2f8f5697f |
|
BLAKE2b-256 | ce61ddefdd26e2e726379de1beeccd34fe45e16ea27cdf8048e0e23c7b95075d |