mymemory translate for free with proxy support
Project description
mymemory-tr-free ![Python3.6|3.7 package](https://pypi-camo.freetls.fastly.net/b53619da5c824545adb9fd68aede0150c8d21f98/68747470733a2f2f6769746875622e636f6d2f66667265656d742f6d796d656d6f72792d74722d667265652f776f726b666c6f77732f507974686f6e332e36253743332e372532307061636b6167652f62616467652e737667)
![codecov](https://pypi-camo.freetls.fastly.net/c1e9f6f9cd81368c409934c5025610ef3fb05a22/68747470733a2f2f636f6465636f762e696f2f67682f66667265656d742f6d656d6f72792d74722d667265652f6272616e63682f6d61737465722f67726170682f62616467652e737667)
translate for free with proxy support
Installation
Not available yet
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 identifid 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'
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.1.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for mymemory_tr_free-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 412719b0f47b43cc63da81884ac45da7355e0ca055a6f3169fa706b255faaa5d |
|
MD5 | 20de3fb55573bcecc0f6e5e6a2e7587b |
|
BLAKE2b-256 | 021366ebab0ca57f30234e92320244da4af56d0a4a2e910de8f6dc9af51a0bc4 |