django-privates


Namedjango-privates JSON
Version 3.0.0 PyPI version JSON
download
home_pageNone
SummarySimple private media integration for Django
upload_time2025-02-26 14:04:28
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseCopyright (c) 2018 Sergei Maertens <info@regex-it.nl> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords django media private storage
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===============
Django-privates
===============

Simple private media integration for Django.

|build-status| |linting| |coverage| |docs| |python-versions| |django-versions| |pypi-version|

What does it do?
================

Django supports file uploads for user-generated content out of the box, which is
typically *public* - think of images, videos...

However, often you want to expose files only to correctly authenticated users because
they have a sensitive nature, for example invoice PDFs or tenant-specific documents.

django-privates achieves the latter while being as convenient as Django's core
``FileField`` and derivatives.

Usage
=====

The installation and usage `documentation`_ is hosted on ReadTheDocs.


.. |build-status| image:: https://github.com/sergei-maertens/django-privates/workflows/Run%20CI/badge.svg
    :target: https://github.com/sergei-maertens/django-privates/actions?query=workflow%3A%22Run+CI%22
    :alt: Run CI

.. |linting| image:: https://github.com/sergei-maertens/django-privates/workflows/Code%20quality%20checks/badge.svg
    :target: https://github.com/sergei-maertens/django-privates/actions?query=workflow%3A%22Code+quality+checks%22
    :alt: Code linting

.. |coverage| image:: https://codecov.io/gh/sergei-maertens/django-privates/branch/main/graph/badge.svg
    :target: https://codecov.io/gh/sergei-maertens/django-privates
    :alt: Coverage status

.. |docs| image:: https://readthedocs.org/projects/django-privates/badge/?version=latest
    :target: https://django-privates.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. |python-versions| image:: https://img.shields.io/pypi/pyversions/django-privates.svg

.. |django-versions| image:: https://img.shields.io/pypi/djversions/django-privates.svg

.. |pypi-version| image:: https://img.shields.io/pypi/v/django-privates.svg
    :target: https://pypi.org/project/django-privates/

.. _documentation: https://django-privates.readthedocs.io/

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "django-privates",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "django, media, private, storage",
    "author": null,
    "author_email": "Sergei Maertens <info@regex-it.nl>",
    "download_url": "https://files.pythonhosted.org/packages/ab/b8/be882bc4fd86ee7a9b55dc6689e609facea59208b56c66a911f2fecc2adc/django_privates-3.0.0.tar.gz",
    "platform": null,
    "description": "===============\nDjango-privates\n===============\n\nSimple private media integration for Django.\n\n|build-status| |linting| |coverage| |docs| |python-versions| |django-versions| |pypi-version|\n\nWhat does it do?\n================\n\nDjango supports file uploads for user-generated content out of the box, which is\ntypically *public* - think of images, videos...\n\nHowever, often you want to expose files only to correctly authenticated users because\nthey have a sensitive nature, for example invoice PDFs or tenant-specific documents.\n\ndjango-privates achieves the latter while being as convenient as Django's core\n``FileField`` and derivatives.\n\nUsage\n=====\n\nThe installation and usage `documentation`_ is hosted on ReadTheDocs.\n\n\n.. |build-status| image:: https://github.com/sergei-maertens/django-privates/workflows/Run%20CI/badge.svg\n    :target: https://github.com/sergei-maertens/django-privates/actions?query=workflow%3A%22Run+CI%22\n    :alt: Run CI\n\n.. |linting| image:: https://github.com/sergei-maertens/django-privates/workflows/Code%20quality%20checks/badge.svg\n    :target: https://github.com/sergei-maertens/django-privates/actions?query=workflow%3A%22Code+quality+checks%22\n    :alt: Code linting\n\n.. |coverage| image:: https://codecov.io/gh/sergei-maertens/django-privates/branch/main/graph/badge.svg\n    :target: https://codecov.io/gh/sergei-maertens/django-privates\n    :alt: Coverage status\n\n.. |docs| image:: https://readthedocs.org/projects/django-privates/badge/?version=latest\n    :target: https://django-privates.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. |python-versions| image:: https://img.shields.io/pypi/pyversions/django-privates.svg\n\n.. |django-versions| image:: https://img.shields.io/pypi/djversions/django-privates.svg\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/django-privates.svg\n    :target: https://pypi.org/project/django-privates/\n\n.. _documentation: https://django-privates.readthedocs.io/\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2018 Sergei Maertens <info@regex-it.nl>\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.\n        ",
    "summary": "Simple private media integration for Django",
    "version": "3.0.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/sergei-maertens/django-privates/issues",
        "Documentation": "https://django-privates.readthedocs.io/en/latest/",
        "Homepage": "https://github.com/sergei-maertens/django-privates",
        "Source Code": "https://github.com/sergei-maertens/django-privates"
    },
    "split_keywords": [
        "django",
        " media",
        " private",
        " storage"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b0c65593630471296eb669c769e5a7a7fd4a49d46dcd76654cb3b23e0c73189f",
                "md5": "0175f37ac7c7e0772bae6d64011abd76",
                "sha256": "da6b4bee70c34604c712bc54ae52e032915d92e34cae411c7d23a3520a4a403d"
            },
            "downloads": -1,
            "filename": "django_privates-3.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0175f37ac7c7e0772bae6d64011abd76",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 10681,
            "upload_time": "2025-02-26T14:04:27",
            "upload_time_iso_8601": "2025-02-26T14:04:27.508923Z",
            "url": "https://files.pythonhosted.org/packages/b0/c6/5593630471296eb669c769e5a7a7fd4a49d46dcd76654cb3b23e0c73189f/django_privates-3.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "abb8be882bc4fd86ee7a9b55dc6689e609facea59208b56c66a911f2fecc2adc",
                "md5": "961842901a4514951d8ff5805bf4d60a",
                "sha256": "71bfc869592e4d2e0729bc2d7c202a6c228691dcf9752fa751b3a87b7e40e9e4"
            },
            "downloads": -1,
            "filename": "django_privates-3.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "961842901a4514951d8ff5805bf4d60a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 12020,
            "upload_time": "2025-02-26T14:04:28",
            "upload_time_iso_8601": "2025-02-26T14:04:28.960253Z",
            "url": "https://files.pythonhosted.org/packages/ab/b8/be882bc4fd86ee7a9b55dc6689e609facea59208b56c66a911f2fecc2adc/django_privates-3.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-26 14:04:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sergei-maertens",
    "github_project": "django-privates",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "django-privates"
}
        
Elapsed time: 1.61867s