{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/20"}],"enrichment":{"capability":"Handles monetary amounts with currency awareness, tax calculations, and price ranges while preventing invalid operations like comparing or adding different currencies.","skillfed_tags":["currency-handling","financial-math","type-safe"],"use_cases":["E-commerce checkout systems that calculate net and gross prices with tax applied across multiple currencies.","Invoicing and billing software that must prevent accidental currency mixing in calculations.","Price range displays in product catalogs where you need to show min/max with tax included.","Financial reporting that requires precise decimal arithmetic and currency-aware quantization.","Multi-tenant platforms handling customer payments in different currencies."],"what_it_does":"Prices is a Python library for working with monetary amounts in a type-safe way. It provides Money objects that carry both a numeric value (as Decimal) and a currency code, TaxedMoney objects that track net and gross amounts separately, and TaxedMoneyRange for price bands. The library's core strength is preventing common mistakes: you cannot compare Money in different currencies, add amounts across currencies, or mix currencies in ranges\u2014operations that would silently produce nonsense in naive implementations.\n\nThe library depends on babel and typing. It includes quantization methods to format amounts according to currency conventions (e.g., JPY to no decimals, EUR to two), and a flat_tax function to apply tax rates. The design is straightforward: create Money or TaxedMoney instances, perform arithmetic, and call quantize() when you need formatted output. It's a focused layer for e-commerce backends, invoicing systems, and any code that needs to reason about prices across multiple currencies.","worth_installing":"Yes, if you need currency-aware money arithmetic with built-in safeguards. Low install friction and permissive BSD license make it a safe add. However, aging maintenance (last release 2022-10-07, no recent commits) means you should verify it works with your Python version. For new projects, evaluate whether a more actively maintained alternative exists; for existing codebases already using it, it remains stable."},"id":"prices","links":{"html":"https://skillfed.io/packages/prices","md":"https://skillfed.io/packages/prices.md","pypi":"https://pypi.org/project/prices/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2022-10-07","license_spdx":null,"license_treatment":"permissive","name":"prices","python_support":"unspecified","summary":"Python price handling for humans"},"popularity":{"monthly_downloads":97678,"position":13134,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.1"}
