Allow easy integration with Google storage for Django projects
Project description
This library is intended to be a ‘plug-and-play’ replacement for django.core.files.storage.FileSystemStorage but reading and writing files from Google storage. So there are two goals -
It should be possible to use this library in projects already using local filesystem but which want to start using Google storage. In this case, we read from Google storage but if that fails, read from local filesystem and also update Google storage.
Make it simpler to use newer features of Google storage like encrypting files with sensitive information
order_pdf = FileField(encrypted=True)
Examples
Using the module to upload some files
>>> from gstorage.bucket import Bucket
>>> bucket = Bucket.get_default()
>>> bucket.copydir('share/storage/2016/10/01')
Release history
0.5.1 (2016-11-04)
gstorage.storage.Storage implements the interface expected from django.core.files.storage.Storage. The only supported interface at this point is storage._save, and other methods are experimental.
Support Python 3.4 for new Django (1.9 and 1.10)
Added an example project showing use of django-gstorage
0.4.1 (2016-10-30)
Updated docstrings to sphinx style
Added documentation for gstorage.utils
0.4.0 (2016-10-30)
Features
Refactored tests and added seperate test files for each module.
Updated documentation on readthedocs.io to include section about bucket.
0.3.0 (2016-10-28)
Features
gstorage.bucket.Bucket.get_default allowing easy access to default bucket.
gstorage.bucket.Bucket.copydir allowing easy upload of files to Google cloud.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-gstorage-0.5.1.tar.gz
.
File metadata
- Download URL: django-gstorage-0.5.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e90cb0ed8ed3e217f569b72e356bab2d2d023f3e36b0dda88b1d3a3ac0097b0 |
|
MD5 | 9f057e0106c9f73f12c2ef9a9d25c09c |
|
BLAKE2b-256 | 24b6d565bbe2ae6b5eddedfedf9ceaa6dfaf106c716c65ce7a89119cd678b9dc |
File details
Details for the file django_gstorage-0.5.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_gstorage-0.5.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d143b0c44edc6462b67ceecacd0e0932bac3c2837445a9b4a26c257caac46392 |
|
MD5 | 4acf96f9c901080e564d63fe5795d64a |
|
BLAKE2b-256 | d22bac5e7472de9294a9defa053aa546a03cec68b76abc543970ef731a09d6a4 |