Skip to main content

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.

Release files for PollyReports 1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PollyReports 1.8
File Size Uploaded
PollyReports-1.8.tar.gz 21.9 kB Details

Release files / PollyReports-1.8.tar.gz

Download URL PollyReports-1.8.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a5d90ce9adce901c794d40b7aa011ed59ebb82b3e6c2831e3cddaa9ac86f5bfa
BLAKE2b-256 checksum
How to use checksums
afe8329490aab33b1b7d53c992673c7e3e6f3024ba2fccd71760c95f9b9ca35d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

1.8 This release

1 release file

1.7.8

1 release file

1.7.7

1 release file

1.7.6

1 release file

1.7.5

1 release file

1.7.4

1 release file

1.7.3

1 release file

1.7.2

1 release file

1.6.7

1 release file

1.6.6

1 release file

1.6.5

1 release file

1.6.3

1 release file

1.6.2

1 release file

1.6.1

1 release file

1.6

1 release file

1.5.1

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page