(14-Jun-2026) This repo demonstrates commercial rounding (round half up) for monetary values in Python. The strategy is available out of the box via the Python API, making it suitable for financial workflows, like in e-commerce, that require commercial rounding rules.
Make sure you have Docker Compose installed if you are using Docker.
python -m venv env
source env/bin/activate
pip install -r requirements.txt# to run on first time
docker-compose up --build
# to run in background
docker-compose up --build -d
# to run when file-changes have been made
docker-compose uppython src/main.py -f=foo --bar=bazPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.