Monepy

tests Codecov

PyPI - Version

License: MIT

A python package that implements currency classes to work with monetary values.

It behaves like a numeric class under the hood is an easy way to work with money:

>>> from monepy import USD
>>> x = USD(500)
>>> x
<USD 500.00>
>>> x = USD(500)
>>> y = USD(25)
>>> x > y
True
>>> z = x + y
>>> z
<USD 525.00>
>>> print(f"Total is {z.formatted()}")
Total is $525.00

Documentation

The full documentation of the module is available at here.