{"id":26648350,"url":"https://github.com/benoitbryon/django-downloadview","last_synced_at":"2025-03-25T00:02:02.263Z","repository":{"id":4430602,"uuid":"5568643","full_name":"jazzband/django-downloadview","owner":"jazzband","description":"Serve files with Django.","archived":false,"fork":false,"pushed_at":"2025-03-17T17:22:39.000Z","size":642,"stargazers_count":387,"open_issues_count":31,"forks_count":55,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-24T12:53:28.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://django-downloadview.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jazzband.png","metadata":{"funding":{"custom":["https://jazzband.co/donate"]},"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-08-27T08:45:46.000Z","updated_at":"2025-03-13T14:55:33.000Z","dependencies_parsed_at":"2025-02-03T18:37:26.753Z","dependency_job_id":"6eb18f33-fa8c-492e-84dd-40967f1f59f7","html_url":"https://github.com/jazzband/django-downloadview","commit_stats":{"total_commits":277,"total_committers":26,"mean_commits":"10.653846153846153","dds":0.4115523465703971,"last_synced_commit":"338e17195f74706f317804def811adb0881acd30"},"previous_names":["benoitbryon/django-downloadview"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzband%2Fdjango-downloadview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzband%2Fdjango-downloadview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzband%2Fdjango-downloadview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzband%2Fdjango-downloadview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazzband","download_url":"https://codeload.github.com/jazzband/django-downloadview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372378,"owners_count":20604491,"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":[],"created_at":"2025-03-25T00:01:45.997Z","updated_at":"2025-03-25T00:02:02.179Z","avatar_url":"https://github.com/jazzband.png","language":"Python","funding_links":["https://jazzband.co/donate"],"categories":["Python"],"sub_categories":[],"readme":"###################\ndjango-downloadview\n###################\n\n.. image:: https://jazzband.co/static/img/badge.svg\n    :target: https://jazzband.co/\n    :alt: Jazzband\n\n.. image:: https://img.shields.io/pypi/v/django-downloadview.svg\n    :target: https://pypi.python.org/pypi/django-downloadview\n\n.. image:: https://img.shields.io/pypi/pyversions/django-downloadview.svg\n    :target: https://pypi.python.org/pypi/django-downloadview\n\n.. image:: https://img.shields.io/pypi/djversions/django-downloadview.svg\n    :target: https://pypi.python.org/pypi/django-downloadview\n\n.. image:: https://img.shields.io/pypi/dm/django-downloadview.svg\n    :target: https://pypi.python.org/pypi/django-downloadview\n\n.. image:: https://github.com/jazzband/django-downloadview/workflows/Test/badge.svg\n    :target: https://github.com/jazzband/django-downloadview/actions\n    :alt: GitHub Actions\n\n.. image:: https://codecov.io/gh/jazzband/django-downloadview/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/jazzband/django-downloadview\n    :alt: Coverage\n\n``django-downloadview`` makes it easy to serve files with `Django`_:\n\n* you manage files with Django (permissions, filters, generation, ...);\n\n* files are stored somewhere or generated somehow (local filesystem, remote\n  storage, memory...);\n\n* ``django-downloadview`` helps you stream the files with very little code;\n\n* ``django-downloadview`` helps you improve performances with reverse proxies,\n  via mechanisms such as Nginx's X-Accel or Apache's X-Sendfile.\n\n\n*******\nExample\n*******\n\nLet's serve a file stored in a file field of some model:\n\n.. code:: python\n\n   from django.conf.urls import url, url_patterns\n   from django_downloadview import ObjectDownloadView\n   from demoproject.download.models import Document  # A model with a FileField\n\n   # ObjectDownloadView inherits from django.views.generic.BaseDetailView.\n   download = ObjectDownloadView.as_view(model=Document, file_field='file')\n\n   url_patterns = ('',\n       url('^download/(?P\u003cslug\u003e[A-Za-z0-9_-]+)/$', download, name='download'),\n   )\n\n\n*********\nResources\n*********\n\n* Documentation: https://django-downloadview.readthedocs.io\n* PyPI page: http://pypi.python.org/pypi/django-downloadview\n* Code repository: https://github.com/jazzband/django-downloadview\n* Bugtracker: https://github.com/jazzband/django-downloadview/issues\n* Continuous integration: https://github.com/jazzband/django-downloadview/actions\n* Roadmap: https://github.com/jazzband/django-downloadview/milestones\n\n.. _`Django`: https://djangoproject.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitbryon%2Fdjango-downloadview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenoitbryon%2Fdjango-downloadview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitbryon%2Fdjango-downloadview/lists"}