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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for fairprice-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bbdb521de82b8fedb25271d4057e6ed588b6c76aead91e6a03099d28f4683d28
MD5 3b2e3bcf978140cb0e42843494128f3a
BLAKE2b-256 f5094d9b7fb6e692568831b9a15f391340826a57f2fa7183cd23f086ed87f38a

See more details on using hashes here.

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

Hashes for fairprice-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f27a416c2f3b416bd98b52af0d1e4bee091cc6784d5d114084469bff9d82fd09
MD5 20493430dbfa87e25b30d8ca280967ae
BLAKE2b-256 0410fcb6241badd3bbf3c4733c3f616173b416f9184fda00112dec294fdff5b0

See more details on using hashes here.

Supported by

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