Skip to main content

Balance the price of your products

Project description

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

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

fairprice-0.1.2.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

fairprice-0.1.2-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

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