Catalog PyPI
Back to packageRELEASE DETAILS

0.9.1

PyPI

aiob2

A simple and easy to use async wrapper for Backblaze's B2 bucket API.

b2backblazecloudstorage
Published10 May 2025
Direct dependencies3
Transitive dependenciesNot calculated

README

Version 0.9.1 documentation

aiob2

Python version Build status PyPi License

aiob2 is an asynchronous API wrapper for the Backblaze B2 Native API.

It will allow you to interact with your B2 bucket and its files in a modern, object-oriented fashion.

NOTE: There are API endpoints left to implement, eventually they will be added. To speed up this process you can submit a pull request or suggest it.

Installation


aiob2 is compatible with Python 3.8+. To install aiob2, run the following command in your (virtual) environment.

pip install aiob2

Alternatively, for the latest though least stable version, you can download it from the GitHub repo:

pip install git+https://github.com/Void-ux/aiob2.git

Usage

Uploading

import aiohttp
import asyncio

from aiob2 import Client

# Our image to upload to our bucket
with open(r'C:\Users\MS1\Pictures\Camera Roll\IMG_5316.jpeg', 'rb') as file:
    data = file.read()

async def main():
    async with Client('key_id', 'key') as client:
        file = await client.upload_file(
            content_bytes=data,
            file_name='test.jpg',
            bucket_id='bucket_id',
        )


if __name__ == '__main__':
    asyncio.run(main())

And that's it! upload_file() returns a File object that neatly wraps everything Backblaze's API has provided us with. The File object's documentation can be found here

License

This project is released under the MIT License.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
aiohttp
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "<4.0,>=3.8",
  "evaluation": "NOT_EVALUATED"
}
aiohttp<4.0.0,>=3.8.1runtime
typing-extensions
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "<4.0,>=3.8",
  "evaluation": "NOT_EVALUATED"
}
typing-extensions<5.0.0,>=4.4.0runtime
aiofiles
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "<4.0,>=3.8",
  "evaluation": "NOT_EVALUATED"
}
aiofiles<25.0.0,>=24.1.0runtime

Distribution files

2 collected
aiob2-0.9.1-py3-none-any.whl

bdist_wheel · 24.27 KB · Python py3

Source file
aiob2-0.9.1.tar.gz

sdist · 20.74 KB · Python source

Source file

Repository

PENDING
void-ux/aiob2

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:38 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:25fc96de1e2a6dc1261ba0cba55441d26453e0e169744dc87c7e83c993655aaa

Other collected versions

View all collected versions →