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.
Metadata
Release files for django-gstorage 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-gstorage-0.5.1.tar.gz | 7.2 kB | Without provenance | Details for django-gstorage-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_gstorage-0.5.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_gstorage-0.5.1-py2.py3-none-any.whl |
Total release size: 17.1 kB
Release files / django-gstorage-0.5.1.tar.gz
| Download URL | django-gstorage-0.5.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e90cb0ed8ed3e217f569b72e356bab2d2d023f3e36b0dda88b1d3a3ac0097b0
|
|
BLAKE2b-256 checksum How to use checksums |
24b6d565bbe2ae6b5eddedfedf9ceaa6dfaf106c716c65ce7a89119cd678b9dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_gstorage-0.5.1-py2.py3-none-any.whl
| Download URL | django_gstorage-0.5.1-py2.py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d143b0c44edc6462b67ceecacd0e0932bac3c2837445a9b4a26c257caac46392
|
|
BLAKE2b-256 checksum How to use checksums |
d22bac5e7472de9294a9defa053aa546a03cec68b76abc543970ef731a09d6a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-gstorage 0.5.1
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.