hippius 0.2.45__tar.gz → 0.2.47__tar.gz

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.
Files changed (23) hide show
  1. {hippius-0.2.45 → hippius-0.2.47}/PKG-INFO +1 -1
  2. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/__init__.py +1 -1
  3. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/ipfs.py +1 -1
  4. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/key_storage.py +9 -1
  5. {hippius-0.2.45 → hippius-0.2.47}/pyproject.toml +1 -1
  6. {hippius-0.2.45 → hippius-0.2.47}/README.md +0 -0
  7. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/cli.py +0 -0
  8. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/cli_assets.py +0 -0
  9. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/cli_handlers.py +0 -0
  10. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/cli_parser.py +0 -0
  11. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/cli_rich.py +0 -0
  12. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/client.py +0 -0
  13. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/config.py +0 -0
  14. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/db/README.md +0 -0
  15. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/db/env.db.template +0 -0
  16. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/db/migrations/20241201000001_create_key_storage_tables.sql +0 -0
  17. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/db/migrations/20241202000001_switch_to_subaccount_encryption.sql +0 -0
  18. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/db/setup_database.sh +0 -0
  19. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/db_utils.py +0 -0
  20. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/errors.py +0 -0
  21. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/ipfs_core.py +0 -0
  22. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/substrate.py +0 -0
  23. {hippius-0.2.45 → hippius-0.2.47}/hippius_sdk/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hippius
3
- Version: 0.2.45
3
+ Version: 0.2.47
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
@@ -26,7 +26,7 @@ from hippius_sdk.config import (
26
26
  from hippius_sdk.ipfs import IPFSClient, S3PublishResult, S3DownloadResult
27
27
  from hippius_sdk.utils import format_cid, format_size, hex_to_ipfs_cid
28
28
 
29
- __version__ = "0.2.45"
29
+ __version__ = "0.2.47"
30
30
  __all__ = [
31
31
  "HippiusClient",
32
32
  "IPFSClient",
@@ -2118,7 +2118,7 @@ class IPFSClient:
2118
2118
  # but hey let's not risk it
2119
2119
  for o in objects:
2120
2120
  if o["Name"] == file_name:
2121
- cid = o[0]["Hash"]
2121
+ cid = o["Hash"]
2122
2122
  break
2123
2123
  else:
2124
2124
  raise KeyError(
@@ -19,6 +19,10 @@ try:
19
19
  except ImportError:
20
20
  ASYNCPG_AVAILABLE = False
21
21
 
22
+ import logging
23
+
24
+ logger = logging.getLogger()
25
+
22
26
 
23
27
  class KeyStorageError(Exception):
24
28
  """Base exception for key storage operations."""
@@ -202,7 +206,9 @@ def is_key_storage_enabled() -> bool:
202
206
  """
203
207
  # Check if explicitly disabled
204
208
  config_value = get_config_value("key_storage", "enabled", None)
205
- if config_value is False:
209
+
210
+ logger.info(f"encryption config.key_storage {config_value=}")
211
+ if not config_value:
206
212
  return False
207
213
 
208
214
  # If explicitly enabled, return True
@@ -211,6 +217,8 @@ def is_key_storage_enabled() -> bool:
211
217
 
212
218
  # If not set in config, auto-detect based on asyncpg availability
213
219
  # This allows users who install [key_storage] extra to use it without manual config
220
+ logger.info(f"db orm available {ASYNCPG_AVAILABLE=}")
221
+
214
222
  return ASYNCPG_AVAILABLE
215
223
 
216
224
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "hippius"
3
- version = "0.2.45"
3
+ version = "0.2.47"
4
4
  description = "Python SDK and CLI for Hippius blockchain storage"
5
5
  authors = ["Dubs <dubs@dubs.rs>"]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes