/textra

Machine translation for Everyone

Primary LanguagePythonMIT LicenseMIT

Python PyPI

@TexTra

Machine translation for Everyone

Install

pip install textra

Usage

$ trans --help
usage: trans [-h] [--name NAME] [--key KEY] [--secret SECRET] [--engine ENGINE] [-s SOURCE] [-t TARGET] text

positional arguments:
  text

options:
  -h, --help            show this help message and exit
  --name NAME           User ID
  --key KEY
  --secret SECRET
  -e ENGINE, --engine ENGINE
  -s SOURCE, --source SOURCE
  -t TARGET, --target TARGET

Examples

$ trans 'I am God. You are Dog.'
私は神だお前は犬だ
$ trans -s ja -t en 吾輩は猫である
I am the cat

You can get the key and secret from here.

image