Giter VIP home page Giter VIP logo

rbc_statement_parser's Introduction

Royal Bank Statement Parser

Parses Royal Bank of Canada™ bank statements and compiles expenses from them.

Running the Script

Enable the poetry virtual environment:

poetry shell

Run the script,

./main.py --help

You should see output similar to:

 Usage: main.py [OPTIONS] COMMAND [ARGS]...

╭─ Options ─────────────────────────────────────────────────────────────────────────────────╮
│ --verbose    --no-verbose      [default: no-verbose]                                      │
│ --dry-run    --no-dry-run      [default: no-dry-run]                                      │
│ --help                         Show this message and exit.                                │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────╮
│ export                         Export a report for the given statement files              │
│ list-categories                List all configured categories                             │
│ list-files                     List the available statements                              │
│ process                        Process the statement files                                │
│ report                         Generate a report for the given statement files            │
╰───────────────────────────────────────────────────────────────────────────────────────────╯

Configuration

Configuration for the parser categories should be placed in the root folder as categories.json, you can find an example here:

https://gist.github.com/mpurdon/f52ae8216d1ec851873abacea047720f

To Do Items

Handle NSF Items

When an NSF item is found, pop the previous expense off the list. NSF items look similar to this:

"2020-02-12"
Item returned NSF 224.19 - 306.33
Utility Bill Pmt Enbridge Gas 224.19

Handle NSF fees

When several NSF fees are processed at the same time, they stack. Multiple NSF fees look like this:

NSF item fee 2 @ $45.00 90.00 1,089.50

Handle Credit Card Over Limit Fees

When a purchase goes over the limit, a fee is applied. This expense line is different from the rest in that it has the amount on the same line. Over limit fees look like this:

JAN 28 JAN 28 OVERLIMIT FEE $29.00

rbc_statement_parser's People

Contributors

mpurdon avatar

Watchers

 avatar

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.