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 app-report

How to install app_report

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install app-report
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.0.3 Available View build log
Linux (64-bit)
0.0.3 Available View build log
0.0.3 Available View build log
 
Author
Lastest release
version 0.0.3 on Apr 16th, 2013

## app_report-python

app_report-python is a Python client to the [AppReport API](http://reports.simpleservic.es/), it allows you to generate pdf reports based on Jasper library in a simple way.

### Installation

### Try it now

  • This example assumes that you already drawn your report using some tool like [i-report designer](http://community.jaspersoft.com/project/ireport-designer) and uploaded the .jrxml file to the [AppReport site](http://reports.simpleservic.es/), as a "report template",

    to make the things easy, we did it for you :) yay donuts for us.

    ```python import app_report from app_report.helpers.reports import jasper_report from urllib2 import urlopen

    System Message: WARNING/2 (<string>, line 27); backlink

    Inline literal start-string without end-string.

    System Message: WARNING/2 (<string>, line 27); backlink

    Inline interpreted text or phrase reference start-string without end-string.

    app_report.AppReport.configure({

    'app_name': 'shop', 'access_key': 'udPONmbmD01MnxzMVgiL', 'secret_key': 'ExINJLBR1I6Au6Hu0gQQoQmTMXAZuHk1Tkx3N19V'

    System Message: WARNING/2 (<string>, line 36)

    Definition list ends without a blank line; unexpected unindent.

    })

    xml_data = urlopen('http://reports.simpleservic.es/sample_resources/products.xml').read() report = jasper_report(template_name='products', data=xml_data, xpath_expression='/products/product')

    open('report.pdf', 'w').write(report)

    ```

    System Message: WARNING/2 (<string>, line 43); backlink

    Inline literal start-string without end-string.

    System Message: WARNING/2 (<string>, line 43); backlink

    Inline interpreted text or phrase reference start-string without end-string.

<b>Just it!</b> AppReport is a really simple, no more complex configurations or boring installations are required, just connect to AppReport API and start generating reports!

## Contribute You can contribute sending pull requests, don't forget to write tests for your code and check the pep8 conventions :)

```console $ pip install -r development-requirements.txt $ pip install -r test-requirements.txt

System Message: WARNING/2 (<string>, line 50); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 50); backlink

Inline interpreted text or phrase reference start-string without end-string.

$ fab test

$ fab check_pep8 # p.s. the "Maximum Line Length" (of 79 chars) convention are being ignored. ```

System Message: WARNING/2 (<string>, line 56); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (<string>, line 56); backlink

Inline interpreted text or phrase reference start-string without end-string.

Subscribe to package updates

Last updated Apr 16th, 2013

Download Stats

Last month:1

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.