Skip to main content

Package description

Project description

# Levit-report

This library makes it easy to manage and render a set of relatorio-based reports in a Django application

## Installation

`pip install levit-report`

## Configuration

Add `levit_report` to your `INSTALLED_APPS`:



Import the built-in urls into your ``


from levit_report import urls as report_urls

urlpattern = [
url(r'^reports/', include(report_urls)),

## Usage

Before being able to use this package you will first have to create a
[Relatorio]( template. The "object"
of the report will be available inside the report as `o` (as in object).

Once you have created your templte, go to the admin and add a new `Document` (in the
`Levit_Report` section).

![admin screenshot](./docs/document-admin.png)

You'll then be able to upload your relatorio template and associate it with a ContentType.

In order to use the "convert to" feature, you'll need you have LibreOffice headless installed.

:warning: LibreOffice headless fails silently when a regular LibreOffice window is open on
the same machine.

In order to use the "Merge with tos" feature (only available for pdf's), you'll need:

- to have pdfunite installed
- have given the full path to a pdf `TOS_FILE` in your `` like this


TOS_FILE = os.path.join(BASE_DIR, 'documents', 'tos.pdf')

Once this is done, you'll be able to download a rendered version of your report at

You'll also be able to download a ip containing several rendered reports by pointing
your browser at

This project is licensed under the [MIT License](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
levit-report-0.9.17.tar.gz (5.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page