hippius 0.2.12__tar.gz → 0.2.13__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.
- {hippius-0.2.12 → hippius-0.2.13}/PKG-INFO +1 -1
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/__init__.py +1 -1
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/client.py +7 -1
- {hippius-0.2.12 → hippius-0.2.13}/pyproject.toml +2 -1
- {hippius-0.2.12 → hippius-0.2.13}/README.md +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/cli.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/cli_assets.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/cli_handlers.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/cli_parser.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/cli_rich.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/config.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/errors.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/ipfs.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/ipfs_core.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/substrate.py +0 -0
- {hippius-0.2.12 → hippius-0.2.13}/hippius_sdk/utils.py +0 -0
@@ -160,6 +160,7 @@ class HippiusClient:
|
|
160
160
|
output_path: str,
|
161
161
|
decrypt: Optional[bool] = None,
|
162
162
|
seed_phrase: Optional[str] = None,
|
163
|
+
skip_directory_check: bool = False,
|
163
164
|
) -> Dict[str, Any]:
|
164
165
|
"""
|
165
166
|
Download a file from IPFS with optional decryption.
|
@@ -170,6 +171,7 @@ class HippiusClient:
|
|
170
171
|
output_path: Path where the downloaded file/directory will be saved
|
171
172
|
decrypt: Whether to decrypt the file (overrides default)
|
172
173
|
seed_phrase: Optional seed phrase to use for blockchain interactions (uses config if None)
|
174
|
+
skip_directory_check: don't check if it's a directory.
|
173
175
|
|
174
176
|
Returns:
|
175
177
|
Dict[str, Any]: Dictionary containing download details including:
|
@@ -186,7 +188,11 @@ class HippiusClient:
|
|
186
188
|
ValueError: If decryption is requested but fails
|
187
189
|
"""
|
188
190
|
return await self.ipfs_client.download_file(
|
189
|
-
cid,
|
191
|
+
cid,
|
192
|
+
output_path,
|
193
|
+
_=decrypt,
|
194
|
+
seed_phrase=seed_phrase,
|
195
|
+
skip_directory_check=skip_directory_check,
|
190
196
|
)
|
191
197
|
|
192
198
|
async def cat(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "hippius"
|
3
|
-
version = "0.2.
|
3
|
+
version = "0.2.13"
|
4
4
|
description = "Python SDK and CLI for Hippius blockchain storage"
|
5
5
|
authors = ["Dubs <dubs@dubs.rs>"]
|
6
6
|
readme = "README.md"
|
@@ -42,6 +42,7 @@ hippius-keygen = "hippius_sdk.cli:key_generation_cli"
|
|
42
42
|
[tool.poetry.group.dev.dependencies]
|
43
43
|
pytest = "^7.0.0"
|
44
44
|
pytest-asyncio = "^0.21.0"
|
45
|
+
pytest-timeout = "^2.4.0"
|
45
46
|
black = "^23.0.0"
|
46
47
|
isort = "^5.12.0"
|
47
48
|
mypy = "^1.0.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|