{"id":15417581,"url":"https://github.com/kralverde/py-ipfs-car-decoder","last_synced_at":"2026-04-11T12:38:19.296Z","repository":{"id":202638721,"uuid":"705389304","full_name":"kralverde/py-ipfs-car-decoder","owner":"kralverde","description":"A way to decode IPFS CAR blocks in python and save them to disk or stream file-likes.","archived":false,"fork":false,"pushed_at":"2024-02-16T19:30:09.000Z","size":24,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T21:59:29.084Z","etag":null,"topics":["async","car","ipfs","ipld","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kralverde.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-10-15T21:52:24.000Z","updated_at":"2024-04-22T14:29:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"36795a27-e148-42e5-a3d7-fc850fba7512","html_url":"https://github.com/kralverde/py-ipfs-car-decoder","commit_stats":null,"previous_names":["kralverde/py-ipfs-car-decoder"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kralverde/py-ipfs-car-decoder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kralverde%2Fpy-ipfs-car-decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kralverde%2Fpy-ipfs-car-decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kralverde%2Fpy-ipfs-car-decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kralverde%2Fpy-ipfs-car-decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kralverde","download_url":"https://codeload.github.com/kralverde/py-ipfs-car-decoder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kralverde%2Fpy-ipfs-car-decoder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265910223,"owners_count":23847520,"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":["async","car","ipfs","ipld","python","python3"],"created_at":"2024-10-01T17:16:18.011Z","updated_at":"2026-04-11T12:38:14.269Z","avatar_url":"https://github.com/kralverde.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Validate what an IPFS gateway returns by decoding and validating the CAR block.\n\nUsage\n-----\n\nCARs can be read from memory or file and can be exported as a file/folder or byte stream\n\n\u003e\u003e\u003e import asyncio\n\u003e\u003e\u003e import aiohttp\n...\n\u003e\u003e\u003e from ipfs_car_decoder import ChunkedMemoryByteStream, stream_bytes\n...\n\u003e\u003e\u003e ipfs_hash = 'bafkreibm6jg3ux5qumhcn2b3flc3tyu6dmlb4xa7u5bf44yegnrjhc4yeq'\n...\n\u003e\u003e\u003e async def test():\n...     stream = ChunkedMemoryByteStream()\n...     async with aiohttp.ClientSession() as session:\n...         async with session.get(f'https://ipfs.io/ipfs/{ipfs_hash}', headers={'Accept':'application/vnd.ipld.car'}) as resp:\n...             resp.raise_for_status()\n...             assert resp.content_type == 'application/vnd.ipld.car'\n...             async for chunk, _ in resp.content.iter_chunks():\n...                 await stream.append_bytes(chunk)\n...     await stream.mark_complete()\n...     acc = b''\n...     async for chunk in stream_bytes(ipfs_hash, stream):\n...         acc += chunk\n...     print(acc)\n...\n\u003e\u003e\u003e asyncio.run(test())\nb'hello'\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkralverde%2Fpy-ipfs-car-decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkralverde%2Fpy-ipfs-car-decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkralverde%2Fpy-ipfs-car-decoder/lists"}