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.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
Hashes for django_gstorage-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31b94552997817c2c6cc94a0783bed0925bbd2c975ea109895c7bc0454b5af47 |
|
MD5 | 1f7466f71a7d45db6ce917f0badd31b4 |
|
BLAKE2b-256 | 72b506db279708fb62d912aeb0509e00db8b55a0e67843b7454d5829dda95bd0 |