Skip to main content

A python package to find optimal number of transactions betweeen friends

Project description

# iou

A python module using networkx, pyomo and ipopt to solve for the optimally minimum number of transactions to settle debts/expenses between friends.

<p align=”center”> <img src=”https://raw.githubusercontent.com/kdheepak89/iou/master/screenshots/screenshot1.png” width=”400” > </p>

## Install

pip install py-iou pip install py-iou –upgrade

### Dependencies

If you have [Anaconda](https://www.continuum.io/downloads) or [Miniconda](https://conda.io/miniconda.html), you can install it using the following command.

`bash conda install -c conda-forge ipopt `

## Run

  • Run the following to find the optimal transactions using input from transactions.csv

    iou –data iou/data/transactions.csv

    OR

    iou –data iou/data/transactions.csv –verbose

<p align=”center”> <img src=”https://raw.githubusercontent.com/kdheepak89/iou/master/screenshots/screenshot2.png” align=”center” width=”400” > </p>

Use help

iou –help

A transactions.csv file is required to find the optimal order

## Contribution

Feel free to submit a pull request.

Project details


Release history Release notifications

This version
History Node

1.1.1

History Node

1.1

History Node

1.0.2

History Node

1.0.1

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
py-iou-1.1.1.tar.gz (6.6 kB) Copy SHA256 hash SHA256 Source None Jul 11, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page