Skip to main content

pip install prlps_text_replacer

from prlps_text_replacer import text_replace_by_dict

text = "Гуманоидный робот и Соединенное Королевство - это разные вещи. А безпанцирные улитки - это просто слизни. РОБОТ рОбОт робот"
replacements = {
    "гуманоидный робот": "андроид",
    "Соединенное Королевство": "Великобритания",
    "безпанцирные улитки": "слизни",
    "робот": "машина",
    "РОБОТ": "АВТОМАТ",
}

result = text_replace_by_dict(text, replacements)
print(result)

Metadata

Release files for prlps-text-replacer 0.0.1

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

Source distribution (sdist)

Source distribution for prlps-text-replacer 0.0.1
File Size Uploaded
prlps_text_replacer-0.0.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prlps-text-replacer 0.0.1
File Interpreter ABI Platform
prlps_text_replacer-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / prlps_text_replacer-0.0.1.tar.gz

Download URL prlps_text_replacer-0.0.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ff328368b4579b54b6fcb03184e13f90c48c2510a470b1856e9a171fadd38624
BLAKE2b-256 checksum
How to use checksums
456a5173e4d69e40f12fd64aa101a28f5ab29c3d63fae5dbf00263dec533fb1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / prlps_text_replacer-0.0.1-py3-none-any.whl

Download URL prlps_text_replacer-0.0.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5e9c3baf776a1e1bd70683a3e80386e1b252f1a086006729e07cc2f92a926f0
BLAKE2b-256 checksum
How to use checksums
6504552ab5abc92f6fb96d14bf1942501b70553ac042c27621bb2e4a52f7a40b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.0.1 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