This repository contains a client library and a few handy utilities. They provide access to all capabilities of B2 Cloud Storage.
B2 command-line tool uses the library to provide command-line access to the B2 service. Other applications can include FUSE filesystems and storage backend drivers for backup applications.
The latest documentation is available on Read the Docs.
You can install the SDK with:
pip install b2sdk
To install with all optional dependencies:
pip install 'b2sdk[full]'
b2sdk follows Semantic Versioning policy, so in essence the version number is MAJOR.MINOR.PATCH (for example 1.2.3) and:
- we increase MAJOR version when we make incompatible API changes
- we increase MINOR version when we add functionality in a backwards-compatible manner, and
- we increase PATCH version when we make backwards-compatible bug fixes (unless someone relies on the undocumented behavior of a fixed bug)
When you add b2sdk as a dependency, choose a version range that matches your code. For example, you can put this in your requirements.txt to select a compatible b2sdk version from pypi:
b2sdk>=2,<3
Please refer to the changelog.
- b2-mcp — a Model Context Protocol server for B2.
Please see our contributing guidelines. The testing guide and the writing style guide describe how to test changes and write documentation. llms.txt lists the user documentation.