Coder Social home page Coder Social logo

hisaab-clj's Introduction

hisaab-clj

हिसाब in Hindi means account.

This is a clj script to parse and create reports from HDFC cc/bank statements.

How to use

Download delimited bank statements from hdfc and generate reports from them using process function in hdfc.* namspace.

;; Example usage and output
;; This requires the 'delimited' version of a bank statement.
(hdfc.bank-statement/process "<absolute-path-to-file>.txt")

{:totals
 {:withdrawls 125067.0,
  :deposits 6683.0,
  :expenditure 118384.0,
  :closing-balance 37404},
 :group-totals
 {:transport {:debit 1623, :credit 0},
  :f&b {:debit 60, :credit 0},
  :untagged {:debit 466848, :credit 590556},
  :donations {:debit 0, :credit 0},
  :groceries {:debit 5351, :credit 0},
  :subscriptions {:debit 0, :credit 21},
  :investments {:debit 611034, :credit 94073},
  :household {:debit 7971, :credit 0},
  :medicines {:debit 0, :credit 0},
  :shopping {:debit 5351, :credit 0}}}
;; => nil

For credit card statements, go to the credit-card-statement namespace and use the process fn.

;; Example usage and output
;; This requires a PDF version of the credit card statement.
(hdfc.credit-card-statement/process "<absolute-path-to-file>.pdf")

{:total-credits "INR60,016.00",
 :total-debits "INR46,096.63",
 :debit-breakdown
 {:f&b "INR18,831.00",
  :untagged "INR538.63",
  :shopping "INR20,681.00",
  :groceries "INR397.00",
  :subscriptions "INR5,649.00"}}
;; => nil

CLI usage

make hdfc-bank FILE=<absolute-file-path>

or

make hdfc-cc FILE=<absolute-file-path>

to generate a sample config (that can be tweaked),

# goes under $HOME/hisaab.conf.toml
make confgen

Future

  • Add durability for generated reports (database, files etc.)
  • Add monthly comparisons for expenditures based on stored data

hisaab-clj's People

Contributors

kitallis avatar nid90 avatar

Watchers

 avatar  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.