Metadata-Version: 2.1
Name: cu-numbers
Version: 1.3.0
Summary: Cyrillic numeral system numbers conversion
Home-page: https://github.com/endrain/cu-numbers
Author: Andrei Shur
Author-email: amshoor@gmail.com
License: MIT
Keywords: church slavonic,conversion
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Religion
Classifier: Intended Audience :: Science/Research
Requires-Python: >=3.4
Description-Content-Type: text/markdown

# cu-numbers

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cu-numbers) ![PyPI - Wheel](https://img.shields.io/pypi/wheel/cu-numbers) [![Codecov](https://img.shields.io/codecov/c/github/endrain/cu-numbers)](https://app.codecov.io/gh/endrain/cu-numbers)

[![PyPI - License](https://img.shields.io/pypi/l/cu-numbers)](./LICENSE)

A program for numbers conversion between Arabic and Cyrillic (*further CU*) numeral systems.

## Background

See [Introduction](./INTRODUCTION.md) to learn about CU numeral system.

## Installation

	pip install cu-numbers

## Usage

	import cunumbers

	#   Convert an Arabic number to CU
	#   Requires non-zero int, returns str

	a = cunumbers.to_cu(1)

	#   Convert a CU number to Arabic
	#   Requires str, returns int

	b = cunumbers.to_arab("а҃")

"Delimiter" and "plain" style numbers are supported in both directions. "Delimeter" style is default for CU-wise conversions.

	#   Use CU_PLAIN flag to use "plain" style in CU-wise conversion

	c = cunumbers.to_cu(111111, CU_PLAIN)

	#   Use CU_NOTITLO flag to omit "titlo"

	d = cunumbers.to_cu(11000, CU_PLAIN + CU_NOTITLO)

	#   Use following flags in CU-wise conversion to add dot-styling:
	#   CU_ENDDOT - append dot at the end
	#   CU_WRAPDOT - append dot at both ends
	#   CU_DELIMDOT - add dot between each group in "delimeter" style.
	#       Sets conversion to "delim" style.
	#   CU_ALLDOT = combine CU_WRAPDOT and CU_DELIMDOT


## Contributing

Create an issue describing a bug or suggestion, then create a pull request mentioning the issue.

## Feedback

Drop me a line: amshoor@gmail.com

## Changelog

See [Changelog](./CHANGELOG.md).


