みんなの自動翻訳 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
Built Distribution
Close
Hashes for mt_auto_minhon_mlt-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 431e86bb513717588ebff7e6a8fdd53d09f3da9d7fe9933e1e3a1ec325301899 |
|
MD5 | 0fb63c5d6a7326c8a4514e2e9a982abf |
|
BLAKE2b-256 | fbeb6aa408893cdf9381a1e4442b21a4c237385c87e4b7e7e798ccec7c9f850d |