hippius 0.2.11__py3-none-any.whl → 0.2.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hippius
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: Python SDK and CLI for Hippius blockchain storage
5
5
  Home-page: https://github.com/thenervelab/hippius-sdk
6
6
  Author: Dubs
@@ -1,4 +1,4 @@
1
- hippius_sdk/__init__.py,sha256=GqrI5dAReEvrsJOwvG2qIenb6Xi-zwBC_518LAZk-1w,1392
1
+ hippius_sdk/__init__.py,sha256=ZcHAg1Tk-gXHUc-AnplM-bD01IvypNFw-gIQzaanRUg,1392
2
2
  hippius_sdk/cli.py,sha256=pzwoa-X5cwdA_pM-fqUyXZKHgcZODrLe4qHZuCqQMtQ,18210
3
3
  hippius_sdk/cli_assets.py,sha256=V3MX63QTiex6mCp0VDXQJ7cagm5v1s4xtsu8c1O4G_k,371
4
4
  hippius_sdk/cli_handlers.py,sha256=DoIyy1x8DnsXD6vjBsS_20UF_nNUGKnLHMk6HoDwdYU,129087
@@ -7,11 +7,11 @@ hippius_sdk/cli_rich.py,sha256=_jTBYMdHi2--fIVwoeNi-EtkdOb6Zy_O2TUiGvU3O7s,7324
7
7
  hippius_sdk/client.py,sha256=ASMFYd5qH_j-rnC-3Y0FEdlB2xPPvfs9p3SlMUXxGek,19086
8
8
  hippius_sdk/config.py,sha256=wVzhVIBtijatVG7MZ3HvAwdsz_-arkTvBf5NUiQHNTo,21841
9
9
  hippius_sdk/errors.py,sha256=LScJJmawVAx7aRzqqQguYSkf9iazSjEQEBNlD_GXZ6Y,1589
10
- hippius_sdk/ipfs.py,sha256=-X-QGYpbGv0YekMCI-ikux_ZRRAnKEY211i7hwhXUdg,74162
10
+ hippius_sdk/ipfs.py,sha256=r9GWQNp-6IOaVAZvXEtAupa_rru2u_sb8TtXFN5tkc4,74173
11
11
  hippius_sdk/ipfs_core.py,sha256=Wv_nOI2k3YPUVTpOWS98X-955iuMKqH0Fc-t8ZuNLSE,12842
12
12
  hippius_sdk/substrate.py,sha256=lp-GF2qfZgD_XwZwc2UNNkp-AkGUpOiZQ5aJUiea8VA,49608
13
13
  hippius_sdk/utils.py,sha256=rJ611yvwKSyiBpYU3w-SuyQxoghMGU-ePuslrPv5H5g,7388
14
- hippius-0.2.11.dist-info/METADATA,sha256=1V4vQHAPhFeywuvLOv6xBkK8k5xreodjHmIqk3lTn8A,29993
15
- hippius-0.2.11.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
16
- hippius-0.2.11.dist-info/entry_points.txt,sha256=b1lo60zRXmv1ud-c5BC-cJcAfGE5FD4qM_nia6XeQtM,98
17
- hippius-0.2.11.dist-info/RECORD,,
14
+ hippius-0.2.12.dist-info/METADATA,sha256=ZEozvditfm-2TXZT0Wt1qserLr6AdcblagGgVZXjA1o,29993
15
+ hippius-0.2.12.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
16
+ hippius-0.2.12.dist-info/entry_points.txt,sha256=b1lo60zRXmv1ud-c5BC-cJcAfGE5FD4qM_nia6XeQtM,98
17
+ hippius-0.2.12.dist-info/RECORD,,
hippius_sdk/__init__.py CHANGED
@@ -26,7 +26,7 @@ from hippius_sdk.config import (
26
26
  from hippius_sdk.ipfs import IPFSClient
27
27
  from hippius_sdk.utils import format_cid, format_size, hex_to_ipfs_cid
28
28
 
29
- __version__ = "0.2.11"
29
+ __version__ = "0.2.12"
30
30
  __all__ = [
31
31
  "HippiusClient",
32
32
  "IPFSClient",
hippius_sdk/ipfs.py CHANGED
@@ -490,7 +490,7 @@ class IPFSClient:
490
490
  os.makedirs(
491
491
  os.path.dirname(os.path.abspath(output_path)), exist_ok=True
492
492
  )
493
- download_result = await self.client.get(cid, output_path)
493
+ output_path = await self.client.download_directory(cid, output_path)
494
494
  downloaded_size = 0
495
495
 
496
496
  # Walk through the downloaded directory to calculate total size