Skip to main content

みんなの自動翻訳 Python Library

Project description

みんなの自動翻訳 Python Library

Python application

インストール

pip install git+https://github.com/MIDORIBIN/mt-auto-minhon-mlt.git

必要条件

本ライブラリは、Python バージョン 3.9.7 でテストされています。

使用法

  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
  • CD
  • badge
  • CLI
  • docs
  • docs header
  • PyPI GitHub Actions

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.1.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

mt_auto_minhon_mlt-1.0.1-py3-none-any.whl (7.9 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