Skip to main content

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

Release files for ComboFinder 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ComboFinder 0.1.1
File Size Uploaded
ComboFinder-0.1.1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ComboFinder 0.1.1
File Interpreter ABI Platform
ComboFinder-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / ComboFinder-0.1.1.tar.gz

Download URL ComboFinder-0.1.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7f7d02a6c22ee0740b2a70a346d763746b9de0a1a1289597ecf11e93dfe89844
BLAKE2b-256 checksum
How to use checksums
2e9e47840ac2cc878853fc2d1ac0599791c3a394a7e0a8eae182580ca5354526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.15rc1

Release files / ComboFinder-0.1.1-py3-none-any.whl

Download URL ComboFinder-0.1.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
429389243201f3708dc16d8987d44174fb383b77cca0164f01f79075dee0d190
BLAKE2b-256 checksum
How to use checksums
1a46593f7edf56d68511e417cd14a68c4b55023273b7fd27ac600b3e389a5075
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.15rc1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page