b2sdk
Backblaze B2 SDK
Decision gist · record as of 2026-08-14
Yes. B2SDK is production-stable, actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. Install it if you need to programmatically interact with Backblaze B2 Cloud Storage from Python. Pin to a major version (e.g., `b2sdk>=2,<3`) to avoid breaking changes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; you must have valid Backblaze B2 credentials (app key ID and app key) to authorize.
- Installation is straightforward with low friction—a single wheel distribution and four lightweight runtime dependencies (annotated-types, logfury, requests, typing-extensions).
- The project is actively maintained with recent commits and follows semantic versioning, making it safe to pin to a major version.
License · maintenance · safety
MIT (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute b2sdk freely in both open-source and commercial projects without restriction.
last release 2026-05-05 (101 days) · last repo commit 2026-07-06 · 211 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 536,015 downloads/mo, #6,128 on PyPI
Alternatives
Verify before relying
pip install b2sdk
from b2sdk.v2 import InMemoryAccountInfo, B2Api
info = InMemoryAccountInfo()
api = B2Api(info)
api.authorize_account('production', 'app_key_id', 'app_key')- Whether the library supports async/await patterns or is synchronous-only.
- Performance characteristics for large file uploads or bulk operations.
- Whether retry logic and rate-limiting are built in or require manual handling.
What it is and what it does
B2SDK is a production-stable Python client for Backblaze B2 Cloud Storage. It wraps the B2 REST API to let you programmatically upload, download, list, and manage files and buckets from Python code. The library depends on requests for HTTP communication and includes utilities for logging and type annotations.
Typical use cases include building backup tools, storage backend drivers, FUSE filesystems, or any application that needs to interact with B2 Cloud Storage. The project is actively maintained, supports current Python versions (3.10 through 3.14), and follows semantic versioning so you can safely pin dependencies with version constraints like `b2sdk>=2,<3`.
Use it for
- Build a backup application that uploads files to B2 Cloud Storage programmatically.
- Integrate B2 storage as a backend for a FUSE filesystem or virtual drive.
- Automate file management tasks like batch uploads, deletions, or lifecycle policies.
- Create a storage driver for backup software to use B2 as a destination.
- Sync local directories to B2 buckets with custom logic and error handling.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
B2SDK is production-stable, actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. Install it if you need to programmatically interact with Backblaze B2 Cloud Storage from Python. Pin to a major version (e.g., `b2sdk>=2,<3`) to avoid breaking changes.
Install
b2sdk on PyPI
Before you install
Installation is straightforward with low friction—a single wheel distribution and four lightweight runtime dependencies (annotated-types, logfury, requests, typing-extensions). The project is actively maintained with recent commits and follows semantic versioning, making it safe to pin to a major version.
Requires Python 3.10 or later; you must have valid Backblaze B2 credentials (app key ID and app key) to authorize.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute b2sdk freely in both open-source and commercial projects without restriction.
Quickstart
pip install b2sdk
from b2sdk.v2 import InMemoryAccountInfo, B2Api
info = InMemoryAccountInfo()
api = B2Api(info)
api.authorize_account('production', 'app_key_id', 'app_key')
Verify before relying
- Whether the library supports async/await patterns or is synchronous-only.
- Performance characteristics for large file uploads or bulk operations.
- Whether retry logic and rate-limiting are built in or require manual handling.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesannotated-typeslogfuryrequeststyping-extensions |
| Maintenance | Actively maintained 101 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 536,015 / month, #6,128 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries |
Evidence: b2sdk-2.12.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “backblaze b2 cloud storage client”
- b2sdkB2SDK is a Python client library for Backblaze B2 Cloud Storage that…
- b2Command-line interface for managing files, buckets, and accounts on…
- google-cloud-storage-transferPython client library for Google Cloud Storage Transfer, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also b2 · kbcstorage · gsutil · storage3 · s3fs · hatch · aws-cdk.aws-s3 · hatchling · azure-storage-file-datalake · google-cloud-storage