Skip to main content

Groups products into combos such that the cummulative price is attractive.

Project description

ComboFinder

ComboFinder is a Python library that groups products into "combos" such that the price of the combo falls into a user defined range. Given a CSV file with product prices, ComboFinder can compute all possible combos and write these combos into a seperate csv file.

Installation

Use the package manager pip to install ComboFinder.

pip install ComboFinder

Usage

from ComboFinder import make_combos

make_combos(upper_limit = 550, lower_limit = 450, prices_csv = '/home/wwfelina/Documents/price_list.csv', LowerBound = 2, UpperBound = 4)

This will make a file called combos.csv in the working directory with all the combos.

upper_limit and lower_limit is the maximum and minimum cost of a combo.

LowerBound and UpperBound are the minimum and maximum number of items in a combo. If UpperBound and LowerBound are not declared explicitly,they'll take default values of 2 and 3 respectively.

Also, the complexity of the program is of the order n^UpperBound so Upperbound must be chosen appropriately.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ComboFinder, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size ComboFinder-0.1.1-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ComboFinder-0.1.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page