Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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``:

::

## settings.py

INSTALLED_APPS = (
...
'levit_report',
)

Import the built-in urls into your ``urls.py``

::

## urls.py

...
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 <http://relatorio.readthedocs.io/en/latest/index.html>`__
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).

.. figure:: ./docs/document-admin.png
:alt: admin screenshot

admin screenshot

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
``settings.py`` like this

::

## settings.py

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
http://localhost:8000/reports/<document\_slug>/<target\_object\_id>/

You'll also be able to download a ip containing several rendered reports
by pointing your browser at
http://localhost:8000/reports/<document\_slug>/?ids[]=<target\_object\_id>&ids[]=<target\_object\_2\_id>...

This project is licensed under the `MIT
License <http://opensource.org/licenses/MIT>`__

Release history Release notifications

This version
History Node

0.9.16

History Node

0.9.15

History Node

0.9.14

History Node

0.9.13

History Node

0.9.12

History Node

0.9.11

History Node

0.9.10

History Node

0.9.9

History Node

0.9.8

History Node

0.9.7

History Node

0.9.6

History Node

0.9.5

History Node

0.9.4

History Node

0.9.3

History Node

0.9.2

History Node

0.9.1

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.16.tar.gz (5.9 kB) Copy SHA256 hash SHA256 Source None Apr 18, 2018

Supported by

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