AvroConverter
A Python package for bidirectional conversion between Bengali (Bangla) text and Avro phonetic typing.
Overview
AvroConverter provides a robust solution for converting between Bengali Unicode text and Avro phonetic transliteration. It enables seamless transformation of Bengali text to its phonetic representation and vice versa.
Features
- Bengali to Avro Conversion: Convert Bengali Unicode text to Avro phonetic representation
- Avro to Bengali Conversion: Convert Avro phonetic text to Bengali Unicode
Installation
pip install MapAvro
Usage
Basic Usage
from MapAvro import AvroConverter
# Initialize the converter
converter = AvroConverter()
# Convert Bengali to Avro
bengali_text = "আমি বাংলায় গান গাই।"
avro_text = converter.bengali_to_avro(bengali_text)
print(avro_text) # Output: "ami banglay gan gai."
# Convert Avro to Bengali
avro_input = "ami banglay gan gai."
bengali_output = converter.avro_to_bengali(avro_input)
print(bengali_output) # Output: "আমি বাংলায় গান গাই।"
Technical Details
The conversion is based on character mapping tries that efficiently handle the transformation between Bengali and Avro representations. The package also includes text normalization capabilities to handle edge cases and ensure consistent input/output.
The core components are:
AvroConverter: Main class that handles bidirectional conversion
Requirements
- Python 3.6+
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for MapAvro 0.1.6
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 | Actions |
|---|---|---|---|---|
| mapavro-0.1.6.tar.gz | 49.9 kB | Without provenance | Details for mapavro-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mapavro-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for mapavro-0.1.6-py3-none-any.whl |
Total release size: 102.3 kB
Release files / mapavro-0.1.6.tar.gz
| Download URL | mapavro-0.1.6.tar.gz |
|---|---|
| Size | 49.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc50062bd295a75f1692a88e9a801026e4b7d4e8f939c389c740d979be5668df
|
|
BLAKE2b-256 checksum How to use checksums |
93a0577fc3fffb14db04e3883039afab3669938f1d90b2e463b3a86001607e17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Release files / mapavro-0.1.6-py3-none-any.whl
| Download URL | mapavro-0.1.6-py3-none-any.whl |
|---|---|
| Size | 52.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d2484d65b18ca991944d2dd6a1e0e4ca6a43df6686800a8e64ae0481b768bb1
|
|
BLAKE2b-256 checksum How to use checksums |
09fef84d6bb82f852cfd57c5888b48f0eeb328d415fd9139d96dd6514a35e4ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Security for MapAvro 0.1.6
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.