Skip to content
/ monepy Public

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

License

Notifications You must be signed in to change notification settings

vsbits/monepy

Repository files navigation

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 here.