Code Monkey home page Code Monkey logo

generategraphs's Introduction

Project Description

A software to generate graphs form a transaction file.
With the generated file output.csv, you can create a Pie or an Histogram in Google docs or Excel.
It will group transactions by "categories" and sum the associated amounts of each categories.
A category is determined by a set of labels which looks identical.

Installation

git clone https://github.com/sudogooglex/GenerateGraphs
cd GenerateGraphs/
cp config.txt configTemplate.txt
The transaction file path must be specified at the first line of the config.txt file.
dotnet restore # Restore Nuget packages
dotnet clean
dotnet run

Example /config.txt :

/home/user/Download/transaction.csv
Word1
((\d{2})([./]{1})(\d{2})([./]{1})(\d{2}))

Expected input format /transaction.csv :

Date; Label; Amount
23/06/2017; CB TRANSACTION Shop_A1 22.06.17 CARD; -50,00
19/06/2017; BUY CB Shop_B1 17.06.17 CARD; 48,92
08/06/2017; BUY CB Shop_A2 07.06.17 CARD; -15,01

The transaction.csv may contain positive or negative amounts.

Output

The output file is output.csv, at the root of the project.
To generate the associated graph, use Google docs or Excel with the output.csv. Create a Pie or an histogram.

Expected output format :

Category; TotalAmount
CategoryA; -65,01
CategoryB; 48,92

Filter

To filter some words before making categories, you can add regex in the config.txt.

generategraphs's People

Watchers

James Cloos 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.