Currency classes to work with monetary values
Project description
Monepy
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
562d9a7436867ac2829e7820a7cfb319512155fac1c8aba7b28d3e20d8300cb3
|
|
| MD5 |
9ad163f237aa5ae7280b490edbb34295
|
|
| BLAKE2b-256 |
7693ad6cf437b9e5a95f6f8914dba6ebdf7d423f3a8d758fd2a882578591aeb4
|
Provenance
The following attestation bundles were made for monepy-0.4.tar.gz:
Publisher:
publish.yml on vsbits/monepy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monepy-0.4.tar.gz -
Subject digest:
562d9a7436867ac2829e7820a7cfb319512155fac1c8aba7b28d3e20d8300cb3 - Sigstore transparency entry: 176569309
- Sigstore integration time:
-
Permalink:
vsbits/monepy@7b45c61d9854d80982fd7738329c23d89dfd21de -
Branch / Tag:
refs/tags/v0.4 - Owner: https://github.com/vsbits
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7b45c61d9854d80982fd7738329c23d89dfd21de -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f6fe4925f0aaa0fb9c34b37b838b5181fccd801888c37daee35c43e06218ad8
|
|
| MD5 |
fdf86649049fb61c3b76717a918229b7
|
|
| BLAKE2b-256 |
7486f6070f9db3fc68f2ad8fb09c0225502693d2b5fdde150281efb5ebdc96dd
|
Provenance
The following attestation bundles were made for monepy-0.4-py3-none-any.whl:
Publisher:
publish.yml on vsbits/monepy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monepy-0.4-py3-none-any.whl -
Subject digest:
2f6fe4925f0aaa0fb9c34b37b838b5181fccd801888c37daee35c43e06218ad8 - Sigstore transparency entry: 176569312
- Sigstore integration time:
-
Permalink:
vsbits/monepy@7b45c61d9854d80982fd7738329c23d89dfd21de -
Branch / Tag:
refs/tags/v0.4 - Owner: https://github.com/vsbits
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7b45c61d9854d80982fd7738329c23d89dfd21de -
Trigger Event:
release
-
Statement type: