No project description provided
Project description
Yandex Free Translate! More than six million requests! No limits or restrictions! Tested within a year!
Яндекс Переводчик бесплатно (Более шести миллионов запросов! Никаких ограничений и лимитов! Проверено в течение года!)
Installing (Установка)
python3 -m pip install git+https://github.com/alekssamos/yandexfreetranslate.git
or (или)
python3 -m pip install yandexfreetranslate
Using (Использование)
Если не работает, то при создании класса поменяйте API на "ios", по умолчанию используется "web". If it doesn't work, then when creating the class, change the API to "ios", use "web" by default.
from yandexfreetranslate import YandexFreeTranslate
yt = YandexFreeTranslate()
# yt = YandexFreeTranslate(api = "web")
# yt = YandexFreeTranslate(api = "ios")
# yt.set_proxy("socks5", "localhost", 9050, "username", "password")
print(yt.translate("en", "ru", "Hello, world!"))
Or from command line (Или из командной строки):
# for use socks4, socks5 or https proxy (Для использования socks4, socks5 или https proxy):
export https_proxy=127.0.0.1:9050
# or (или)
export https_proxy=username:password@127.0.0.1:9050
python3 yandexfreetranslate/__init__.py en ru "Hello, world!"
# or (или)
python3 yandexfreetranslate/__init__.py en ru in.txt
# or (или)
python3 yandexfreetranslate/__init__.py en ru in.txt out.txt
Runing tests (Запуск тестов)
git clone https://github.com/alekssamos/yandexfreetranslate.git
cd yandexfreetranslate
python3 -m unittest
# or
python3 -m pip install tox
python3 -m tox
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
Built Distribution
File details
Details for the file yandexfreetranslate-1.5.tar.gz
.
File metadata
- Download URL: yandexfreetranslate-1.5.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 415652bca19707f5c665d5f55a7f902954ccb0596ac2abed8b0c464e06ae48e9 |
|
MD5 | 624aa88a7592b275f8e577631e3a4226 |
|
BLAKE2b-256 | 9c4e288b3fb941292d26caa7d2c8937b4a41eebfaf126441da856585c348e7b3 |
File details
Details for the file yandexfreetranslate-1.5-py3-none-any.whl
.
File metadata
- Download URL: yandexfreetranslate-1.5-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 784d1155b7845cc2f6158166aba257224a99831b23d180a9b0b0388a9de9cc38 |
|
MD5 | 952b6a2278666976837e0726a29eb97b |
|
BLAKE2b-256 | 6a7b34cc362a2a976815dd09a29ccf6655d6db4e4142be738a2b2d759ab746b2 |