{"id":21290030,"url":"https://github.com/mtingers/backblaze-b2","last_synced_at":"2025-10-24T16:15:38.133Z","repository":{"id":145403291,"uuid":"48252825","full_name":"mtingers/backblaze-b2","owner":"mtingers","description":"Python module for accessing the Backblaze B2 API","archived":false,"fork":false,"pushed_at":"2018-08-10T17:06:04.000Z","size":41,"stargazers_count":39,"open_issues_count":3,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-06T04:41:18.533Z","etag":null,"topics":["backblaze","backblaze-api","backblaze-b2","backblaze-storage-service"],"latest_commit_sha":null,"homepage":null,"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/mtingers.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,"publiccode":null,"codemeta":null}},"created_at":"2015-12-18T19:32:52.000Z","updated_at":"2024-11-05T14:39:50.000Z","dependencies_parsed_at":"2023-04-22T23:41:19.681Z","dependency_job_id":null,"html_url":"https://github.com/mtingers/backblaze-b2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtingers/backblaze-b2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtingers%2Fbackblaze-b2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtingers%2Fbackblaze-b2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtingers%2Fbackblaze-b2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtingers%2Fbackblaze-b2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtingers","download_url":"https://codeload.github.com/mtingers/backblaze-b2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtingers%2Fbackblaze-b2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833280,"owners_count":23670617,"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":["backblaze","backblaze-api","backblaze-b2","backblaze-storage-service"],"created_at":"2024-11-21T12:44:31.304Z","updated_at":"2025-10-24T16:15:33.098Z","avatar_url":"https://github.com/mtingers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"backblaze-b2\n============\nPython module for accessing the Backblaze B2 API\n\n\nExamples\n-----\n    from backblazeb2 import BackBlazeB2\n    b2 = BackBlazeB2(account_id, app_key)\n\n    # Upload an entire directory concurrently, encrypt with a password\n    b2.recursive_upload('/path/to/foobar', bucket_name='my-bucket', multithread=True, password='p@ssW0rdz')\n\n    # Upload a single file without a password\n    b2.upload_file('/path/to/file.txt', bucket_name='baz')\n\n    # Upload a single file, password encrypted, then download \u0026 decrypt\n    b2.upload_file('/path/to/secrets.txt', bucket_name='baz', password='supersecret')\n    response = b2.download_file_by_name('/path/to/myfile.txt', 'savedfile.txt', password='supersecret')\n\n    # List all of your buckets\n    buckets = b2.list_buckets()\n\n    # Create a bucket\n    response = b2.create_bucket('new-bucket', bucket_type='allPrivate')\n\n    # Download a file by name\n    response = b2.download_file_by_name('/path/to/myfile.txt', 'savedfile.txt')\n\n    # Authorize download for a private file\n    bucket_id = \"\" # Id of bucket which you want authorize download file\n    bucket_name = \"\" # Verbose name of bucket\n    file_name_prefix = \"\"\n    url_authorized_download = b2.get_download_authorization(\n        bucket_id=bucket_id, bucket_name=bucket_name,\n        file_name_prefix=file_name_prefix)\n    # The response some looks like this:\n    # https://f345.backblazeb2.com/file/photos/cute/kitten.jpg?Authorization=3_20160803004041_53982a92f631a8c7303e3266_d940c7f5ee17cd1de3758aaacf1024188bc0cd0b_000_20160804004041_0006_dnld\n\n    # Download with authorized url\n    b2.download_file_with_authorized_url(url_authorized_download, 'file_name.log')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtingers%2Fbackblaze-b2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtingers%2Fbackblaze-b2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtingers%2Fbackblaze-b2/lists"}