GithubHelp home page GithubHelp logo

matteoguadrini / pyreports Goto Github PK

View Code? Open in Web Editor NEW
101.0 101.0 9.0 4.88 MB

pyreports is a python library that allows you to create complex report from various sources

Home Page: https://matteoguadrini.github.io/pyreports

License: GNU General Public License v3.0

Python 73.54% CSS 10.22% JavaScript 0.70% HTML 15.53%
cli cli-application complex-reports database database-manager database-table dataset dataset-generation file-manager filter ldap ldap-manager practices python python-library report report-generator reporting-tool reports

pyreports's Introduction

๐Ÿ‘‹ Hi, I'm Matteo Guadrini ๐Ÿ‘‹

I'm a DevOps and Python/Rust developer.

Python and Rust development is my passion as well as my job.

  • author of nosqlapi, pyreports, PSCouchDB, fontpreview, dinosay, mkpl...
  • writes high quality utilities to optimize terminal productivity
  • wrote them to spend more time with his kid than at a computer
  • he studies Rust to write and build a better software

Buy Me A Coffee

Donate with paypal Donate to Telethon

Matteo Guadrini's GitHub stats
Streak stats
Top Langs

References

CV: https://matteoguadrini.github.io

pyreports's People

Contributors

matteoguadrini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyreports's Issues

aggregate function bug

Description

When you try to aggregate multiple columns using the datatools.aggregate function you go into an infinite loop until you get a MemoryError exception.

Steps to Reproduce

import pyreports

csv1 = pyreports.manager('csv', '/tmp/cars.csv')
csv2 = pyreports.manager('csv', '/tmp/homes.csv')

cars = csv1.read()        # Dataset object
homes = csv2.read()       # Dataset object

cars_and_homes = pyreports.aggregate(cars['name'], cars['brand'], homes['address'], homes['city'], fill_empty=True)
cars_and_homes.headers = ['name', 'brand', 'address', 'city']

Expected Behaviour

The cars_and_homes variable is expected to be created and contain the new dataset with the combined data.

Your Environment

  • pyreports version used: pyreports 1.5.1 on python 3.10
  • Operating System and version: Fedora linux 37

Additional context

At this line, the first column is assumed to have the same or greater length than the other columns.
If the second (or even the other columns) column has a length greater than the first, you enter the while loop which expects the columns to have the same length...but they can never have it, since the first has a shorter length .

pyreports send() reports bug

Description

.send() method of Report object doesn't send to cc and bcc addresses

Steps to Reproduce

import pyreports
import tablib

csv_output = pyreports.manager('csv', '/tmp/report.csv')
dataset = tablib.Dataset([1,2,3])
report = pyreports.Report(dataset, title='report of dataset', output=csv_output)
report.send('mail.local', 'ME <[email protected]>', cc='[email protected]', bcc='[email protected]', body='test')

Expected Behaviour

Send mail with report's output in attachment to all receivers.

Your Environment

  • pyreports version used: 1.5.1
  • Operating System and version: Rocky Linux 9.1

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.