hippius 0.2.4__py3-none-any.whl → 0.2.6__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.4
3
+ Version: 0.2.6
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
@@ -0,0 +1,17 @@
1
+ hippius_sdk/__init__.py,sha256=n3IvS-VlVHsBq7HFCSgQvFcJ4ZTvs8MNfwrETRM6WBM,1391
2
+ hippius_sdk/cli.py,sha256=lpiokB5wt5nqcGOkvg62NNWr1l4ky9xCM53d14PyGWw,17907
3
+ hippius_sdk/cli_assets.py,sha256=V3MX63QTiex6mCp0VDXQJ7cagm5v1s4xtsu8c1O4G_k,371
4
+ hippius_sdk/cli_handlers.py,sha256=GEjVFKIfXL0MYJiNQSdMovtqv2MheIN9ftq7z4VpPhU,120889
5
+ hippius_sdk/cli_parser.py,sha256=fU4kIeNM4an6FtyVX13-u33MmO70PrNzvmPe2ZtPf-0,19576
6
+ hippius_sdk/cli_rich.py,sha256=_jTBYMdHi2--fIVwoeNi-EtkdOb6Zy_O2TUiGvU3O7s,7324
7
+ hippius_sdk/client.py,sha256=eYURsq_so3WlEt_JY_u7J0iECFVOKDf5vsnGyR9Kngw,16974
8
+ hippius_sdk/config.py,sha256=sCWD2remLa-FodvxC2O45tiNSJD7gzv9idIStX9sF_k,21240
9
+ hippius_sdk/errors.py,sha256=LScJJmawVAx7aRzqqQguYSkf9iazSjEQEBNlD_GXZ6Y,1589
10
+ hippius_sdk/ipfs.py,sha256=xq0y87dyKvbwf52OjEAlqFNrl4Ej1Zp5g2rZa75qfN8,71706
11
+ hippius_sdk/ipfs_core.py,sha256=Lxu2-AWEpE-kiJDcP-cOBEeuboK7i9eNZdjgJWPa4sI,16028
12
+ hippius_sdk/substrate.py,sha256=HqR2-_9njZZ5UCKgiaGr5L5TGQ_wtj7oyA3sA5sGGyE,47525
13
+ hippius_sdk/utils.py,sha256=Ur7P_7iVnXXYvbg7a0aVrdN_8NkVxjhdngn8NzR_zpc,7066
14
+ hippius-0.2.6.dist-info/METADATA,sha256=OnPIZTwaJ-DtBYDYhVjEwGAoC13_0rSgWs7jDLaIAHQ,29992
15
+ hippius-0.2.6.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
16
+ hippius-0.2.6.dist-info/entry_points.txt,sha256=b1lo60zRXmv1ud-c5BC-cJcAfGE5FD4qM_nia6XeQtM,98
17
+ hippius-0.2.6.dist-info/RECORD,,
hippius_sdk/__init__.py CHANGED
@@ -3,19 +3,30 @@ Hippius SDK - Python interface for Hippius blockchain storage
3
3
  """
4
4
 
5
5
  from hippius_sdk.client import HippiusClient
6
- from hippius_sdk.config import (decrypt_seed_phrase, delete_account,
7
- encrypt_seed_phrase, get_account_address,
8
- get_active_account, get_all_config,
9
- get_config_value, get_encryption_key,
10
- get_seed_phrase, initialize_from_env,
11
- list_accounts, load_config, reset_config,
12
- save_config, set_active_account,
13
- set_config_value, set_encryption_key,
14
- set_seed_phrase)
6
+ from hippius_sdk.config import (
7
+ decrypt_seed_phrase,
8
+ delete_account,
9
+ encrypt_seed_phrase,
10
+ get_account_address,
11
+ get_active_account,
12
+ get_all_config,
13
+ get_config_value,
14
+ get_encryption_key,
15
+ get_seed_phrase,
16
+ initialize_from_env,
17
+ list_accounts,
18
+ load_config,
19
+ reset_config,
20
+ save_config,
21
+ set_active_account,
22
+ set_config_value,
23
+ set_encryption_key,
24
+ set_seed_phrase,
25
+ )
15
26
  from hippius_sdk.ipfs import IPFSClient
16
27
  from hippius_sdk.utils import format_cid, format_size, hex_to_ipfs_cid
17
28
 
18
- __version__ = "0.2.4"
29
+ __version__ = "0.2.6"
19
30
  __all__ = [
20
31
  "HippiusClient",
21
32
  "IPFSClient",
hippius_sdk/cli.py CHANGED
@@ -113,6 +113,16 @@ def main():
113
113
  encrypt = True if args.encrypt else (False if args.no_encrypt else None)
114
114
  decrypt = True if args.decrypt else (False if args.no_decrypt else None)
115
115
 
116
+ # For erasure-code specifically, the password may have been requested and cached already
117
+ # We need to preserve it if it was set by handle_erasure_code
118
+ if (
119
+ args.command == "erasure-code"
120
+ and hasattr(client.substrate_client, "_seed_phrase")
121
+ and client.substrate_client._seed_phrase
122
+ ):
123
+ # Password has already been handled by the command handler
124
+ pass
125
+
116
126
  # Handle commands with the helper function
117
127
  if args.command == "download":
118
128
  return run_async_handler(
@@ -142,6 +152,7 @@ def main():
142
152
  args.file_path,
143
153
  miner_ids,
144
154
  encrypt=encrypt,
155
+ publish=not args.no_publish if hasattr(args, "no_publish") else True,
145
156
  )
146
157
 
147
158
  elif args.command == "store-dir":
@@ -151,6 +162,7 @@ def main():
151
162
  args.dir_path,
152
163
  miner_ids,
153
164
  encrypt=encrypt,
165
+ publish=not args.no_publish if hasattr(args, "no_publish") else True,
154
166
  )
155
167
 
156
168
  elif args.command == "credits":