Skip to main content

Currency classes to work with monetary values

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monepy-0.4.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monepy-0.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file monepy-0.4.tar.gz.

File metadata

  • Download URL: monepy-0.4.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for monepy-0.4.tar.gz
Algorithm Hash digest
SHA256 562d9a7436867ac2829e7820a7cfb319512155fac1c8aba7b28d3e20d8300cb3
MD5 9ad163f237aa5ae7280b490edbb34295
BLAKE2b-256 7693ad6cf437b9e5a95f6f8914dba6ebdf7d423f3a8d758fd2a882578591aeb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for monepy-0.4.tar.gz:

Publisher: publish.yml on vsbits/monepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file monepy-0.4-py3-none-any.whl.

File metadata

  • Download URL: monepy-0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for monepy-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2f6fe4925f0aaa0fb9c34b37b838b5181fccd801888c37daee35c43e06218ad8
MD5 fdf86649049fb61c3b76717a918229b7
BLAKE2b-256 7486f6070f9db3fc68f2ad8fb09c0225502693d2b5fdde150281efb5ebdc96dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for monepy-0.4-py3-none-any.whl:

Publisher: publish.yml on vsbits/monepy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page