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.
>>> from gstorage.bucket import Bucket
>>> bucket = Bucket.get_default()
>>> bucket.copydir('share/storage/2016/10/01')
Make it simpler to use newer features of Google storage like encrypting files with sensitive information
order_pdf = FileField(encrypted=True)
Release history
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.3.0.tar.gz
.
File metadata
- Download URL: django-gstorage-0.3.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee72ad9c731f2b8f5fc05894f94b2a7987b31f02fa9ea86946b3169ec4011759 |
|
MD5 | 70f6c04cbf5f6a194f5ce5070687132b |
|
BLAKE2b-256 | 2398c81ede385b7de722bc6263345939c50219a829ded4c2e2746925b935cfe6 |
Provenance
File details
Details for the file django_gstorage-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_gstorage-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0375727a5098541c7c964c7d245b9cb592d86442a4bae07d70cd23a8b064f372 |
|
MD5 | 182e96ba2384afd926325149614c5c47 |
|
BLAKE2b-256 | 96b89da2ad8dc4046bfc7ebaa8e1a305bae0a776da7d8130d2f6c7d167bbd987 |