Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pollyreports

How to install PollyReports

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pollyreports
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
1.6.7
1.7.2Never BuiltWhy not?
1.6.7 Available View build log
1.6.5 Available View build log
1.6.3 Available View build log
1.6.2 Available View build log
1.6 Available View build log
Linux (64-bit)
1.7.2 Available View build log
1.6.7 Available View build log
1.6.5 Available View build log
1.6.3 Available View build log
1.6.2 Available View build log
1.6 Available View build log
 
Imports
Lastest release
version 1.7.2 on Jan 9th, 2014

Band-oriented PDF report generation from database query

PollyReports.py provides a set of classes for database report writing. It assumes that you are using Reportlab to do PDF generation, but can work with any "canvas-like" object as desired.

PollyReports provides a framework for report generation. The developer instantiates a Report object, passing it a data source and passing or assigning one or more Band objects. A Band, in turn, will contain a list of Elements representing data items, labels, or system variables which will be printed. When the Report object is fully populated, its generate() method is called, passing in a Reportlab Canvas object (or any object providing a similar interface); the Report object then consumes the data source and renders the various Bands of Elements into the Canvas object.

The data source must be an iterator that produces objects that can be accessed via [] operations, meaning mainly dict, list, and tuple types, i.e. the most common types of records returned by standard database modules.

This version is written for Python 2.7, but should be easily adapted to Python 3.

Development versions of this module may be found on Github.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:4

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.