Django Google Drive Storage
This is a Django Storage implementation that uses Google Drive as backend for storing data.
Quick start
Installation
pip install django-googledrive-storage
Setup
INSTALLED_APPS = (
...,
'django.contrib.staticfiles',
'gdstorage'
)
Set the environment variable GOOGLE_DRIVE_STORAGE_JSON_KEY_FILE_CONTENTS or path file in the settings.py: GOOGLE_DRIVE_STORAGE_JSON_KEY_FILE.
Optional set GOOGLE_DRIVE_STORAGE_MEDIA_ROOT in the settings.py
Usage example
from gdstorage.storage import GoogleDriveStorage
# Define Google Drive Storage
gd_storage = GoogleDriveStorage()
...
class Map(models.Model):
id = models.AutoField( primary_key=True)
map_name = models.CharField(max_length=200)
map_data = models.FileField(upload_to='maps', storage=gd_storage)
Documentation and Installation instructions
Documentation and installation instructions can be found at Read The Docs.
Metadata
Release files for private-django-googledrive-storage 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| private_django_googledrive_storage-1.6.0-py3-none-any.whl | Python 3 | none | any | Details for private_django_googledrive_storage-1.6.0-py3-none-any.whl |
Release files / private_django_googledrive_storage-1.6.0-py3-none-any.whl
| Download URL | private_django_googledrive_storage-1.6.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31c6bcaef2a396f58487321c724e604bb5abd06489be311340741a9fa4745c3d
|
|
BLAKE2b-256 checksum How to use checksums |
24f8c7d068ef197855d35ec8b84cea9f5e80d584c71c218410e6dca3868a274c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for private-django-googledrive-storage 1.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.