{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/5"}],"enrichment":{"capability":"Represents monetary amounts with currency-aware precision, enforcing correct decimal places per currency and supporting arithmetic operations, comparisons, and locale-specific formatting.","skillfed_tags":["money-handling","currency-formatting","abandoned"],"use_cases":["Computing sales tax and totals in an online store across multiple currencies with correct rounding.","Formatting prices for display in different locales (e.g., '$3.24' for en_US, '\u20ac5.56' for en_UK).","Validating that monetary amounts conform to their currency's decimal precision before storage or transmission.","Performing basic arithmetic on money objects (addition, division, multiplication) with automatic rounding per currency rules.","Preventing accidental cross-currency operations by raising errors when mixing currencies in calculations."],"what_it_does":"py-money is a Money class for Python that enforces correct decimal representation for each currency\u2014so 3.678 USD or 5.5 JPY are rejected as invalid. It wraps amounts as immutable objects tied to a specific Currency, supporting arithmetic (addition, division, multiplication) and comparison operators with automatic rounding to the currency's correct precision after each operation. The library depends on babel for locale-aware formatting.\n\nThe package is designed for straightforward monetary calculations: online stores computing sales tax, multi-currency pricing, and locale-specific display. It explicitly does not support currency conversion or operations requiring arbitrary precision beyond what the currency defines. Rounding happens after each operation, which is correct for retail math but can produce unexpected results if expressions are reordered\u2014the documentation warns against this.","worth_installing":"No. While the package is lightweight and permissively licensed, it has been abandoned since 2020 with no maintenance for over 4 years. For new projects, choose an actively maintained alternative. For existing codebases already using py-money, it may continue to work if your Python version and babel compatibility remain stable, but you have no path to fixes or support."},"id":"py-money","links":{"html":"https://skillfed.io/packages/py-money","md":"https://skillfed.io/packages/py-money.md","pypi":"https://pypi.org/project/py-money/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-01-29","license_spdx":null,"license_treatment":"permissive","name":"py-money","python_support":"unspecified","summary":"Money module for python"},"popularity":{"monthly_downloads":808931,"position":5011,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5.0"}
