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
Metadata
Release files for fairprice 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fairprice-0.1.2.tar.gz | 3.9 kB | Without provenance | Details for fairprice-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fairprice-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for fairprice-0.1.2-py3-none-any.whl |
Total release size: 7.2 kB
Release files / fairprice-0.1.2.tar.gz
| Download URL | fairprice-0.1.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbdb521de82b8fedb25271d4057e6ed588b6c76aead91e6a03099d28f4683d28
|
|
BLAKE2b-256 checksum How to use checksums |
f5094d9b7fb6e692568831b9a15f391340826a57f2fa7183cd23f086ed87f38a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / fairprice-0.1.2-py3-none-any.whl
| Download URL | fairprice-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f27a416c2f3b416bd98b52af0d1e4bee091cc6784d5d114084469bff9d82fd09
|
|
BLAKE2b-256 checksum How to use checksums |
0410fcb6241badd3bbf3c4733c3f616173b416f9184fda00112dec294fdff5b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for fairprice 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.