Skip to main content
PyPi page Travis CI Status Coverage status ReadTheDocs License MIT

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)

Source distribution for django-gstorage 0.5.1
File Size Uploaded
django-gstorage-0.5.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-gstorage 0.5.1
File Interpreter ABI Platform
django_gstorage-0.5.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

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