Skip to content
An easy way to generate automated report with Python. Create spreadsheet and email them.
Branch: master
Clone or download
Latest commit 6a6beca Jul 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sql Automated report Jul 5, 2019
.gitignore
ManejoMail.py Como enviar un correo. Jul 8, 2019
Mensaje.py Como enviar un correo. Jul 8, 2019
Movimiento.py Automated report Jul 5, 2019
MovimientosToExcel.py Automated report Jul 5, 2019
README.md Cambios en el readme. Jul 8, 2019
config.json Como enviar un correo. Jul 8, 2019
demo2.py Como enviar un correo. Jul 8, 2019
reporteSemanal.py Como enviar un correo. Jul 8, 2019

README.md

automated_report_python

An easy way to generate automated report with Python. Create spreadsheet and email them. This is a proposal of how you can do the automated report. It will necessary that modified the example acord your need. Everything is described in the article link below.

Instalation

You will need:

  • Python

  • mysql.connector You can install throw pip: pip install mysql.connector

  • xlwt pip install xlwt

  • User and password of your database.

How to use

  1. On reporteSemanal.py you need to modify the credential, and the sql query acord what you need to show. Also the list of the destinataries whom you need to send the report.
  2. On Movimiento.py, map the columns of the query to one object, you need to rename according to your query.
  3. On ManejoMail.py, need to change the credential of your SMTP server.

Finaly configure cron/scheduled tasks to run reporteSemanal.py when you need.

Article

Video

You can’t perform that action at this time.