SQUAT
Project description
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.
- spacy
- Core ENG package for spacy
- pandas
- 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 callshow_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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file squat-1.0.3.tar.gz
.
File metadata
- Download URL: squat-1.0.3.tar.gz
- Upload date:
- Size: 3.5 MB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df54b4d6db45b7d473ae4d6b5346bbe83e3b3b4fef9e32a90b5bb4e92232a495 |
|
MD5 | 7679a2739286bf085db5b9c4f77a7286 |
|
BLAKE2b-256 | 00701d6826a3878f0487b22a608caf655d57baf25d8731f5ced965dee64ae2f7 |
File details
Details for the file squat-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: squat-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75659e88571fcd6f9b1de5c9db9fcfedcf4550b630d7f6528db0d4a1e08f363c |
|
MD5 | 6e21a739216e1b8129b8c7dba8c5f13f |
|
BLAKE2b-256 | 61412ea69b6f31f651a05434f68050f8eed6cbe0ced3418ed6372107cd22e53f |