Code Monkey home page Code Monkey logo

splitwise-csv's Introduction

splitwise-csv Build Status

Upload expenses to splitwise from a csv file and splitting them evenly between a predefined group.

API Keys

You will need to obtain your own API keys from Splitwise. https://secure.splitwise.com/apps/new Set the "Callback URL" to "localhost:5000" Store your consumer key and consumer secret in src/consumer_oauth.json like so:

{
    "consumer_key":"YOUR CONSUMER KEY",
    "consumer_secret":"YOUR CONSUMER SECRET"
}	

Prerequesites

pip install -r setup/requirements.txt

Usage

First Usage

python groupsplit.py <transactions csv> <splitwise group name>

You will need a Display to authorize this application by entering your login information in the browser spawned from here. It will ask you a few questions to determine which columns have the date, amount and description, etc. You can save the answers for future use. Then you go through each transaction one by one marking them to be split (or not). Finally it uploads them to your splitwise.

Normal Usage

python groupsplit.py <transactions csv> <splitwise group name>

It will skip right to going through your transactions one by one, so long as you have agreed to it remembering your csv layout. It will also remember the last transaction you considered and start from the one which follows it.

Resetting

Just delete any or all of the .pkl (pickeled) files. If you start to use a new csv layout you have to delete the csv_settings.pkl file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.