8000 GitHub - vsbits/monepy: A python package that implements currency classes to work with monetary values
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages

0