Skip to main content

Python class for converting numbers into Bulgarian cyrillic words

Project description

num2cyrillic

With num2cyrillic.NumberToWords() Python3 class you can convert an integer number to simple Bulgarian cyrillic words. This can be useful when you need to spell a currency value e.g. on an invoice.

This is a Python3 porting of the excellent PEAR::Numbers_Words class by Kouber Saparev for PHP.

All credit goes to him, this is simply an implementation of the same logic in Python.

Installation

pip install num2cyrillic

Usage

from num2cyrillic import NumberToWords

num2bg = NumberToWords()
num2bg.cyrillic(3)
num2bg.cyrillic(67)

# три
# шестдесет и седем

(C) Copyright 2018 ClaimCompass, Inc.

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

num2cyrillic-1.0.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

num2cyrillic-1.0.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

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