Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thepricer_utils-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for thepricer_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 59fd1b9f6f86cb59cfb4eacd862b3bf96e7d1ebc19769622c8fc79441308e161
MD5 d07eb78bc3351d3bde0e11f86b24e11d
BLAKE2b-256 2ce3aa200f2abcb6d8173dcd0456f7cc892f93806c3950701e66a1618b4c7aa6

See more details on using hashes here.

File details

Details for the file thepricer_utils-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for thepricer_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 27192f1ea477265baa87376945acdc2afff30c728fcc4cfbb4a609a2c117e2a8
MD5 34eff196c05d089e2cf38b436e613b33
BLAKE2b-256 4d5324d7be7450687698753e48dbc1707a634ebebb532a7ede21df8be3415e1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page