Skip to main content

mymemory translate for free with proxy support

Project description

mymemory-tr-free Python3.6|3.7 packagecodecov

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


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)

Uploaded source

Built Distribution

mymemory_tr_free-0.0.1-py3-none-any.whl (7.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page