Cyrillic numeral system numbers conversion
Project description
cu-numbers
A program for numbers conversion between Arabic and Cyrillic (further CU) numeral systems.
Background
See Introduction to learn about CU numeral system.
Requirements
Python >= 3.5
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 an Arabic
# Requires str, returns int
b = cunumbers.to_arab("а҃")
"Delimiter" and "plain" styles are supported. Arabic to CU conversion mode can be specified by supplying a flag. "Delimeter" style is by default.
# Use CU_PLAIN or CU_DELIM to specify Arabic to CU coversion mode
c = cunumbers.to_cu(111111, CU_PLAIN)
# Use CU_NOTITLO flag to omit "titlo"
d = cunumbers.to_cu(11000, CU_PLAIN + CU_NOTITLO)
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.
License
See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cu-numbers-1.2.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for cu_numbers-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a344e796fc15e854b191e7ac449727e3053d5950ad8d164835a674b7db8a443 |
|
MD5 | af309748e16e70a20eb1fee1bfed8d0d |
|
BLAKE2b-256 | ec47cc60c4f2b96255e5cb8df83e2486e746b32d04ed217fbd526ade1997c2ad |