Skip to main content

PyElant

Python Easy Language Translator

PyElant is a simple python tool for performing translations and storing it on the clipboard. Input can be received via microphone, command line or the clipboard itself. This programs runs in the background so you can easily translate on the go and paste it in multiple programs such as text editors, browsers or programming tools easily without changing your current window.

Installation Instructions

You can install this package either via pip or via repository download.

pip3 install pyelant

Third party requirements

To run this program on Debian distros you need to install the following dependencies:

sudo apt install sudo apt-get install xsel   # To have proper access to the clipboard
sudo apt install portaudio19-dev python-pyaudio   # Only if you want to use the microphone input

For the Speech Recognition library, please visit their repository for more details. For other python packages required to run this program read requirements.txt.

Usage

There are three ways of using pyelant:

  1. Voice input via microphone
  2. Input text via clipboard
  3. Input text via command line

1. Via microphone

First, initiate the program using the command line and let it run on the background:

python3 -m pyelant 

Then press CTRL + ALT + M to start listening. Say something and wait for the program to execute the translation. Once it's done, it will automatically place it in your clipboard, so you can easily paste it wherever you want.

2. Via clipboard

First, initiate the program using the command line and let it run on the background:

python3 -m pyelant 

Then press CTRL + ALT + E to translate the text that is already in your clipboard. Once it's done, it will automatically place it in your clipboard, so you can easily paste it wherever you want.

3. Via command line

First, run the program with the -t or --text argument

python3 -m pyelant -t "This sentence will be translated to Japanese."

And it will automatically store the translation in your clipboard.

Choosing languages

python3 -m PyElant comes by default with English as the input language and Japanese as the output language. Currently the program can only accept a single pair of languages per execution, meaning that you need to close the program to change languages. To translate other languages use the -i or --input_language and -o or --output_language as follows:

python3 -m pyelant -i pt -o en   # To run in the background and translate from Portuguese to English
python3 -m pyelant -i fr -o kr   # To run in the backrground and translate from French to Korean
python3 -m pyelant -i En -o it -t "This sentence will be translated from English to Italian."

Other options

To disable the system notification use -dn or --disable_notification.

License

MIT License as described in LICENSE.txt.

Release files for pyelant 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyelant 0.1
File Size Uploaded
pyelant-0.1.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyelant 0.1
File Interpreter ABI Platform
pyelant-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / pyelant-0.1.tar.gz

Download URL pyelant-0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3b07afa4ca235237e0b05ba06359c6b34aa9d3d39d512b96ac2faa667f3caf48
BLAKE2b-256 checksum
How to use checksums
348c3b839687b9f23e702ae15b295e68ab17646dac3e2a4704d54b351e308a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.0 importlib_metadata/3.7.3 packaging/20.4 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9

Release files / pyelant-0.1-py3-none-any.whl

Download URL pyelant-0.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce0b7b9b5a4b1632f5cc633f9d0ab2cfa64a19e2681eab69cde4679cac5e4f15
BLAKE2b-256 checksum
How to use checksums
1ba7dd34c1e0a11e469251ce7fa686a885115bb57d3fa0e76f8b06e52807fa78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.0 importlib_metadata/3.7.3 packaging/20.4 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page