django-private-storage
======================
.. image:: https://github.com/edoburu/django-private-storage/actions/workflows/tests.yaml/badge.svg?branch=master
:target: https://github.com/edoburu/django-private-storage/actions/workflows/tests.yaml
.. image:: https://img.shields.io/pypi/v/django-private-storage.svg
:target: https://pypi.python.org/pypi/django-private-storage/
.. image:: https://img.shields.io/pypi/l/django-private-storage.svg
:target: https://pypi.python.org/pypi/django-private-storage/
.. image:: https://img.shields.io/codecov/c/github/edoburu/django-private-storage/master.svg
:target: https://codecov.io/github/edoburu/django-private-storage?branch=master
This module offers a private media file storage,
so user uploads can be protected behind a login.
It uses the Django storage API's internally,
so all form rendering and admin integration work out of the box.
Installation
============
::
pip install django-private-storage
Configuration
-------------
Add to the settings:
.. code-block:: python
INSTALLED_APPS += (
'private_storage',
)
PRIVATE_STORAGE_ROOT = '/path/to/private-media/'
PRIVATE_STORAGE_AUTH_FUNCTION = 'private_storage.permissions.allow_staff'
Add to ``urls.py``:
.. code-block:: python
import private_storage.urls
urlpatterns += [
path('private-media/', include(private_storage.urls)),
]
Usage
-----
In a Django model, add the ``PrivateFileField``:
.. code-block:: python
from django.db import models
from private_storage.fields import PrivateFileField
class MyModel(models.Model):
title = models.CharField("Title", max_length=200)
file = PrivateFileField("File")
The ``PrivateFileField`` also accepts the following kwargs:
* ``upload_to``: the optional subfolder in the ``PRIVATE_STORAGE_ROOT``.
* ``upload_subfolder``: a function that defines the folder, it receives the current model ``instance``.
* ``content_types``: allowed content types
* ``max_file_size``: maximum file size in bytes. (1MB is 1024 * 1024)
* ``storage``: the storage object to use, defaults to ``private_storage.storage.private_storage``
Images
------
You can also use ``PrivateImageField`` which only allows you to upload images:
.. code-block:: python
from django.db import models
from private_storage.fields import PrivateImageField
class MyModel(models.Model):
title = models.CharField("Title", max_length=200)
width = models.PositiveSmallIntegerField(default=0)
height = models.PositiveSmallIntegerField(default=0)
image = PrivateFileField("Image", width_field='width', height_field='height')
The ``PrivateImageField`` also accepts the following kwargs on top of ``PrivateFileField``:
* ``width_field``: optional field for that stores the width of the image
* ``height_field``: optional field for that stores the height of the image
Other topics
============
Storing files on Amazon S3
--------------------------
The ``PRIVATE_STORAGE_CLASS`` setting can be redefined to point to a different storage class.
The default is ``private_storage.storage.files.PrivateFileSystemStorage``, which uses
a private media folder that ``PRIVATE_STORAGE_ROOT`` points to.
Define one of these settings instead:
.. code-block:: python
PRIVATE_STORAGE_CLASS = 'private_storage.storage.s3boto3.PrivateS3BotoStorage'
AWS_PRIVATE_STORAGE_BUCKET_NAME = 'private-files' # bucket name
This uses django-storages_ settings. Replace the prefix ``AWS_`` with ``AWS_PRIVATE_``.
The following settings are reused when they don't have an corresponding ``AWS_PRIVATE_...`` setting:
* ``AWS_ACCESS_KEY_ID``
* ``AWS_SECRET_ACCESS_KEY``
* ``AWS_S3_URL_PROTOCOL``
* ``AWS_S3_REGION_NAME``
* ``AWS_IS_GZIPPED``
All other settings should be explicitly defined with ``AWS_PRIVATE_...`` settings.
By default, all URLs in the admin return the direct S3 bucket URls, with the `query parameter authentication`_ enabled.
When ``AWS_PRIVATE_QUERYSTRING_AUTH = False``, all file downloads are proxied through our ``PrivateFileView`` URL.
This behavior can be enabled explicitly using ``PRIVATE_STORAGE_S3_REVERSE_PROXY = True``.
To have encryption either configure ``AWS_PRIVATE_S3_ENCRYPTION``
and ``AWS_PRIVATE_S3_SIGNATURE_VERSION`` or use:
.. code-block:: python
PRIVATE_STORAGE_CLASS = 'private_storage.storage.s3boto3.PrivateEncryptedS3BotoStorage'
Make sure an encryption key is generated on Amazon.
MinIO storage
--------------------------
Define one of these settings :
.. code-block:: python
PRIVATE_STORAGE_CLASS = 'private_storage.storage.minio.PrivateMinioStorage'
MINIO_PRIVATE_STORAGE_MEDIA_BUCKET_NAME = 'private-files'
MINIO_PRIVATE_STORAGE_MEDIA_URL= '/private-files'
This uses django-minio-storage_ settings. Replace the prefix ``MINIO_`` with ``MINIO_PRIVATE_``.
The all settings are reused when they don't have an corresponding ``MINIO_PRIVATE_...`` setting.
* ``MINIO_STORAGE_ENDPOINT``
* ``MINIO_STORAGE_ACCESS_KEY``
* ``MINIO_STORAGE_SECRET_KEY``
* ``MINIO_STORAGE_USE_HTTPS``
* ``MINIO_STORAGE_MEDIA_BUCKET_NAME``
* ``MINIO_STORAGE_MEDIA_URL``
* ``MINIO_STORAGE_AUTO_CREATE_MEDIA_BUCKET``
* ``MINIO_STORAGE_AUTO_CREATE_MEDIA_POLICY``
* ``MINIO_STORAGE_MEDIA_USE_PRESIGNED``
* ``MINIO_STORAGE_MEDIA_BACKUP_FORMAT``
* ``MINIO_STORAGE_ASSUME_MEDIA_BUCKET_EXISTS``
* ``MINIO_STORAGE_MEDIA_OBJECT_METADATA``
As with S3, you can enable proxy through our ``PrivateFileView`` URL.
Just specify ``PRIVATE_STORAGE_MINO_REVERSE_PROXY = True``.
Defining access rules
---------------------
The ``PRIVATE_STORAGE_AUTH_FUNCTION`` defines which user may access the files.
By default, this only includes superusers.
The following options are available out of the box:
* ``private_storage.permissions.allow_authenticated``
* ``private_storage.permissions.allow_staff``
* ``private_storage.permissions.allow_superuser``
You can create a custom function, and use that instead.
The function receives a ``private_storage.models.PrivateFile`` object,
which has the following fields:
* ``request``: the Django request.
* ``storage``: the storage engine used to retrieve the file.
* ``relative_name``: the file name in the storage.
* ``full_path``: the full file system path.
* ``exists()``: whether the file exists.
* ``content_type``: the HTTP content type.
* ``parent_object``: only set when ``PrivateStorageDetailView`` was used.
Retrieving files by object ID
-----------------------------
To implement more object-based access permissions,
create a custom view that provides the download.
.. code-block:: python
from private_storage.views import PrivateStorageDetailView
class MyDocumentDownloadView(PrivateStorageDetailView):
model = MyModel
model_file_field = 'file'
def get_queryset(self):
# Make sure only certain objects can be accessed.
return super().get_queryset().filter(...)
def can_access_file(self, private_file):
# When the object can be accessed, the file may be downloaded.
# This overrides PRIVATE_STORAGE_AUTH_FUNCTION
return True
The following class-level attributes can be overwritten:
* ``model``: The model to fetch (including every other attribute of ``SingleObjectMixin``).
* ``model_file_field``: This should point to the field used to store the file.
* ``storage`` / ``get_storage()``: The storage class to read the file from.
* ``server_class``: The Python class used to generate the ``HttpResponse`` / ``FileResponse``.
* ``content_disposition``: Can be "inline" (show inside the browser) or "attachment" (saved as download).
* ``content_disposition_filename`` / ``get_content_disposition_filename()``: Overrides the filename for downloading.
Optimizing large file transfers
-------------------------------
Sending large files can be inefficient in some configurations.
In the worst case scenario, the whole file needs to be read in chunks
and passed as a whole through the WSGI buffers, OS kernel, webserver and proxy server.
In effect, the complete file is copied several times through memory buffers.
There are more efficient ways to transfer files, such as the ``sendfile()`` system call on UNIX.
Django uses such feature when the WSGI server provides ``wsgi.file_handler`` support.
In some situations, this effect is nullified,
for example by by a local HTTP server sitting in front of the WSGI container.
A typical case would be running Gunicorn behind an Nginx or Apache webserver.
For such situation, the native support of the
webserver can be enabled with the following settings:
For apache
~~~~~~~~~~
.. code-block:: python
PRIVATE_STORAGE_SERVER = 'apache'
This requires in addition an installed and activated mod_xsendfile Apache module.
Add the following XSendFile configurations to your conf.d config file.
.. code-block:: apache
<virtualhost ...>
...
WSGIScriptAlias / ...
XSendFile On
XSendFilePath ... [path to where the files are, same as PRIVATE_STORAGE_ROOT]
...
</virtualhost>
For Nginx
~~~~~~~~~
.. code-block:: python
PRIVATE_STORAGE_SERVER = 'nginx'
PRIVATE_STORAGE_INTERNAL_URL = '/private-x-accel-redirect/'
Add the following location block in the server config:
.. code-block:: nginx
location /private-x-accel-redirect/ {
internal;
alias /path/to/private-media/;
}
For very old Nginx versions, you'll have to configure ``PRIVATE_STORAGE_NGINX_VERSION``,
because Nginx versions before 1.5.9 (released in 2014) handle non-ASCII filenames differently.
Other webservers
~~~~~~~~~~~~~~~~
The ``PRIVATE_STORAGE_SERVER`` may also point to a dotted Python class path.
Implement a class with a static ``serve(private_file)`` method.
Using multiple storages
-----------------------
The ``PrivateFileField`` accepts a ``storage`` kwarg,
hence you can initialize multiple ``private_storage.storage.PrivateStorage`` objects,
each providing files from a different ``location`` and ``base_url``.
For example:
.. code-block:: python
from django.db import models
from private_storage.fields import PrivateFileField
from private_storage.storage.files import PrivateFileSystemStorage
my_storage = PrivateFileSystemStorage(
location='/path/to/storage2/',
base_url='/private-documents2/'
)
class MyModel(models.Model):
file = PrivateFileField(storage=my_storage)
Then create a view to serve those files:
.. code-block:: python
from private_storage.views import PrivateStorageView
from .models import my_storage
class MyStorageView(PrivateStorageView):
storage = my_storage
def can_access_file(self, private_file):
# This overrides PRIVATE_STORAGE_AUTH_FUNCTION
return self.request.is_superuser
And expose that URL:
.. code-block:: python
urlpatterns += [
url('^private-documents2/(?P<path>.*)$', views.MyStorageView.as_view()),
]
Contributing
------------
This module is designed to be generic. In case there is anything you didn't like about it,
or think it's not flexible enough, please let us know. We'd love to improve it!
Running tests
~~~~~~~~~~~~~
We use tox to run the test suite on different versions locally (and travis-ci to automate the check for PRs).
To tun the test suite locally, please make sure your python environment has tox and django installed::
python3.6 -m pip install tox django
And then simply execute tox to run the whole test matrix::
tox
.. _django-storages: https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html
.. _django-minio-storage: https://django-minio-storage.readthedocs.io/en/latest/usage/#django-settings-configuration
.. _query parameter authentication: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html
Raw data
{
"_id": null,
"home_page": "https://github.com/edoburu/django-private-storage",
"name": "djau-private-storage",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Diederik van der Boor",
"author_email": "opensource@edoburu.nl",
"download_url": "https://files.pythonhosted.org/packages/66/86/ca5132f066371e48a3a85156844eee6e3915a9b863706006b3dd513975fb/djau-private-storage-3.1.tar.gz",
"platform": null,
"description": "django-private-storage\n======================\n\n.. image:: https://github.com/edoburu/django-private-storage/actions/workflows/tests.yaml/badge.svg?branch=master\n :target: https://github.com/edoburu/django-private-storage/actions/workflows/tests.yaml\n.. image:: https://img.shields.io/pypi/v/django-private-storage.svg\n :target: https://pypi.python.org/pypi/django-private-storage/\n.. image:: https://img.shields.io/pypi/l/django-private-storage.svg\n :target: https://pypi.python.org/pypi/django-private-storage/\n.. image:: https://img.shields.io/codecov/c/github/edoburu/django-private-storage/master.svg\n :target: https://codecov.io/github/edoburu/django-private-storage?branch=master\n\nThis module offers a private media file storage,\nso user uploads can be protected behind a login.\n\nIt uses the Django storage API's internally,\nso all form rendering and admin integration work out of the box.\n\nInstallation\n============\n\n::\n\n pip install django-private-storage\n\nConfiguration\n-------------\n\nAdd to the settings:\n\n.. code-block:: python\n\n INSTALLED_APPS += (\n 'private_storage',\n )\n\n PRIVATE_STORAGE_ROOT = '/path/to/private-media/'\n PRIVATE_STORAGE_AUTH_FUNCTION = 'private_storage.permissions.allow_staff'\n\nAdd to ``urls.py``:\n\n.. code-block:: python\n\n import private_storage.urls\n\n urlpatterns += [\n path('private-media/', include(private_storage.urls)),\n ]\n\nUsage\n-----\n\nIn a Django model, add the ``PrivateFileField``:\n\n.. code-block:: python\n\n from django.db import models\n from private_storage.fields import PrivateFileField\n\n class MyModel(models.Model):\n title = models.CharField(\"Title\", max_length=200)\n file = PrivateFileField(\"File\")\n\nThe ``PrivateFileField`` also accepts the following kwargs:\n\n* ``upload_to``: the optional subfolder in the ``PRIVATE_STORAGE_ROOT``.\n* ``upload_subfolder``: a function that defines the folder, it receives the current model ``instance``.\n* ``content_types``: allowed content types\n* ``max_file_size``: maximum file size in bytes. (1MB is 1024 * 1024)\n* ``storage``: the storage object to use, defaults to ``private_storage.storage.private_storage``\n\n\nImages\n------\n\nYou can also use ``PrivateImageField`` which only allows you to upload images:\n\n.. code-block:: python\n\n from django.db import models\n from private_storage.fields import PrivateImageField\n\n class MyModel(models.Model):\n title = models.CharField(\"Title\", max_length=200)\n width = models.PositiveSmallIntegerField(default=0)\n height = models.PositiveSmallIntegerField(default=0)\n image = PrivateFileField(\"Image\", width_field='width', height_field='height')\n\nThe ``PrivateImageField`` also accepts the following kwargs on top of ``PrivateFileField``:\n\n* ``width_field``: optional field for that stores the width of the image\n* ``height_field``: optional field for that stores the height of the image\n\nOther topics\n============\n\nStoring files on Amazon S3\n--------------------------\n\nThe ``PRIVATE_STORAGE_CLASS`` setting can be redefined to point to a different storage class.\nThe default is ``private_storage.storage.files.PrivateFileSystemStorage``, which uses\na private media folder that ``PRIVATE_STORAGE_ROOT`` points to.\n\nDefine one of these settings instead:\n\n.. code-block:: python\n\n PRIVATE_STORAGE_CLASS = 'private_storage.storage.s3boto3.PrivateS3BotoStorage'\n\n AWS_PRIVATE_STORAGE_BUCKET_NAME = 'private-files' # bucket name\n\nThis uses django-storages_ settings. Replace the prefix ``AWS_`` with ``AWS_PRIVATE_``.\nThe following settings are reused when they don't have an corresponding ``AWS_PRIVATE_...`` setting:\n\n* ``AWS_ACCESS_KEY_ID``\n* ``AWS_SECRET_ACCESS_KEY``\n* ``AWS_S3_URL_PROTOCOL``\n* ``AWS_S3_REGION_NAME``\n* ``AWS_IS_GZIPPED``\n\nAll other settings should be explicitly defined with ``AWS_PRIVATE_...`` settings.\n\nBy default, all URLs in the admin return the direct S3 bucket URls, with the `query parameter authentication`_ enabled.\nWhen ``AWS_PRIVATE_QUERYSTRING_AUTH = False``, all file downloads are proxied through our ``PrivateFileView`` URL.\nThis behavior can be enabled explicitly using ``PRIVATE_STORAGE_S3_REVERSE_PROXY = True``.\n\nTo have encryption either configure ``AWS_PRIVATE_S3_ENCRYPTION``\nand ``AWS_PRIVATE_S3_SIGNATURE_VERSION`` or use:\n\n.. code-block:: python\n\n PRIVATE_STORAGE_CLASS = 'private_storage.storage.s3boto3.PrivateEncryptedS3BotoStorage'\n\nMake sure an encryption key is generated on Amazon.\n\nMinIO storage\n--------------------------\n\nDefine one of these settings :\n\n.. code-block:: python\n\n PRIVATE_STORAGE_CLASS = 'private_storage.storage.minio.PrivateMinioStorage'\n\n MINIO_PRIVATE_STORAGE_MEDIA_BUCKET_NAME = 'private-files'\n MINIO_PRIVATE_STORAGE_MEDIA_URL= '/private-files'\n\nThis uses django-minio-storage_ settings. Replace the prefix ``MINIO_`` with ``MINIO_PRIVATE_``.\nThe all settings are reused when they don't have an corresponding ``MINIO_PRIVATE_...`` setting.\n\n* ``MINIO_STORAGE_ENDPOINT``\n* ``MINIO_STORAGE_ACCESS_KEY``\n* ``MINIO_STORAGE_SECRET_KEY``\n* ``MINIO_STORAGE_USE_HTTPS``\n* ``MINIO_STORAGE_MEDIA_BUCKET_NAME``\n* ``MINIO_STORAGE_MEDIA_URL``\n* ``MINIO_STORAGE_AUTO_CREATE_MEDIA_BUCKET``\n* ``MINIO_STORAGE_AUTO_CREATE_MEDIA_POLICY``\n* ``MINIO_STORAGE_MEDIA_USE_PRESIGNED``\n* ``MINIO_STORAGE_MEDIA_BACKUP_FORMAT``\n* ``MINIO_STORAGE_ASSUME_MEDIA_BUCKET_EXISTS``\n* ``MINIO_STORAGE_MEDIA_OBJECT_METADATA``\n\nAs with S3, you can enable proxy through our ``PrivateFileView`` URL.\nJust specify ``PRIVATE_STORAGE_MINO_REVERSE_PROXY = True``.\n\nDefining access rules\n---------------------\n\nThe ``PRIVATE_STORAGE_AUTH_FUNCTION`` defines which user may access the files.\nBy default, this only includes superusers.\n\nThe following options are available out of the box:\n\n* ``private_storage.permissions.allow_authenticated``\n* ``private_storage.permissions.allow_staff``\n* ``private_storage.permissions.allow_superuser``\n\nYou can create a custom function, and use that instead.\nThe function receives a ``private_storage.models.PrivateFile`` object,\nwhich has the following fields:\n\n* ``request``: the Django request.\n* ``storage``: the storage engine used to retrieve the file.\n* ``relative_name``: the file name in the storage.\n* ``full_path``: the full file system path.\n* ``exists()``: whether the file exists.\n* ``content_type``: the HTTP content type.\n* ``parent_object``: only set when ``PrivateStorageDetailView`` was used.\n\n\nRetrieving files by object ID\n-----------------------------\n\nTo implement more object-based access permissions,\ncreate a custom view that provides the download.\n\n.. code-block:: python\n\n from private_storage.views import PrivateStorageDetailView\n\n class MyDocumentDownloadView(PrivateStorageDetailView):\n model = MyModel\n model_file_field = 'file'\n\n def get_queryset(self):\n # Make sure only certain objects can be accessed.\n return super().get_queryset().filter(...)\n\n def can_access_file(self, private_file):\n # When the object can be accessed, the file may be downloaded.\n # This overrides PRIVATE_STORAGE_AUTH_FUNCTION\n return True\n\nThe following class-level attributes can be overwritten:\n\n* ``model``: The model to fetch (including every other attribute of ``SingleObjectMixin``).\n* ``model_file_field``: This should point to the field used to store the file.\n* ``storage`` / ``get_storage()``: The storage class to read the file from.\n* ``server_class``: The Python class used to generate the ``HttpResponse`` / ``FileResponse``.\n* ``content_disposition``: Can be \"inline\" (show inside the browser) or \"attachment\" (saved as download).\n* ``content_disposition_filename`` / ``get_content_disposition_filename()``: Overrides the filename for downloading.\n\n\nOptimizing large file transfers\n-------------------------------\n\nSending large files can be inefficient in some configurations.\n\nIn the worst case scenario, the whole file needs to be read in chunks\nand passed as a whole through the WSGI buffers, OS kernel, webserver and proxy server.\nIn effect, the complete file is copied several times through memory buffers.\n\nThere are more efficient ways to transfer files, such as the ``sendfile()`` system call on UNIX.\nDjango uses such feature when the WSGI server provides ``wsgi.file_handler`` support.\n\nIn some situations, this effect is nullified,\nfor example by by a local HTTP server sitting in front of the WSGI container.\nA typical case would be running Gunicorn behind an Nginx or Apache webserver.\n\nFor such situation, the native support of the\nwebserver can be enabled with the following settings:\n\nFor apache\n~~~~~~~~~~\n\n.. code-block:: python\n\n PRIVATE_STORAGE_SERVER = 'apache'\n\nThis requires in addition an installed and activated mod_xsendfile Apache module.\nAdd the following XSendFile configurations to your conf.d config file.\n\n.. code-block:: apache\n\n <virtualhost ...>\n ...\n WSGIScriptAlias / ...\n XSendFile On\n XSendFilePath ... [path to where the files are, same as PRIVATE_STORAGE_ROOT]\n ...\n </virtualhost>\n\n\nFor Nginx\n~~~~~~~~~\n\n.. code-block:: python\n\n PRIVATE_STORAGE_SERVER = 'nginx'\n PRIVATE_STORAGE_INTERNAL_URL = '/private-x-accel-redirect/'\n\nAdd the following location block in the server config:\n\n.. code-block:: nginx\n\n location /private-x-accel-redirect/ {\n internal;\n alias /path/to/private-media/;\n }\n\nFor very old Nginx versions, you'll have to configure ``PRIVATE_STORAGE_NGINX_VERSION``,\nbecause Nginx versions before 1.5.9 (released in 2014) handle non-ASCII filenames differently.\n\nOther webservers\n~~~~~~~~~~~~~~~~\n\nThe ``PRIVATE_STORAGE_SERVER`` may also point to a dotted Python class path.\nImplement a class with a static ``serve(private_file)`` method.\n\nUsing multiple storages\n-----------------------\n\nThe ``PrivateFileField`` accepts a ``storage`` kwarg,\nhence you can initialize multiple ``private_storage.storage.PrivateStorage`` objects,\neach providing files from a different ``location`` and ``base_url``.\n\nFor example:\n\n.. code-block:: python\n\n\n from django.db import models\n from private_storage.fields import PrivateFileField\n from private_storage.storage.files import PrivateFileSystemStorage\n\n my_storage = PrivateFileSystemStorage(\n location='/path/to/storage2/',\n base_url='/private-documents2/'\n )\n\n class MyModel(models.Model):\n file = PrivateFileField(storage=my_storage)\n\n\nThen create a view to serve those files:\n\n.. code-block:: python\n\n from private_storage.views import PrivateStorageView\n from .models import my_storage\n\n class MyStorageView(PrivateStorageView):\n storage = my_storage\n\n def can_access_file(self, private_file):\n # This overrides PRIVATE_STORAGE_AUTH_FUNCTION\n return self.request.is_superuser\n\nAnd expose that URL:\n\n.. code-block:: python\n\n urlpatterns += [\n url('^private-documents2/(?P<path>.*)$', views.MyStorageView.as_view()),\n ]\n\n\nContributing\n------------\n\nThis module is designed to be generic. In case there is anything you didn't like about it,\nor think it's not flexible enough, please let us know. We'd love to improve it!\n\nRunning tests\n~~~~~~~~~~~~~\n\nWe use tox to run the test suite on different versions locally (and travis-ci to automate the check for PRs).\n\nTo tun the test suite locally, please make sure your python environment has tox and django installed::\n\n python3.6 -m pip install tox django\n\nAnd then simply execute tox to run the whole test matrix::\n\n tox\n\n.. _django-storages: https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html\n.. _django-minio-storage: https://django-minio-storage.readthedocs.io/en/latest/usage/#django-settings-configuration\n.. _query parameter authentication: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html\n\n\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "Private media file storage for Django projects",
"version": "3.1",
"project_urls": {
"Download": "https://github.com/edoburu/django-private-storage/zipball/master",
"Homepage": "https://github.com/edoburu/django-private-storage"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4f1d8b3169e65797e5d156f8088116131a6ef78fd99c03aee152db2ea0675c0e",
"md5": "8553ce190a779734191f3d7ef0430817",
"sha256": "6ddafda99afa07922933e52a6e614ad82160c89daa4faed1e6d021680a4c6959"
},
"downloads": -1,
"filename": "djau_private_storage-3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8553ce190a779734191f3d7ef0430817",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 32960,
"upload_time": "2023-05-14T10:49:22",
"upload_time_iso_8601": "2023-05-14T10:49:22.323068Z",
"url": "https://files.pythonhosted.org/packages/4f/1d/8b3169e65797e5d156f8088116131a6ef78fd99c03aee152db2ea0675c0e/djau_private_storage-3.1-py3-none-any.whl",
"yanked": true,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6686ca5132f066371e48a3a85156844eee6e3915a9b863706006b3dd513975fb",
"md5": "ebcf9cad2b70351104a2ec3a1614714c",
"sha256": "cab6313470c871e609e8d1cf060e28cd5541fd029dc3e061eaebe3969890d20b"
},
"downloads": -1,
"filename": "djau-private-storage-3.1.tar.gz",
"has_sig": false,
"md5_digest": "ebcf9cad2b70351104a2ec3a1614714c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 27381,
"upload_time": "2023-05-14T10:49:24",
"upload_time_iso_8601": "2023-05-14T10:49:24.324965Z",
"url": "https://files.pythonhosted.org/packages/66/86/ca5132f066371e48a3a85156844eee6e3915a9b863706006b3dd513975fb/djau-private-storage-3.1.tar.gz",
"yanked": true,
"yanked_reason": null
}
],
"upload_time": "2023-05-14 10:49:24",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "edoburu",
"github_project": "django-private-storage",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "djau-private-storage"
}