{"id":23712325,"url":"https://github.com/void-ux/aiob2","last_synced_at":"2025-06-10T21:36:22.402Z","repository":{"id":38348093,"uuid":"492332102","full_name":"Void-ux/aiob2","owner":"Void-ux","description":"A modern and Pythonic Backblaze B2 API wrapper","archived":false,"fork":false,"pushed_at":"2024-07-07T12:05:06.000Z","size":21836,"stargazers_count":11,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-08T12:28:22.343Z","etag":null,"topics":["b2","backblaze","cloud","storage"],"latest_commit_sha":null,"homepage":"https://aiob2.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Void-ux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-05-14T21:50:23.000Z","updated_at":"2024-07-08T12:28:22.344Z","dependencies_parsed_at":"2024-02-10T15:38:59.608Z","dependency_job_id":null,"html_url":"https://github.com/Void-ux/aiob2","commit_stats":{"total_commits":161,"total_committers":2,"mean_commits":80.5,"dds":"0.19875776397515532","last_synced_commit":"4cdcbf822c9ceba2e0ec625b1eb94bf10368a3fd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Void-ux%2Faiob2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Void-ux%2Faiob2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Void-ux%2Faiob2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Void-ux%2Faiob2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Void-ux","download_url":"https://codeload.github.com/Void-ux/aiob2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231907790,"owners_count":18444187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["b2","backblaze","cloud","storage"],"created_at":"2024-12-30T19:58:24.416Z","updated_at":"2025-06-10T21:36:22.374Z","avatar_url":"https://github.com/Void-ux.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aiob2\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.python.org/downloads/\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/pyversions/aiob2?style=for-the-badge\" alt=\"Python version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/Void-ux/aiob2/actions\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/Void-ux/aiob2/build.yaml?branch=master\u0026style=for-the-badge\" alt=\"Build status\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/aiob2/\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/v/aiob2?color=8BC34A\u0026style=for-the-badge\" alt=\"PyPi\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/l/aiob2?color=C0C0C0\u0026style=for-the-badge\" alt=\"License\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\naiob2 is an asynchronous API wrapper for the [Backblaze B2 Native API](https://www.backblaze.com/apidocs/introduction-to-the-b2-native-api).\n\nIt will allow you to interact with your B2 bucket and its files in a modern, object-oriented fashion.\n\n**NOTE:** There are API endpoints left to implement, eventually they will be added. To speed up this process you can submit a [pull request](https://github.com/Void-ux/aiob2/pulls) or [suggest it](https://github.com/Void-ux/aiob2/discussions/categories/ideas).\n\n## Installation\n\n---\n\naiob2 is compatible with Python 3.8+. To install aiob2, run the following command in your (virtual) environment.\n\n```shell\npip install aiob2\n```\n\nAlternatively, for the latest though least stable version, you can download it from the GitHub repo:\n\n```shell\npip install git+https://github.com/Void-ux/aiob2.git\n```\n\n## Usage\n\n### Uploading\n\n```python\nimport aiohttp\nimport asyncio\n\nfrom aiob2 import Client\n\n# Our image to upload to our bucket\nwith open(r'C:\\Users\\MS1\\Pictures\\Camera Roll\\IMG_5316.jpeg', 'rb') as file:\n    data = file.read()\n\nasync def main():\n    async with Client('key_id', 'key') as client:\n        file = await client.upload_file(\n            content_bytes=data,\n            file_name='test.jpg',\n            bucket_id='bucket_id',\n        )\n\n\nif __name__ == '__main__':\n    asyncio.run(main())\n```\n\nAnd that's it! `upload_file()` returns a `File` object that neatly wraps everything Backblaze's API has provided us with.\nThe `File` object's documentation can be found [here](https://aiob2.readthedocs.io/en/latest/pages/api.html#aiob2.File)\n\n## License\n\nThis project is released under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoid-ux%2Faiob2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoid-ux%2Faiob2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoid-ux%2Faiob2/lists"}