Balance the price of your products
Project description
fairprice
python module to balance prices
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
- 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
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
fairprice-0.1.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for fairprice-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f27a416c2f3b416bd98b52af0d1e4bee091cc6784d5d114084469bff9d82fd09 |
|
MD5 | 20493430dbfa87e25b30d8ca280967ae |
|
BLAKE2b-256 | 0410fcb6241badd3bbf3c4733c3f616173b416f9184fda00112dec294fdff5b0 |