hippius 0.1.13__py3-none-any.whl → 0.1.14__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.1.13
3
+ Version: 0.1.14
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,10 @@
1
+ hippius_sdk/__init__.py,sha256=SXQFoeDEMtZcPbH4tCoLPtYrbo6gmsiUHm45gAkeFKY,1261
2
+ hippius_sdk/cli.py,sha256=ARWZmeWpv6UEHUx71K4LngBUSWQosDQARHWor1dWzhQ,74100
3
+ hippius_sdk/client.py,sha256=dIrjaXl2J71_ljhu_nFS-gTOmKDRPzJDXeviBSOAeis,14894
4
+ hippius_sdk/config.py,sha256=nLDmZft5hR_mD_NrmnnfMwfWRCsp2uQi2f1mTWu-fC4,22870
5
+ hippius_sdk/ipfs.py,sha256=kMqmtyvdjzo1JlXTdLYA74zAmZocDAOsW9cmzwG6ejg,63959
6
+ hippius_sdk/substrate.py,sha256=ghvZSQvTaOhbUzRGkeG7jD47b7oW7cSqcghbgCog5gE,33096
7
+ hippius-0.1.14.dist-info/METADATA,sha256=6a7zaPYieHFRjvrYvJc8Ouj36q_d2_iWB7d2F-T0KBk,28001
8
+ hippius-0.1.14.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
9
+ hippius-0.1.14.dist-info/entry_points.txt,sha256=b1lo60zRXmv1ud-c5BC-cJcAfGE5FD4qM_nia6XeQtM,98
10
+ hippius-0.1.14.dist-info/RECORD,,
hippius_sdk/__init__.py CHANGED
@@ -25,7 +25,7 @@ from hippius_sdk.config import (
25
25
  )
26
26
  from hippius_sdk.ipfs import IPFSClient
27
27
 
28
- __version__ = "0.1.13"
28
+ __version__ = "0.1.14"
29
29
  __all__ = [
30
30
  "HippiusClient",
31
31
  "IPFSClient",
hippius_sdk/cli.py CHANGED
@@ -522,10 +522,10 @@ def handle_files(client, account_address, show_all_miners=False):
522
522
  if "size_formatted" in file and file["size_formatted"] is not None:
523
523
  size_formatted = file["size_formatted"]
524
524
  file_size = file.get("file_size", 0)
525
- if file_size is not None:
525
+ if file_size is not None and file_size > 0:
526
526
  print(f" File size: {file_size:,} bytes ({size_formatted})")
527
527
  else:
528
- print(f" File size: Unknown")
528
+ print(f" File size: {size_formatted}")
529
529
  else:
530
530
  print(f" File size: Unknown")
531
531
 
hippius_sdk/substrate.py CHANGED
@@ -761,6 +761,7 @@ class SubstrateClient:
761
761
  file.get("size")
762
762
  or file.get("fileSize")
763
763
  or file.get("file_size")
764
+ or file.get("file_size_in_bytes")
764
765
  or 0
765
766
  )
766
767
 
@@ -772,7 +773,7 @@ class SubstrateClient:
772
773
  "miner_ids", []
773
774
  ), # Try to get miners if available
774
775
  "miner_count": len(file.get("miner_ids", [])), # Count the miners
775
- "file_size": file_size,
776
+ "file_size": file_size or 0,
776
777
  }
777
778
 
778
779
  # Add formatted file size if available
@@ -1,10 +0,0 @@
1
- hippius_sdk/__init__.py,sha256=pEVObrzsEpX0iJhtAEmzY832jVEr7wVPqoxaSwsE3BM,1261
2
- hippius_sdk/cli.py,sha256=thTRIjKNoCiKaxH1P2UukVvH8r3zR6PDaYEk9ROHiAA,74073
3
- hippius_sdk/client.py,sha256=dIrjaXl2J71_ljhu_nFS-gTOmKDRPzJDXeviBSOAeis,14894
4
- hippius_sdk/config.py,sha256=nLDmZft5hR_mD_NrmnnfMwfWRCsp2uQi2f1mTWu-fC4,22870
5
- hippius_sdk/ipfs.py,sha256=kMqmtyvdjzo1JlXTdLYA74zAmZocDAOsW9cmzwG6ejg,63959
6
- hippius_sdk/substrate.py,sha256=hyPCjLCTuBTWqHvU8eMowpThsIJYUrvX4yepIs3NcZk,33037
7
- hippius-0.1.13.dist-info/METADATA,sha256=Brw4f-3IFqK85YePwvAWWEbKmgxd3RcOOrGpsJcE8I4,28001
8
- hippius-0.1.13.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
9
- hippius-0.1.13.dist-info/entry_points.txt,sha256=b1lo60zRXmv1ud-c5BC-cJcAfGE5FD4qM_nia6XeQtM,98
10
- hippius-0.1.13.dist-info/RECORD,,