Skip to main content

fairprice

python module to balance prices

PyPI License: MIT

Python module for balancing product prices. It takes USD price and uses various strategies of your choice to calculate the price in other currencies.

Installation

Pip is required to install the module. If you don't have pip installed, you can follow the instructions here.

pip install fairprice

Usage example

from fairprice import FairPrice
from fairprice.strategy import BigMac

fp = FairPrice(strategy=BigMac)
fp.calculate(10, "PLN")

Development setup

Clone the repository and install the requirements.

git clone https://github.com/Style77/fairprice.git
cd fairprice
pip install -r requirements.txt

Contributing

  1. Fork it (https://github.com/Style77/fairprice/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new pull request

Metadata

Release files for fairprice 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fairprice 0.1.2
File Size Uploaded
fairprice-0.1.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fairprice 0.1.2
File Interpreter ABI Platform
fairprice-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / fairprice-0.1.2.tar.gz

Download URL fairprice-0.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bbdb521de82b8fedb25271d4057e6ed588b6c76aead91e6a03099d28f4683d28
BLAKE2b-256 checksum
How to use checksums
f5094d9b7fb6e692568831b9a15f391340826a57f2fa7183cd23f086ed87f38a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / fairprice-0.1.2-py3-none-any.whl

Download URL fairprice-0.1.2-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f27a416c2f3b416bd98b52af0d1e4bee091cc6784d5d114084469bff9d82fd09
BLAKE2b-256 checksum
How to use checksums
0410fcb6241badd3bbf3c4733c3f616173b416f9184fda00112dec294fdff5b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page