Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pceuropa/number-integer-to-number-string
Convert ordinal numbers into words in polish language.
https://github.com/pceuropa/number-integer-to-number-string
django number-converter numbers-to-text numbers-to-words polish-language python3 rest-api
Last synced: 5 days ago
JSON representation
Convert ordinal numbers into words in polish language.
- Host: GitHub
- URL: https://github.com/pceuropa/number-integer-to-number-string
- Owner: pceuropa
- License: mit
- Created: 2018-05-12T17:59:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-22T20:53:07.000Z (over 2 years ago)
- Last Synced: 2023-03-04T03:17:43.981Z (over 1 year ago)
- Topics: django, number-converter, numbers-to-text, numbers-to-words, polish-language, python3, rest-api
- Language: Python
- Homepage:
- Size: 631 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# number-integer-to-number-string
Convert number into polish words [Polish documentation](https://pceuropa.net/blog/pl/konwersja-liczby-na-slowa-python/)Browser <- Js AJAX -> REST API (django) <->
[numbetostring.py](https://github.com/pceuropa/number-integer-to-number-string/blob/master/app/numbersinword.py) (python3)Class numbersinword convert number to list.
On groups of number (by 3 number) iterate two functions: first set name of groups (ex. milionów, tysięcy) second set
name of number in group (ex. sto dwadzieścia). At the end method toString() scale and return string (or False if
exception)## Download and install packages
```
git clone https://github.com/pceuropa/number-integer-to-number-string.git
cd number-integer-to-number-string
pip3 install -r requirements.txt
```## Run app django
```
./manage.py runserver
```## Tests
```
./manage.py test```
## Execute only python method (without Web API)
```
python3 app/numbersinword.py
```