Skip to main content

bnspellnum for Python

Spell out numbers in Bangla: words, taka/paisa, ordinals, years and dates. Zero dependencies, Python ≥ 3.10. Implements the bnspellnum spec 1.0.0, and gives the same output as the JavaScript, PHP, C# and C++ packages.

pip install bnspellnum
import bnspellnum as bn

bn.words(1250000)                    # 'বারো লাখ পঞ্চাশ হাজার'
bn.words(200, style="formal")        # 'দুইশত'
bn.words("-3.25")                    # 'ঋণাত্মক তিন দশমিক দুই পাঁচ'
bn.currency("1250.50", cheque=True)  # 'এক হাজার দুইশো পঞ্চাশ টাকা পঞ্চাশ পয়সা মাত্র'
bn.ordinal(2), bn.ordinal(2, short=True)  # ('দ্বিতীয়', '২য়')
bn.year(1971)                        # 'উনিশশো একাত্তর'
bn.date(16, 12, 1971)                # 'ষোলোই ডিসেম্বর উনিশশো একাত্তর'
bn.date(28, 11, style="short")       # '২৮শে নভেম্বর'
bn.to_bn_digits("2026")              # '২০২৬'
bn.to_en_digits("১২,৫০,০০০")         # '12,50,000'
  • Accepts int, str (ASCII or Bangla digits, , separators, one .) and decimal.Decimal. float raises InvalidInputError; pass a string instead.
  • Errors: InvalidInputError and OutOfRangeError, both subclasses of BnSpellNumError (itself a ValueError).
  • Fully typed (py.typed).

Full documentation, options and spelling decisions are in the project README. MIT © Ediphas Labs.

Metadata

Release files for bnspellnum 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bnspellnum 0.1.0
File Size Uploaded Provenance Actions
bnspellnum-0.1.0.tar.gz 8.2 kB With provenance Details for bnspellnum-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bnspellnum 0.1.0
File Interpreter ABI Platform Actions
bnspellnum-0.1.0-py3-none-any.whl Python 3 none any Details for bnspellnum-0.1.0-py3-none-any.whl

Total release size: 16.6 kB

Release files / bnspellnum-0.1.0.tar.gz

Download URL bnspellnum-0.1.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ecf22415a483384b3d615ac3035dd6034fd4b3bb385f63ad447e84ac5e9c9028
BLAKE2b-256 checksum
How to use checksums
8ede9d41c1dde89f59e6b4ee81fcd5d4400968de9049fda26e44eaf16bfef926
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / bnspellnum-0.1.0-py3-none-any.whl

Download URL bnspellnum-0.1.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3046bbefacab47e2b3b66385c9e953b185b64464beac705fc37a5e8bb9ae92b
BLAKE2b-256 checksum
How to use checksums
36def6dfd426623908b4174a7ee58b46eaa647b7f5503fec8141d3bfa89ad976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for bnspellnum 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bnspellnum-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page