みんなの自動翻訳 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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mt-auto-minhon-mlt-1.0.3.tar.gz.
File metadata
- Download URL: mt-auto-minhon-mlt-1.0.3.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31ba86cb2ea1701e3a4e99a5ff47f8ee8ac798f127bbe1011114ff5cc8537af9
|
|
| MD5 |
9c73ac6060596e36f598c205254d6b9b
|
|
| BLAKE2b-256 |
80d79b8c7fa404d49532db67ab981e679d5ffe5065e3436ba2a57f1a1670bd50
|
File details
Details for the file mt_auto_minhon_mlt-1.0.3-py3-none-any.whl.
File metadata
- Download URL: mt_auto_minhon_mlt-1.0.3-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fce4e833984cc1ccc17ed0ef41dcc2fefafc4ef69bc40511d950b48f5eaeb5de
|
|
| MD5 |
f496f986ead80ba69d8b55d2f8f5697f
|
|
| BLAKE2b-256 |
ce61ddefdd26e2e726379de1beeccd34fe45e16ea27cdf8048e0e23c7b95075d
|