hippius 0.2.24__py3-none-any.whl → 0.2.25__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.
- {hippius-0.2.24.dist-info → hippius-0.2.25.dist-info}/METADATA +1 -1
- {hippius-0.2.24.dist-info → hippius-0.2.25.dist-info}/RECORD +7 -7
- hippius_sdk/__init__.py +1 -1
- hippius_sdk/client.py +3 -1
- hippius_sdk/ipfs.py +3 -1
- {hippius-0.2.24.dist-info → hippius-0.2.25.dist-info}/WHEEL +0 -0
- {hippius-0.2.24.dist-info → hippius-0.2.25.dist-info}/entry_points.txt +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
hippius_sdk/__init__.py,sha256=
|
1
|
+
hippius_sdk/__init__.py,sha256=MFk7nPNG_uETVQXBkQ6NKW4A-TXZHOPRvlfiYSEPdRg,1474
|
2
2
|
hippius_sdk/cli.py,sha256=aqKOYSBSWt7UhcpFt7wf9yIPJ3bznpsJ6ehOnuZ4usI,18235
|
3
3
|
hippius_sdk/cli_assets.py,sha256=V3MX63QTiex6mCp0VDXQJ7cagm5v1s4xtsu8c1O4G_k,371
|
4
4
|
hippius_sdk/cli_handlers.py,sha256=TQNE9os87gRzRKLEO-SIwhFnBtEFMiaSESv-Bu7omfo,128909
|
5
5
|
hippius_sdk/cli_parser.py,sha256=z7UvgWvvy04ey-R56qZiCqYc_9RaNq1rVDkQyXoK3JU,21100
|
6
6
|
hippius_sdk/cli_rich.py,sha256=_jTBYMdHi2--fIVwoeNi-EtkdOb6Zy_O2TUiGvU3O7s,7324
|
7
|
-
hippius_sdk/client.py,sha256=
|
7
|
+
hippius_sdk/client.py,sha256=w470cLv91DodgoRbjemhEIok70RTTLKSmmqHf94xFTs,22445
|
8
8
|
hippius_sdk/config.py,sha256=Hf_aUYzG9ylzqauA_ABUSSB5mBTYbp-VtB36VQt2XDw,21981
|
9
9
|
hippius_sdk/db/README.md,sha256=okDeI1qgkaZqXSlJ8L0xIE4UpuxO-qEGPIbXUvSHQjU,2030
|
10
10
|
hippius_sdk/db/env.db.template,sha256=_6hEC3IvkzCDOAzG1_yJUKRUfCTMciNaJUicZpMCat4,217
|
@@ -12,12 +12,12 @@ hippius_sdk/db/migrations/20241201000001_create_key_storage_tables.sql,sha256=mi
|
|
12
12
|
hippius_sdk/db/setup_database.sh,sha256=bDeIiTnMuX0AYCdefAfEI1CyXho6A6kLzufsDZFSXpE,3118
|
13
13
|
hippius_sdk/db_utils.py,sha256=-x0rbN0as7Tn3PJPZBYCgreZe52FLH40ppA1TLxsg90,1851
|
14
14
|
hippius_sdk/errors.py,sha256=LScJJmawVAx7aRzqqQguYSkf9iazSjEQEBNlD_GXZ6Y,1589
|
15
|
-
hippius_sdk/ipfs.py,sha256=
|
15
|
+
hippius_sdk/ipfs.py,sha256=8OLkBkNV7zEKqrtokAwrvD842qXt8qgFMIc03h_sdN0,94610
|
16
16
|
hippius_sdk/ipfs_core.py,sha256=eOOgLoyP9mvwndnCjldnTc7z94ImYCXY3nm7JU3e_Mo,12676
|
17
17
|
hippius_sdk/key_storage.py,sha256=oxfRRQXu8XVncUjhKJJ8rsc81JAkaj9MqZEwQa96idc,9474
|
18
18
|
hippius_sdk/substrate.py,sha256=-lIavQkfE6Kw2KzllH9IMgNkzl2d6vEmU3RmwKNJQvc,48093
|
19
19
|
hippius_sdk/utils.py,sha256=rJ611yvwKSyiBpYU3w-SuyQxoghMGU-ePuslrPv5H5g,7388
|
20
|
-
hippius-0.2.
|
21
|
-
hippius-0.2.
|
22
|
-
hippius-0.2.
|
23
|
-
hippius-0.2.
|
20
|
+
hippius-0.2.25.dist-info/METADATA,sha256=EwVtBbbvgLEv4mpeyUJjXmM_fiYTACyHbDdiZ_zmOlE,30088
|
21
|
+
hippius-0.2.25.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
22
|
+
hippius-0.2.25.dist-info/entry_points.txt,sha256=bFAZjW3vndretf9-8s587jA2ebMVI7puhn_lVs8jPc8,149
|
23
|
+
hippius-0.2.25.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, S3PublishResult, S3DownloadResult
|
27
27
|
from hippius_sdk.utils import format_cid, format_size, hex_to_ipfs_cid
|
28
28
|
|
29
|
-
__version__ = "0.2.
|
29
|
+
__version__ = "0.2.25"
|
30
30
|
__all__ = [
|
31
31
|
"HippiusClient",
|
32
32
|
"IPFSClient",
|
hippius_sdk/client.py
CHANGED
@@ -518,6 +518,7 @@ class HippiusClient:
|
|
518
518
|
seed_phrase: str,
|
519
519
|
store_node: str = "http://localhost:5001",
|
520
520
|
pin_node: str = "https://store.hippius.network",
|
521
|
+
substrate_url: str = "wss://rpc.hippius.network",
|
521
522
|
) -> S3PublishResult:
|
522
523
|
"""
|
523
524
|
Publish a file to IPFS and the Hippius marketplace in one operation.
|
@@ -532,6 +533,7 @@ class HippiusClient:
|
|
532
533
|
seed_phrase: Seed phrase for blockchain transaction signing
|
533
534
|
store_node: IPFS node URL for initial upload (default: local node)
|
534
535
|
pin_node: IPFS node URL for backup pinning (default: remote service)
|
536
|
+
substrate_url: substrate url to use for the storage request.
|
535
537
|
|
536
538
|
Returns:
|
537
539
|
S3PublishResult: Object containing CID, file info, and transaction hash
|
@@ -543,7 +545,7 @@ class HippiusClient:
|
|
543
545
|
ValueError: If encryption is requested but not available
|
544
546
|
"""
|
545
547
|
return await self.ipfs_client.s3_publish(
|
546
|
-
file_path, encrypt, seed_phrase, store_node, pin_node
|
548
|
+
file_path, encrypt, seed_phrase, store_node, pin_node, substrate_url,
|
547
549
|
)
|
548
550
|
|
549
551
|
async def s3_download(
|
hippius_sdk/ipfs.py
CHANGED
@@ -2070,7 +2070,9 @@ class IPFSClient:
|
|
2070
2070
|
# Publish to substrate marketplace
|
2071
2071
|
try:
|
2072
2072
|
# Pass the seed phrase directly to avoid password prompts for encrypted config
|
2073
|
-
substrate_client = SubstrateClient(
|
2073
|
+
substrate_client = SubstrateClient(
|
2074
|
+
seed_phrase=seed_phrase, url=substrate_url
|
2075
|
+
)
|
2074
2076
|
logger.info(
|
2075
2077
|
f"Submitting storage request to substrate for file: {filename}, CID: {cid}"
|
2076
2078
|
)
|
File without changes
|
File without changes
|