Sinhala Tools
A Python package to help with various Sinhala language processing tasks.
Features
-
Convert Sinhala text to Roman characters (Singlish) and vice versa.
-
Translate text and files between Sinhala and other languages using Google Translate.
-
Use Google Input Tools to convert text to Sinhala.
-
Find possible Sinhala matches for Singlish input.
Installation
Install the package via pip:
pip install SinhalaTools
Usage
Convert Sinhala to Roman
from SinhalaTools import sinhala_to_roman
sinhala_text = "සිංහල"
result = sinhala_to_roman(sinhala_text )
print(result)
Convert Roman to Sinhala
from SinhalaTools import roman_to_sinhala
roman_text = "siṃhala"
sinhala_text = roman_to_sinhala(roman_text)
print(sinhala_text)
Convert Using Google Input Tools
from SinhalaTools import inputTools
text = "sinhala"
result = inputTools(text)
print(result)
Finding Possible Matches
from SinhalaTools import possible_matches
input_str = "sinhala"
matches = possible_matches(input_str)
print(matches)
Translate a Text String
from SinhalaTools import translate
text = "Hello, how are you?"
translated_text = translate(text, source_language='en', target_language='si')
print(translated_text)
Translate a File
from SinhalaTools import translate_file
file = "sample.txt"
translated_text = translate_file(file, source_language='en', target_language='si')
print(translated_text)
Contact
For any inquiries or issues, please contact tharindu.20@cse.mrt.ac.lk.
Metadata
Release files for SinhalaTools 0.0.7
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 | |
|---|---|---|---|---|
| SinhalaTools-0.0.7.tar.gz | 6.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| SinhalaTools-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / SinhalaTools-0.0.7.tar.gz
| Download URL | SinhalaTools-0.0.7.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
565627f723d7763589aa868ee3d106acecf3856aff01720f2bedd7cb0aaecc34
|
|
BLAKE2b-256 checksum How to use checksums |
5685b5946659011a67034b866d62c7be3001b26737810a5cb4c259cc16939293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.2
|
Release files / SinhalaTools-0.0.7-py3-none-any.whl
| Download URL | SinhalaTools-0.0.7-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f0ea19497d028c3cc7cd7da477df80bba7fe73b368439d398fbe04fb01d2972
|
|
BLAKE2b-256 checksum How to use checksums |
f232e95ab0213cb7947eef17b41ed7b8660f82956002cb36dd81d3d00c67f8b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.2
|
Security for SinhalaTools 0.0.7
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.