Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/github30/textra
Machine translation for Everyone
https://github.com/github30/textra
google-translate machine-translation python textra translation
Last synced: 3 months ago
JSON representation
Machine translation for Everyone
- Host: GitHub
- URL: https://github.com/github30/textra
- Owner: GitHub30
- License: mit
- Created: 2022-08-26T17:56:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T18:35:24.000Z (over 2 years ago)
- Last Synced: 2024-11-01T01:04:55.132Z (3 months ago)
- Topics: google-translate, machine-translation, python, textra, translation
- Language: Python
- Homepage: https://mt-auto-minhon-mlt.ucri.jgn-x.jp
- Size: 23.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Python](https://img.shields.io/pypi/pyversions/textra.svg)](https://badge.fury.io/py/textra)
[![PyPI](https://badge.fury.io/py/textra.svg)](https://badge.fury.io/py/textra)# @TexTra
Machine translation for Everyone# Install
```bash
pip install textra
```# Usage
```bash
$ trans --help
usage: trans [-h] [--name NAME] [--key KEY] [--secret SECRET] [--engine ENGINE] [-s SOURCE] [-t TARGET] textpositional arguments:
textoptions:
-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
```bash
$ trans 'I am God. You are Dog.'
私は神だお前は犬だ
``````bash
$ trans -s ja -t en 吾輩は猫である
I am the cat
```You can get the key and secret from here.
![image](https://user-images.githubusercontent.com/12811398/186966682-5a563423-fbe2-4f3f-aa09-4a274ac0e778.png)