Skip to main content

Django Google Drive Storage

Tests status Linter status django-googledrive-storage on Pypi Documentation Status

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 django-googledrive-storage 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-googledrive-storage 1.6.0
File Size Uploaded
django-googledrive-storage-1.6.0.tar.gz 8.1 kB Details

Release files / django-googledrive-storage-1.6.0.tar.gz

Download URL django-googledrive-storage-1.6.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dd3331fc519d6dbf75b8e42d6e0ba5557e1594c5e629b237c1250bd84c9cddd5
BLAKE2b-256 checksum
How to use checksums
0f3d90d6457a0fe8e79ae8e6efeed7f875626cfb912d75cde9c86a9f96c6d47c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.6.0 This release

1 release file

1.5.2

1 release file

1.5.1

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.5

3 release files

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page