Skip to main content

batch machine translate via pythonpy

Project description

batch_tr

[tests]pythonCode style: blackLicense: MITPyPI version

batch translate long text and list of texts at 10000 chars/s

Use It

from batch_tr.batch_tr import batch_tr

res = batch_tr("very long text " * 10000)
print(res)
# to chinese/zh

print(batch_tr("test me", to_lang="de"))

# long list
res = batch_tr(("very long text \n" * 10000).splitlines())
# equally long list of translated text
# known to work for to_lang="zh" (default)
print(res)

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

batch-tr-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

batch_tr-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file batch-tr-0.1.0.tar.gz.

File metadata

  • Download URL: batch-tr-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.7.9 Windows/10

File hashes

Hashes for batch-tr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c99c0486b218d0c49459c111f44bb759beea049e832ea5dfd3fff6d1fc7b15ba
MD5 cf4e350669e8492e6208d7bc53945cc7
BLAKE2b-256 3232b37ca5eccce9c39855d540c79299aadc69f88f133767baf8b0401afa1232

See more details on using hashes here.

File details

Details for the file batch_tr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: batch_tr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.7.9 Windows/10

File hashes

Hashes for batch_tr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16d12a52aea93842fcec6c8652236d279b9047e7ce731bd32697c68e5d362581
MD5 b2a6e13f979e9ca54b903602913c8051
BLAKE2b-256 7cf10e9545252a42b07175773fb4a776dfe796c61f11d6aa2cec9df8a29870bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page