srtools
Srtools provides a CLI utility (srts) and a Python 3 (^3.7) package that helps you transliterate Serbian texts between Cyrillic and Latin.
Here’s a demonstration of the CLI utility:
$ echo "Đače, uštedu plaćaj žaljenjem zbog džinovskih cifara." | srts --lc
Ђаче, уштеду плаћај жаљењем због џиновских цифара.
$ echo "Ђаче, уштеду плаћај жаљењем због џиновских цифара." | srts --cl
Đače, uštedu plaćaj žaljenjem zbog džinovskih cifara.
Here’s how you use the Python package:
from srtools import cyrillic_to_latin, latin_to_cyrillic
assert (
latin_to_cyrillic("Đače, uštedu plaćaj žaljenjem zbog džinovskih cifara.")
== "Ђаче, уштеду плаћај жаљењем због џиновских цифара."
)
assert (
cyrillic_to_latin("Ђаче, уштеду плаћај жаљењем због џиновских цифара.")
== "Đače, uštedu plaćaj žaljenjem zbog džinovskih cifara."
)
Motivation
I needed a simple commandline utility I can use to pipe in some text and change its script.
I also use this tool to transliterate strings in Serbian LaTeX localization packages. That way I don’t have to maintain individual sets of localization strings for Cyrillic and Latin.
Documentation
Documentation (Sphinx) can be viewed on GitLab pages for this package.
Changelog
The changelog can be found within the documentation, here.
Metadata
Release files for srtools 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| srtools-0.1.13.tar.gz | 30.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| srtools-0.1.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 74.4 kB
Release files / srtools-0.1.13.tar.gz
| Download URL | srtools-0.1.13.tar.gz |
|---|---|
| Size | 30.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f9b51ab64e1d8a5609b12a1bdea7d6b1908f2269210ed85f0097b0200aa4a69
|
|
BLAKE2b-256 checksum How to use checksums |
ab13755904d2088f7b8129d9a6426f2e4b4e065f7e41071adcbc6e0faadb8bc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.6 Linux/5.4.109+
|
Release files / srtools-0.1.13-py3-none-any.whl
| Download URL | srtools-0.1.13-py3-none-any.whl |
|---|---|
| Size | 44.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87c4ae316249a686063be3547242641fffaf93814aa494b25dea332adb4cd661
|
|
BLAKE2b-256 checksum How to use checksums |
513b9cee0a8aa867b55fa36c86016161be6ee00d438f796ed732862529926c10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.6 Linux/5.4.109+
|
Security for srtools 0.1.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.