Giter Site home page Giter Site logo

aelalex / data-extraction-from-electric-bills Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1021 KB

This Python script is designed to help users calculate the sums of consumption [kWh] and amount [Euro] provided by electric bills in PDF form.

License: MIT License

Python 100.00%

data-extraction-from-electric-bills's Introduction

Electric Bill Data Extraction and Analysis

This Python script is designed to help users calculate the sums of consumption [kWh] and amount [Euro] provided by electric bills in PDF format from the public power company® in Greece. It automates the process of extracting data from PDFs and then the data, the consumption and the amount to pay, are analyzed on a year and quarter basis.

Getting Started

To get started with this script, the user will need to have Python 3 installed on your system. Python is downloaded from the official website: https://www.python.org/downloads/.

The user will also need to install the required Python packages. This can be done by running the following command in the terminal:

pip install -r requirements.txt

Once the required packages are installed, the script is executed by using the following command:

python electric_bill_data.py

Usage

To use this script, the user will need to have the electric bill PDFs saved on the system. It is best to copy them into the bills folder which is located in the same folder as the script. Otherwise, the user may specify the complete path in the variable "initial_folder" inside the script.

Once the PDFs are copied or the path is specified, then the script can be executed. The script will extract the data from the PDFs and calculate the quarter and year sums from the electric bills. Next, the quarter and year results for the consumption and the amount to pay are presented in a graphical form to visualize the data. In addition, the results, from the PDF extraction, are saved in xlsx format for manipulating the data with a spreadsheet program.

It is noted that when the consumption is not written in the bill, it is considered as zero in the program. Similarly, when there is a refund, the amount to pay is zero.

Contributing

If you would like to contribute to this project, please feel free to submit a pull request. All contributions are welcome!

License

This project is licensed under the MIT License. See the LICENSE file for details.

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.