Skip to main content

django backblaze b2 storage using b2sdk

Project description

django backblaze b2 storage using b2sdk (b2sdk is official backblaze python library)


The full documentation is at


Install django-b2:

pip install django-b2

Add into your settings:

MEDIA_URL = '/media/'

Using outside of Django:

from django_b2.backblaze_b2 import BackBlazeB2
b2 = BackBlazeB2()
b2.authorize("production", application_key_id, application_key)
with open(filename, 'rb') as f:
    b2.upload_file(filename, f)
content = b2.download_file(filename)
with open(filename2, 'wb') as f:

Nginx large file uploads: You need at least modify /etc/nginx/nginx.conf, http section, add client… settings. Read:


Django media storage (with or general python access to BackBlaze B2 (without usage of

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ tox


Tools used in rendering this package:


0.1.5 (2020-01-02)

  • No code change. Minor docs changes.

0.1.4 (2020-01-02)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-b2, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size django_b2-0.1.8-py2.py3-none-any.whl (8.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-b2-0.1.8.tar.gz (9.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page