python module to balance prices
Python module for balancing product prices. It takes USD price and uses various strategies of your choice to calculate fair price in other currencies.
Pip is required to install the module. If you don't have pip installed, you can follow the instructions here.
pip install fairprice
from fairprice import FairPrice
from fairprice.strategy import BigMac
fp = FairPrice(strategy=BigMac)
fp.calculate(10, "PLN")
Clone the repository and install the requirements.
git clone https://github.com/Style77/fairprice.git
cd fairprice
pip install -r requirements.txt
- Fork it (https://github.com/Style77/fairprice/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new pull request