{"id":18417941,"url":"https://github.com/danieljdufour/django-rest-framework-more","last_synced_at":"2026-04-30T09:35:05.888Z","repository":{"id":66036055,"uuid":"262483351","full_name":"DanielJDufour/django-rest-framework-more","owner":"DanielJDufour","description":"More Cool Django Rest Framework Stuff","archived":false,"fork":false,"pushed_at":"2024-02-12T03:06:01.000Z","size":121,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T08:55:55.177Z","etag":null,"topics":["csv","django","django-rest-framework","djangorestframework","djangorestframework-csv","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielJDufour.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-05-09T03:47:16.000Z","updated_at":"2021-11-19T14:47:53.000Z","dependencies_parsed_at":"2024-12-24T17:31:10.210Z","dependency_job_id":null,"html_url":"https://github.com/DanielJDufour/django-rest-framework-more","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DanielJDufour/django-rest-framework-more","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdjango-rest-framework-more","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdjango-rest-framework-more/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdjango-rest-framework-more/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdjango-rest-framework-more/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielJDufour","download_url":"https://codeload.github.com/DanielJDufour/django-rest-framework-more/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdjango-rest-framework-more/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","django-rest-framework","djangorestframework","djangorestframework-csv","python"],"created_at":"2024-11-06T04:12:20.124Z","updated_at":"2026-04-30T09:35:05.872Z","avatar_url":"https://github.com/DanielJDufour.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":":warning: **Warning** NonPaginatedXLSXRenderer does not work with newer versions of [drf-renderer-xlsx](https://pypi.org/project/drf-renderer-xlsx/).  Please set your version of drf-renderer-xlsx to 0.3.8.\n\n# django-rest-framework-more\nMore Cool Django Rest Framework Stuff\n\n# install\n`pip3 install djangorestframework-more` or `pipenv install djangorestframework-more`\n\n# features\n#### NonPaginatedCSVRenderer and NonPaginatedXLSXRenderer\nIn case you want a CSV or XLSX (Excel) renderer that doesn't respect pagination:\n```python\n# in settings.py\nREST_FRAMEWORK = {\n    'DEFAULT_RENDERER_CLASSES': [\n        'rest_framework.renderers.JSONRenderer',\n        'rest_framework.renderers.BrowsableAPIRenderer',\n        'rest_framework_more.renderers.NonPaginatedCSVRenderer',\n        'rest_framework_more.renderers.NonPaginatedXLSXRenderer'\n    ]\n}\n```\nIf you'd like to learn more about using renderers in Django Rest Framework, see https://www.django-rest-framework.org/api-guide/renderers/#setting-the-renderers\n\n#### Creater Model Serializer Class\n```python\n# in serializers.py\nfrom app.models import Car\nfrom rest_framework_more.serializers import create_model_serializer_class\n\nCarSerializer = create_model_serializer_class(model=Car)\n```\n\n#### Create Model Filter Form\n```python\n# forms.py\nfrom app.models import Car\nfrom rest_framework_more.filters import create_model_filter_form\n\nCarFilterForm = create_model_filter_form(model=Car)\n```\n\n#### Create Model Filter Set Class\n```python\n# forms.py\nfrom app.models import Car\nfrom rest_framework_more.filters import create_model_filterset_class\n\nCarFilterSet = create_model_filterset_class(model=Car)\n```\n\n#### Create Model ViewSet Class\n```python\n# views.py\nfrom app.models import Car\nfrom rest_framework_more.viewsets import create_model_viewset_class\n\nCarViewSet = create_model_viewset_class(model=Car)\n```\n\n#### FileNameMixin\nThe FileNameMixin automatically generates a more descriptive filename for CSV and Excel exports than the default \"download\".\nIt first tries to convert the url path into a filename.  If that doesn't succeed it tries to pull the filename from the queryset's model.\n```python\n# views.py\nfrom rest_framework_more.mixins import FileNameMixin\n\nclass CarViewSet(FileNameMixin, ReadOnlyModelViewSet):\n...    \n\n# if the CarViewSet is called from the url /api/cars it will generate a download filename of api_cars.csv\n```\n\n# contact\nIf you have any issues, feel free to post an issue at https://github.com/DanielJDufour/django-rest-framework-more/issues or email the package author at daniel.j.dufour@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Fdjango-rest-framework-more","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieljdufour%2Fdjango-rest-framework-more","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Fdjango-rest-framework-more/lists"}