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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fairprice-0.1.2.tar.gz.
File metadata
- Download URL: fairprice-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbdb521de82b8fedb25271d4057e6ed588b6c76aead91e6a03099d28f4683d28
|
|
| MD5 |
3b2e3bcf978140cb0e42843494128f3a
|
|
| BLAKE2b-256 |
f5094d9b7fb6e692568831b9a15f391340826a57f2fa7183cd23f086ed87f38a
|
File details
Details for the file fairprice-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fairprice-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f27a416c2f3b416bd98b52af0d1e4bee091cc6784d5d114084469bff9d82fd09
|
|
| MD5 |
20493430dbfa87e25b30d8ca280967ae
|
|
| BLAKE2b-256 |
0410fcb6241badd3bbf3c4733c3f616173b416f9184fda00112dec294fdff5b0
|