{ "info": { "author": "Joey Wilhelm", "author_email": "tarkatronic@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Office/Business :: Financial :: Spreadsheet", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=====================\ndjango-excel-response\n=====================\n.. image:: https://img.shields.io/pypi/v/django-excel-response.svg\n :target: https://pypi.python.org/pypi/django-excel-response\n :alt: Latest Version\n\n.. image:: https://travis-ci.org/tarkatronic/django-excel-response.svg?branch=master\n :target: https://travis-ci.org/tarkatronic/django-excel-response\n :alt: Test/build status\n\n.. image:: https://codecov.io/gh/tarkatronic/django-excel-response/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/tarkatronic/django-excel-response\n :alt: Code coverage\n\n\nA subclass of HttpResponse which will transform a QuerySet,\nor sequence of sequences, into either an Excel spreadsheet or\nCSV file formatted for Excel, depending on the amount of data.\n\nInstallation\n============\n\n::\n\n pip install django-excel-response\n\nProvided Classes\n================\n\n* ``excel_response.response.ExcelResponse``\n\n Accepted arguments:\n\n * ``data`` - A queryset or list of lists from which to construct the output\n * ``output_filename`` - The filename which should be suggested in the http response,\n minus the file extension (**default: excel_data**)\n * ``worksheet_name`` - The name of the worksheet inside the spreadsheet into which\n the data will be inserted (**default: None**)\n * ``force_csv`` - A boolean stating whether to force CSV output (**default: False**)\n * ``header_font`` - The font to be applied to the header row of the spreadsheet;\n must be an instance of ``openpyxl.styles.Font`` (**default: None**)\n * ``data_font`` - The font to be applied to all data cells in the spreadsheet;\n must be an instance of ``openpyxl.styles.Font`` (**default: None**)\n\n* ``excel_response.views.ExcelMixin``\n* ``excel_response.views.ExcelView``\n\nExamples\n========\n\nFunction-based views\n--------------------\n\nYou can construct your data from a queryset.\n\n.. code-block:: python\n\n from excel_response import ExcelResponse\n\n\n def excelview(request):\n objs = SomeModel.objects.all()\n return ExcelResponse(objs)\n\n\nOr you can construct your data manually.\n\n.. code-block:: python\n\n from excel_response import ExcelResponse\n\n\n def excelview(request):\n data = [\n ['Column 1', 'Column 2'],\n [1,2]\n [23,67]\n ]\n return ExcelResponse(data, 'my_data')\n\nClass-based views\n-----------------\n\nThese are as simple as import and go!\n\n.. code-block:: python\n\n from excel_response import ExcelView\n\n\n class ModelExportView(ExcelView):\n model = SomeModel", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/tarkatronic/django-excel-response/archive/master.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tarkatronic/django-excel-response", "keywords": "", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "django-excel-response", "package_url": "https://pypi.org/project/django-excel-response/", "platform": "", "project_url": "https://pypi.org/project/django-excel-response/", "project_urls": { "Download": "https://github.com/tarkatronic/django-excel-response/archive/master.tar.gz", "Homepage": "https://github.com/tarkatronic/django-excel-response" }, "release_url": "https://pypi.org/project/django-excel-response/2.0.3/", "requires_dist": null, "requires_python": "", "summary": "Django package to easily render Excel spreadsheets", "version": "2.0.3" }, "last_serial": 3525193, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "09001aa9c8b6dadbe6111e902adbba32", "sha256": "b708184ee1c93ac1769e72c49bae5666b9ffce0892daa0b54c7cbec98e1c6014" }, "downloads": -1, "filename": "django-excel-response-1.0.tar.gz", "has_sig": false, "md5_digest": "09001aa9c8b6dadbe6111e902adbba32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2431, "upload_time": "2010-09-13T22:32:49", "url": "https://files.pythonhosted.org/packages/3b/88/ed54fd80c752df475fbb84402fbbcec9e0cdbcf5a4c3051e9809f5b18630/django-excel-response-1.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "1fde2be47480aedd810f3f6b896c1a13", "sha256": "610939fa052aec344446f24749dfffb399c2719a1bd3477b7ce3b99f0665e046" }, "downloads": -1, "filename": "django_excel_response-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1fde2be47480aedd810f3f6b896c1a13", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7163, "upload_time": "2017-05-01T19:12:59", "url": "https://files.pythonhosted.org/packages/7a/4f/cadfceb91613e58349a6894fb3ea16f519cfbaa1166348e1c6037da296d8/django_excel_response-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a74ce081331f7f57ef814e056f0e622c", "sha256": "065da2fd904be2ca23510affd9a0b0fb553c0d97fd4dac9a9bce765c63beec19" }, "downloads": -1, "filename": "django-excel-response-2.0.0.tar.gz", "has_sig": false, "md5_digest": "a74ce081331f7f57ef814e056f0e622c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8679, "upload_time": "2017-05-01T19:13:00", "url": "https://files.pythonhosted.org/packages/44/25/a036c4ec71f2fcc6275d215dc4c1ed79a938a03a32ff34fa4ab8b2990e00/django-excel-response-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "656c92a77b1c205b69b8f05d7a41510d", "sha256": "fe8e637166b224f44313823a21bca0f5724cccac93966dac68ea0f1b7712f390" }, "downloads": -1, "filename": "django_excel_response-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "656c92a77b1c205b69b8f05d7a41510d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7168, "upload_time": "2017-05-15T00:59:51", "url": "https://files.pythonhosted.org/packages/2d/b3/83760295f1cc9005965072ae6acea3f3592d5e64013658a64789990f03d6/django_excel_response-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d723ffb5d1bbc34c1568caf45ca0d684", "sha256": "20f9565f6dcc3b5b22a5e0a498db0139db606e3211675e8ffe1bfda18f7464db" }, "downloads": -1, "filename": "django-excel-response-2.0.1.tar.gz", "has_sig": false, "md5_digest": "d723ffb5d1bbc34c1568caf45ca0d684", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8785, "upload_time": "2017-05-15T01:01:27", "url": "https://files.pythonhosted.org/packages/0f/7f/80354492c62258069ea3cdde708de3cb7e323810c9d885bc51de3d350fef/django-excel-response-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "fae8d529f7283cc04ec861f3b83600be", "sha256": "1ea45f5a286d9bb64cf9987221226ee40912353ccb6ea264f41761c4d51926e3" }, "downloads": -1, "filename": "django-excel-response-2.0.2.tar.gz", "has_sig": false, "md5_digest": "fae8d529f7283cc04ec861f3b83600be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10035, "upload_time": "2017-12-10T05:57:54", "url": "https://files.pythonhosted.org/packages/6e/be/e7b9a5ed274a3b4893c051a3b3a962ce196d94611bed23d0b5372606ad62/django-excel-response-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "3d2123adf9bd2640e14f6060dcf7c979", "sha256": "2046f0f40ad4c9b328f143fddae5dd0f85f47b68028fc53d700cf161de894ff8" }, "downloads": -1, "filename": "django-excel-response-2.0.3.tar.gz", "has_sig": false, "md5_digest": "3d2123adf9bd2640e14f6060dcf7c979", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10089, "upload_time": "2018-01-26T20:14:30", "url": "https://files.pythonhosted.org/packages/d0/5d/3273698a10e4f94a964bf24d6464c539b602fc8137fd6800c2ac7ee7d434/django-excel-response-2.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3d2123adf9bd2640e14f6060dcf7c979", "sha256": "2046f0f40ad4c9b328f143fddae5dd0f85f47b68028fc53d700cf161de894ff8" }, "downloads": -1, "filename": "django-excel-response-2.0.3.tar.gz", "has_sig": false, "md5_digest": "3d2123adf9bd2640e14f6060dcf7c979", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10089, "upload_time": "2018-01-26T20:14:30", "url": "https://files.pythonhosted.org/packages/d0/5d/3273698a10e4f94a964bf24d6464c539b602fc8137fd6800c2ac7ee7d434/django-excel-response-2.0.3.tar.gz" } ] }