Skip to main content

みんなの自動翻訳 Python Library

Project description

みんなの自動翻訳 Python Library

Python application PyPI version PyPI - Python Version

「みんなの自動翻訳」をPythonから利用するためのライブラリです。
「みんなの自動翻訳」は日本語から英語、英語から日本語、そして多数の他の言語の間で自動翻訳を提供しています。
Pythonラッパーを使用することで、これらの翻訳機能をPythonプログラムから簡単に利用することができます。

インストール

pip install mt-auto-minhon-mlt

必要条件

本ライブラリは、Python 3.7, 3.8, 3.9, 3.10でテストされています。

使用法

  1. みんなの自動翻訳の設定画面から ユーザーIDAPI keyAPI secret を取得
  2. Translator クラスのインスタンスを生成
  3. 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


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)

Uploaded Source

Built Distribution

mt_auto_minhon_mlt-1.0.3-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page