みんなの自動翻訳 Python Library
Project description
みんなの自動翻訳 Python Library
インストール
pip install git+https://github.com/MIDORIBIN/mt-auto-minhon-mlt.git
必要条件
本ライブラリは、Python バージョン 3.9.7 でテストされています。
使用法
- みんなの自動翻訳の設定画面から
ユーザー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
- CD
- badge
- CLI
- docs
- docs header
- PyPI GitHub Actions
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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a25cfb29e1a3001aba9f384d43b7aeab559dfb2e424982f0b43bfc668b5ba951 |
|
MD5 | d41128c40a0ffc12bc5b760deeac1ee9 |
|
BLAKE2b-256 | 97fb3396a9cceee6493bdbf0eef9ca7faa09296e6037f5e6015fcf099406befa |