Skip to main content

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)

Metadata

Release files for batch-tr 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for batch-tr 0.1.0
File Size Uploaded
batch-tr-0.1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for batch-tr 0.1.0
File Interpreter ABI Platform
batch_tr-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.5 kB

Release files / batch-tr-0.1.0.tar.gz

Download URL batch-tr-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c99c0486b218d0c49459c111f44bb759beea049e832ea5dfd3fff6d1fc7b15ba
BLAKE2b-256 checksum
How to use checksums
3232b37ca5eccce9c39855d540c79299aadc69f88f133767baf8b0401afa1232
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.7.9 Windows/10

Release files / batch_tr-0.1.0-py3-none-any.whl

Download URL batch_tr-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16d12a52aea93842fcec6c8652236d279b9047e7ce731bd32697c68e5d362581
BLAKE2b-256 checksum
How to use checksums
7cf10e9545252a42b07175773fb4a776dfe796c61f11d6aa2cec9df8a29870bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.7.9 Windows/10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page