{"id":15065819,"url":"https://github.com/tarkatronic/django-excel-response","last_synced_at":"2025-10-05T03:30:32.385Z","repository":{"id":41519354,"uuid":"89507577","full_name":"tarkatronic/django-excel-response","owner":"tarkatronic","description":"Django package to easily render Excel spreadsheets","archived":true,"fork":false,"pushed_at":"2024-01-25T18:52:23.000Z","size":57,"stargazers_count":81,"open_issues_count":12,"forks_count":26,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-12-15T00:24:56.742Z","etag":null,"topics":["csv","django","excel"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarkatronic.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-26T17:15:43.000Z","updated_at":"2024-09-17T10:54:25.000Z","dependencies_parsed_at":"2024-06-18T22:53:01.368Z","dependency_job_id":"3eea456b-923b-48fd-877c-be66c82dae00","html_url":"https://github.com/tarkatronic/django-excel-response","commit_stats":{"total_commits":59,"total_committers":7,"mean_commits":8.428571428571429,"dds":0.6271186440677966,"last_synced_commit":"1f5cbf59aad9b146efe1eb05919a4ede24d6e4d0"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarkatronic%2Fdjango-excel-response","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarkatronic%2Fdjango-excel-response/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarkatronic%2Fdjango-excel-response/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarkatronic%2Fdjango-excel-response/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarkatronic","download_url":"https://codeload.github.com/tarkatronic/django-excel-response/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235356114,"owners_count":18976818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","django","excel"],"created_at":"2024-09-25T00:54:40.667Z","updated_at":"2025-10-05T03:30:27.095Z","avatar_url":"https://github.com/tarkatronic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: http://unmaintained.tech/badge.svg\n  :target: http://unmaintained.tech\n  :alt: No Maintenance Intended\n\n=====================\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\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarkatronic%2Fdjango-excel-response","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarkatronic%2Fdjango-excel-response","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarkatronic%2Fdjango-excel-response/lists"}