pynumeral
is a python implementation of number formatting using numeraljs format. This project was motivated when we had to render numbers backend-side (which is written in python) while keep using formats defined by users. It has been coded regardless of the javascript implementation. It has been tested on a fairly large amount of formats but there are not any guarantees that it covers all the cases. Since unit testing is pretty simple, contributions are more than welcome.
It only provides a simple api pynumeral.format(value, format)
.
- License: MIT license
- Source: https://github.com/optimdata/pynumeral
- Issues: https://github.com/optimdata/pynumeral/issues