prices
Python price handling for humans
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with only babel and typing as runtime dependencies.
- Aging maintenance status—last release was 2022-10-07 with no recent activity, though repository remains active with 267 stars.
License · maintenance · safety
BSD (permissive) — BSD permissive license allows commercial and private use with minimal restrictions, suitable for most projects.
last release 2022-10-07 (1407 days) · last repo commit 2025-10-30 · 267 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 97,678 downloads/mo, #13,134 on PyPI
Alternatives
Verify before relying
from prices import Money, TaxedMoney
a = Money(10, 'USD')
a += Money(20, 'USD')
p = TaxedMoney(net=Money(20, 'EUR'), gross=Money(30, 'EUR'))
p.tax- Whether the package works reliably with Python versions beyond 3.8, given aging maintenance and unspecified python_support.
- Performance characteristics when handling large price ranges or high-frequency calculations.
- Whether tax calculation methods beyond flat_tax are available or documented.
What it is and 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—operations that would silently produce nonsense in naive implementations.
The 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
prices on PyPI
Before you install
Low friction: pure Python wheel with only babel and typing as runtime dependencies. Aging maintenance status—last release was 2022-10-07 with no recent activity, though repository remains active with 267 stars.
License in practice
BSD permissive license allows commercial and private use with minimal restrictions, suitable for most projects.
Quickstart
from prices import Money, TaxedMoney
a = Money(10, 'USD')
a += Money(20, 'USD')
p = TaxedMoney(net=Money(20, 'EUR'), gross=Money(30, 'EUR'))
p.tax
Verify before relying
- Whether the package works reliably with Python versions beyond 3.8, given aging maintenance and unspecified python_support.
- Performance characteristics when handling large price ranges or high-frequency calculations.
- Whether tax calculation methods beyond flat_tax are available or documented.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesbabeltyping |
| Maintenance | Aging 1,407 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 97,678 / month, #13,134 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Libraries :: Python Modules |
Evidence: prices-1.1.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “taxed price calculations”
- pricesHandles monetary amounts with currency awareness, tax calculations,…
- py-vollibCalculates option prices, implied volatility, and Greeks using Black,…
- price-parserExtracts price amounts and currency symbols from unstructured text…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also price-parser · py-money · forex-python · py-moneyed · django-money · vat-utils · cpi · CurrencyConverter · currency-symbols · python-ranges