Tiny helpers for price explainers (formatting, ranges, hours-to-afford).
Project description
thepricer-utils
Tiny helpers for price explainers (formatting, ranges, hours-to-afford).
Homepage: https://www.thepricer.org/
Install
pip install thepricer-utils
Usage
from thepricer_utils import format_price, midpoint, hours_to_afford
print(format_price(12.99, currency="$", per="lb")) # "$12.99 per lb"
print(midpoint(9.0, 11.0)) # 10.0
print(hours_to_afford(28.50, 15.0)) # 1.9
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
thepricer_utils-0.0.1.tar.gz
(2.3 kB
view details)
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 thepricer_utils-0.0.1.tar.gz.
File metadata
- Download URL: thepricer_utils-0.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59fd1b9f6f86cb59cfb4eacd862b3bf96e7d1ebc19769622c8fc79441308e161
|
|
| MD5 |
d07eb78bc3351d3bde0e11f86b24e11d
|
|
| BLAKE2b-256 |
2ce3aa200f2abcb6d8173dcd0456f7cc892f93806c3950701e66a1618b4c7aa6
|
File details
Details for the file thepricer_utils-0.0.1-py3-none-any.whl.
File metadata
- Download URL: thepricer_utils-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27192f1ea477265baa87376945acdc2afff30c728fcc4cfbb4a609a2c117e2a8
|
|
| MD5 |
34eff196c05d089e2cf38b436e613b33
|
|
| BLAKE2b-256 |
4d5324d7be7450687698753e48dbc1707a634ebebb532a7ede21df8be3415e1a
|