Install & Compatibility
Where this runs
tested against v0.0.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
convert_english_digit_to_bangla_digit
✓ from bangla import convert_english_digit_to_bangla_digit
✗ from bangla import GregorianToBangla
convert_to_ordinal
✓ from bangla import convert_to_ordinal
get_date
✓ from bangla import get_date
This quickstart demonstrates how to use `GregorianToBangla` to convert dates, `eng_to_bangla_numeral` to translate numbers, and `BanglaOrdinal` to get date ordinals.
from bangla import GregorianToBangla, eng_to_bangla_numeral, BanglaOrdinal
# Convert Gregorian date to Bangla
date_converter = GregorianToBangla(2023, 10, 26)
bangla_date = date_converter.get_date()
print(f"Gregorian 2023-10-26 in Bangla: {bangla_date}")
# Expected output: Gregorian 2023-10-26 in Bangla: কার্তিক ১০, ১৪৩০
# Translate English numerals to Bangla numerals
english_numeral = "2024"
bangla_numeral = eng_to_bangla_numeral(english_numeral)
print(f"English '{english_numeral}' in Bangla numeral: {bangla_numeral}")
# Expected output: English '2024' in Bangla numeral: ২০২৪
# Generate Bangla ordinal for a date
ordinal_generator = BanglaOrdinal(2023, 10, 26)
bangla_ordinal = ordinal_generator.get_ordinal()
print(f"Bangla ordinal for 26th: {bangla_ordinal}")
# Expected output: Bangla ordinal for 26th: ২৬শে
Debug
Known issues
gotchaThe `bangla` library has not been updated since March 2021 (v0.0.5). While it may still function, it might not receive updates for new Python versions, bug fixes, or security patches, potentially leading to compatibility issues in the future.fixConsider the library's maintenance status for long-term projects or complex use cases. Test thoroughly with your target Python version and be prepared for potential unaddressed issues.
affects: 0.0.5 and potentially earlier
gotchaInput validation is minimal. Providing invalid dates (e.g., February 30th) or non-numeric input to functions like `GregorianToBangla` or `eng_to_bangla_numeral` might lead to incorrect conversions or unexpected runtime errors, rather than explicit, user-friendly exceptions.fixEnsure inputs are valid Gregorian dates or numeric strings before passing them to the library's functions. Wrap calls in try-except blocks for robustness if inputs are untrusted.
affects: All versions up to 0.0.5
Upgrade
Version history
0.0.6latest on PyPI · released Jun 8, 2026
Audit
Dependencies
No dependency data recorded yet.