mymemory translate for free with proxy support
Project description
mymemory-tr-free
mymemory translate for free with proxy support
Daily quota: 10000 chars for a single IP; use a proxy to another 10000
Installation
pip install mymemory-tr-free
Validate installation
python -c "import mymemory_tr; print(mymemory_tr.__version__)"
0.0.1
Usage
from mymemory_tr import MymemoryTr
mymemory_tr = MymemoryTr().translate
mymemory_tr('test this and that')
# '测试一下'
# use a proxy per instance
proxy = 'http://127.0.0.1:8888'
mymemory_tr = MymemoryTr(proxy=proxy).translate
mymemory_tr('test this and that')
# use a proxy per request
mymemory_tr = MymemoryTr().translate
proxy = 'http://127.0.0.1:8888'
mymemory_tr('test this and that', proxy=proxy)
# source and destination can be identified by RFC3066 (ISO 639-1)
mymemory_tr = MymemoryTr(to_lang='de').translate
mymemory_tr('Test this and that and more')
# 'Testen Sie dieses und das und mehr'
# source and destination can be overriden per request
mymemory_tr = MymemoryTr(to_lang='de').translate
mymemory_tr('Test this and that and more', to_lang='fr')
# 'Testez ceci et cela et plus encore'
Acknowledgments
- Thanks to everyone whose code was used
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mymemory-tr-free-0.0.2.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for mymemory_tr_free-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 325a002617a0d3e47f9498cb24930572bf2c3ed83f4a0f51af659f07e1589077 |
|
MD5 | 43c83c6786ab587245c5652e9ba8168b |
|
BLAKE2b-256 | 160cb236d321d1daa187698ed49ca831b80d8cf36d2bb12fb649a3716f0d941a |