--- id: b2sdk version: "2.12.0" license: MIT license_treatment: permissive maintenance: active --- # b2sdk — Backblaze B2 SDK License: permissive · Maintenance: active · Downloads: 536.0K/mo ## 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 above — verify before relying. B2SDK is a Python client library for Backblaze B2 Cloud Storage that provides programmatic access to upload, download, list, and manage files and buckets in B2. 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 pip install b2sdk uv add b2sdk poetry add b2sdk ## Installing b2sdk 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. 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') Requires Python 3.10 or later; you must have valid Backblaze B2 credentials (app key ID and app key) to authorize. 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_current - Install friction: low - Maintenance: active - Downloads: 536.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags backblaze b2 cloud storage client, b2 sdk python, cloud storage api wrapper, b2 file upload download, backblaze cloud storage library, object storage python client, b2 bucket management, cloud-storage, backblaze, api-client [View on SkillFed](https://skillfed.io/packages/b2sdk) · [View on PyPI](https://pypi.org/project/b2sdk/)