# B2 Python SDK

> The B2 Python SDK provides Python interfaces for the Backblaze B2 Native API.

## Start here

- [README](https://github.com/Backblaze/b2-sdk-python/blob/master/README.md): Overview and entry points.
- [Install](https://b2-sdk-python.readthedocs.io/en/master/install.html): Install the SDK.
- [Quick start](https://b2-sdk-python.readthedocs.io/en/master/quick_start.html): Start using the SDK.
- [Tutorial](https://b2-sdk-python.readthedocs.io/en/master/tutorial.html): Follow a walkthrough.
- [Migrating from v2 to v3](https://b2-sdk-python.readthedocs.io/en/master/migrating.html): Update code from `b2sdk.v2` to `b2sdk.v3`.

## Guides

- [Advanced usage](https://b2-sdk-python.readthedocs.io/en/master/advanced.html): Explore advanced SDK usage.
- [Errors and retries](https://b2-sdk-python.readthedocs.io/en/master/errors_and_retries.html): Catch SDK errors and understand automatic retry behavior.
- [Replication](https://github.com/Backblaze/b2-sdk-python/blob/master/doc/source/replication.rst): Configure replication.
- [Server-side encryption](https://b2-sdk-python.readthedocs.io/en/master/server_side_encryption.html): Use server-side encryption.
- [Account info and authorization](https://b2-sdk-python.readthedocs.io/en/master/account_info.html): Choose a store and authorize an account.
- [API compatibility](https://b2-sdk-python.readthedocs.io/en/master/api_types.html): Check what can change inside one interface version.
- [Glossary](https://b2-sdk-python.readthedocs.io/en/master/glossary.html): Look up B2 and SDK terms.

## API reference

- [B2Api](https://b2-sdk-python.readthedocs.io/en/master/api/api.html): Work with the B2 API.
- [Bucket](https://b2-sdk-python.readthedocs.io/en/master/api/bucket.html): Work with buckets and files.
- [Exceptions](https://b2-sdk-python.readthedocs.io/en/master/api/exception.html): Inspect SDK exceptions.
- [Raw simulator](https://b2-sdk-python.readthedocs.io/en/master/api/internal/raw_simulator.html): Explore the internal B2 simulator.

## Contributing and testing

- [Testing guide](https://github.com/Backblaze/b2-sdk-python/blob/master/docs/testing.md): Choose a test level and check what it proves.
- [Writing style](https://github.com/Backblaze/b2-sdk-python/blob/master/docs/writing-style.md): Write or edit documentation and docstrings.
- [Contributing](https://github.com/Backblaze/b2-sdk-python/blob/master/CONTRIBUTING.md): Find contribution and testing guidance.
- [Contributor instructions](https://github.com/Backblaze/b2-sdk-python/blob/master/AGENTS.md): Find commands, conventions and recurring review findings.

## Optional

- [b2-mcp](https://github.com/backblaze-labs/b2-mcp): a Model Context Protocol server for B2.
- [Changelog](https://github.com/Backblaze/b2-sdk-python/blob/master/CHANGELOG.md): Review release changes.
- [Security](https://github.com/Backblaze/b2-sdk-python/blob/master/SECURITY.md): Report security concerns.
- [Release process](https://github.com/Backblaze/b2-sdk-python/blob/master/README.release.md): Review release procedures.
