This commit is contained in:
root committed 2025-09-23 05:34:15 +00:00
1 parent 38e54f0ab2
commit e6153c881a
4 files changed
+465 -68

No files matched your search

+7
View File
@@ -128,3 +128,10 @@ async def repo_stat() -> Dict[str, Any]:
r = await client.post(f"{IPFS_API_URL}/api/v0/repo/stat")
r.raise_for_status()
return r.json()
async def id_info() -> Dict[str, Any]:
async with httpx.AsyncClient(timeout=10) as client:
r = await client.post(f"{IPFS_API_URL}/api/v0/id")
r.raise_for_status()
return r.json()