Metadata-Version: 2.1
Name: kharosthi.numbers
Version: 0.1.1
Summary: A module to represent kharosthi numbers
Home-page: https://github.com/ulrikjohansson/kharosthi_numbers
License: MIT
Author: Ulrik Johansson
Author-email: ulrik@ulrik.io
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Project-URL: Repository, https://github.com/ulrikjohansson/kharosthi_numbers
Description-Content-Type: text/markdown

# Kharosthi numbers
A naive representation of Kharosthi numerals, and a way to do simple arithmetic on them (actually, we're cheating and doing arithmetic on `int` versions of the numbers).

Currently only supports numbers less than 10000. The naive conversion algorithm currently can't deal with arbitrarily big numbers, so we only support "𐩇" with a maximum value of 9 in front of it.

Also, 0 and negative integers are not representable in Kharosthi, and not valid numbers.

## Requirements
Python >= 3.6

## Usage
```python
from kharosthi import KharosthiNumber as K

sum = K.from_int(5) + K.from_int(50)

# 7 - 4 = 3
int(difference) = K("𐩃𐩂") - K("𐩃")
```

Reference: https://en.wikipedia.org/wiki/Kharosthi#Numerals

