Skip to main content

Spend Quality and Usage Analysis Tool (SQUAT)

This Project is a tool to analyse Bankstatements transactions to give a comprehensive report on the spend, earning and usage of an user. It does the following job:

  • Creates and trains a Machine learning model to classify transactions based on the narration.
  • All the training and other repeatative work is already done for you.
  • Once the package is installed with pip, the developer just need to pass the bankstatement dataframe to get the report.



Project Components

SQUAT contains the packages or libraries required for supporting and running the whole process.

  1. spacy
  2. Core ENG package for spacy
  3. pandas
  4. jupyter notebook

Source:
https://github.com/binayr/SQUAT

About the ML model

The model is created based on most common keyword observed from the bankstatements of singapore. This project has a large scope of improving the accuracy and adding more classifications in future depending on the type of dataset available to us.

Everytime we update the model a new version of SQUAT is supposed to get released.

Create and use whl file

  • with and updated setup.py execute the following command to create a whl file, python setup.py bdist_wheel

  • Please make sure you have pre-installed pandas, spacy and jupyter from standard chartered artifactory in your virtualenv

  • Also make sure once spacy is installed the eng core library is also pre-installed in the virtualenv using pip.

  • Now you can pip install squat using the whl file or from standard chartered artifactory if it is hosted.

API

  • You can import the utility by typing the following, from squat.Classifier.ClassifierUtil import ClassifierUtil

  • Read any csv or excel using pandas and create a dataframe. Please make sure the df has the following header atleast, date, description, debit, credit, runningbalance (irrespective of the order)

  • The ClassifierUtil can be initialized using the above df.

  • Once initialized please make sure to call obj.evaluate() to evaluate each transaction.

  • Once evaluated you can call get_analysis method to get the comprehensive analysis or call show_stat to get the statistics.

OR

  • You can import the utility by typing the following, from squat.Classifier.ClassifierUtil import ClassifierUtilRaw

  • Read any csv or excel using pandas and create a dataframe. Please make sure the df has the following header atleast, date, description, debit, credit, runningbalance (irrespective of the order)

  • The ClassifierUtilRaw can be initialized to get the category.

  • Once initialized please make sure to call obj.get_cat(text) to evaluate the category of the text.

  • For Example,

     obj.get_cat('paytm transaction gurgaon')
     Out: ('Digital', 0.9632782936096191)
    

Metadata

Release files for squat 1.0.3

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

Source distribution (sdist)

Source distribution for squat 1.0.3
File Size Uploaded
squat-1.0.3.tar.gz 3.5 MB Details

Built distribution (wheel)

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

Total release size: 7.1 MB

Release files / squat-1.0.3.tar.gz

Download URL squat-1.0.3.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
df54b4d6db45b7d473ae4d6b5346bbe83e3b3b4fef9e32a90b5bb4e92232a495
BLAKE2b-256 checksum
How to use checksums
00701d6826a3878f0487b22a608caf655d57baf25d8731f5ced965dee64ae2f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.6

Release files / squat-1.0.3-py3-none-any.whl

Download URL squat-1.0.3-py3-none-any.whl
Size 3.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
75659e88571fcd6f9b1de5c9db9fcfedcf4550b630d7f6528db0d4a1e08f363c
BLAKE2b-256 checksum
How to use checksums
61412ea69b6f31f651a05434f68050f8eed6cbe0ced3418ed6372107cd22e53f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

1.0.3 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