Skip to main content

A package for converting Bengali text to Avro and vice versa.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mapavro-0.1.3.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mapavro-0.1.3.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file mapavro-0.1.3.1.tar.gz.

File metadata

  • Download URL: mapavro-0.1.3.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for mapavro-0.1.3.1.tar.gz
Algorithm Hash digest
SHA256 25d8e858f3ab83ea660f912addc3d30fee3c6c00ec611b327bdae84fd19bc8b5
MD5 0ca5e56fd3ad83b2d924c22ae6a224f0
BLAKE2b-256 e856bb111ef0713776d04d4a281bfb20c0b020b7655e6fb6471f58cc5604c6cd

See more details on using hashes here.

File details

Details for the file mapavro-0.1.3.1-py3-none-any.whl.

File metadata

  • Download URL: mapavro-0.1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for mapavro-0.1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f130dc6421a0ed0d8cb6775b3862f77ff5821f05ec23eaa430c99dbf4eb583
MD5 0650e4c26f9b8230a2b65e07ea5c4fcc
BLAKE2b-256 98e434d2a2a595a78ec652c1dfbdb3152f44a60aa88be1537c9ba571e69b118c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page