{ "info": { "author": "Lucas D'Avila", "author_email": "lucas@lucasdavi.la", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "## app_report-python \n \napp_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. \n\n### Installation \n\n* For **Web2py framework** users, please read [Using the AppReport client on Web2py Apps](https://github.com/simpleservices/app_report-python/wiki/Using-the-AppReport-client-on-Web2py-Apps).\n\n* For **Windows** users, please read [How to install pip on Windows](https://github.com/simpleservices/app_report-python/wiki/How-to-install-pip-on-Windows).\n\n* Or, if you are using **Python on Linux**, follow this steps:\n\n ```console\n # create a file requirements.txt and add this line:\n app_report\n\n # after save it, run the install command:\n $ pip install -r requirements.txt\n ```\n\n### Try it now\n\n* 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\", \n \n to make the things easy, we did it for you :) yay donuts for us.\n\n ```python\n import app_report\n from app_report.helpers.reports import jasper_report\n from urllib2 import urlopen\n\n app_report.AppReport.configure({\n 'app_name': 'shop',\n 'access_key': 'udPONmbmD01MnxzMVgiL',\n 'secret_key': 'ExINJLBR1I6Au6Hu0gQQoQmTMXAZuHk1Tkx3N19V'\n })\n\n xml_data = urlopen('http://reports.simpleservic.es/sample_resources/products.xml').read()\n report = jasper_report(template_name='products', data=xml_data, xpath_expression='/products/product')\n\n open('report.pdf', 'w').write(report)\n \n ``` \n\nJust it! AppReport is a really simple, no more complex configurations or boring installations are required, just connect to AppReport API and start generating reports! \n \n## Contribute \nYou can contribute sending pull requests, don't forget to write tests for your code and check the pep8 conventions :)\n\n```console\n$ pip install -r development-requirements.txt \n$ pip install -r test-requirements.txt \n\n$ fab test\n\n$ fab check_pep8\n# p.s. the \"Maximum Line Length\" (of 79 chars) convention are being ignored.\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/simple_services/app_report-python", "keywords": "pdf,report,jasper,api", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "app_report", "package_url": "https://pypi.org/project/app_report/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/app_report/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/simple_services/app_report-python" }, "release_url": "https://pypi.org/project/app_report/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Python client to AppReport API", "version": "0.0.3" }, "last_serial": 786334, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "65b41a0e12750068097f2e95d46f28e0", "sha256": "fd8f1c429df4e8d415a252571297a8a17b6372926a8cd316ee25adb500786a4c" }, "downloads": -1, "filename": "app_report-0.0.1.tar.gz", "has_sig": false, "md5_digest": "65b41a0e12750068097f2e95d46f28e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8125, "upload_time": "2013-03-21T05:35:06", "url": "https://files.pythonhosted.org/packages/8a/5d/ce197c1095e4b8474e41fcc707bc11113b46ffae0acb9527f7234a07056f/app_report-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "3286b7abb06ce0a0754246ab3d867968", "sha256": "a6bd7e6573c92673bcaa02c31c887fb40fb4a476451f2b37b8520aac428ed9cb" }, "downloads": -1, "filename": "app_report-0.0.2.tar.gz", "has_sig": false, "md5_digest": "3286b7abb06ce0a0754246ab3d867968", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8945, "upload_time": "2013-03-26T02:30:52", "url": "https://files.pythonhosted.org/packages/2e/f1/039f241bd9bf51722c11457ba080771a9b00f576bc0d391ecad9cfd96d8d/app_report-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "31bece415a098c7c5af7b99fdd8316fb", "sha256": "f3d2bf6e3c78ddf897243e0a50da15cbdbcd94779a814be1810a7f591e2971ab" }, "downloads": -1, "filename": "app_report-0.0.3.tar.gz", "has_sig": false, "md5_digest": "31bece415a098c7c5af7b99fdd8316fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9384, "upload_time": "2013-04-04T03:56:10", "url": "https://files.pythonhosted.org/packages/a5/47/f4f4cee5191f729481af98ec205e1fdf5115e80bfbf9f374d2e4328b50f7/app_report-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "31bece415a098c7c5af7b99fdd8316fb", "sha256": "f3d2bf6e3c78ddf897243e0a50da15cbdbcd94779a814be1810a7f591e2971ab" }, "downloads": -1, "filename": "app_report-0.0.3.tar.gz", "has_sig": false, "md5_digest": "31bece415a098c7c5af7b99fdd8316fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9384, "upload_time": "2013-04-04T03:56:10", "url": "https://files.pythonhosted.org/packages/a5/47/f4f4cee5191f729481af98ec205e1fdf5115e80bfbf9f374d2e4328b50f7/app_report-0.0.3.tar.gz" } ] }