hippius 0.1.11__py3-none-any.whl → 0.1.12__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.
|
3
|
+
Version: 0.1.12
|
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
|
@@ -46,6 +46,10 @@ A Python SDK and CLI for interacting with Hippius blockchain storage, designed s
|
|
46
46
|
## Installation
|
47
47
|
|
48
48
|
```bash
|
49
|
+
|
50
|
+
# Using pipx
|
51
|
+
pipx install hippius
|
52
|
+
|
49
53
|
# Using pip
|
50
54
|
pip install hippius
|
51
55
|
|
@@ -360,12 +364,51 @@ hippius erasure-code-dir my_important_files/ --k 4 --m 8 --encrypt
|
|
360
364
|
|
361
365
|
This dedicated command processes each file in the directory individually, optimizing erasure coding parameters for each file based on its size.
|
362
366
|
|
367
|
+
**Important Note on Directory Structure:**
|
368
|
+
- The command processes all files in the entire directory hierarchy, including all subdirectories
|
369
|
+
- Each file is processed independently and gets its own separate metadata CID
|
370
|
+
- The original directory structure is not automatically preserved for reconstruction
|
371
|
+
- You will need to reconstruct each file individually using its specific metadata CID
|
372
|
+
|
373
|
+
If preserving the exact directory structure is important, consider these options:
|
374
|
+
1. Archive the directory first (option 1 above), then erasure code the single archive file
|
375
|
+
2. Keep track of the original file paths relative to the root directory in your own system
|
376
|
+
3. For small directories with few files, reconstruct each file individually and manually recreate the structure
|
377
|
+
|
363
378
|
To reconstruct a file from erasure-coded chunks:
|
364
379
|
|
365
380
|
```bash
|
366
381
|
hippius reconstruct QmMetadataCID reconstructed_filename
|
367
382
|
```
|
368
383
|
|
384
|
+
**Integration with Other Features:**
|
385
|
+
The directory erasure coding functionality works seamlessly with other Hippius SDK features:
|
386
|
+
|
387
|
+
- **Account Management**: Use with multiple coldkeys and hotkeys by specifying the account with `--account`
|
388
|
+
- **Default Address**: Combined with default address management for streamlined operations
|
389
|
+
- **Proxy Support**: Hotkeys with proper permissions can perform erasure coding operations on behalf of a coldkey
|
390
|
+
- **Configuration Management**: All erasure coding parameters can be preset in your config file with `hippius config set`
|
391
|
+
|
392
|
+
For a comprehensive workflow, you can manage accounts, set default addresses, configure erasure coding parameters, and then process directories in a single sequence of commands:
|
393
|
+
|
394
|
+
```bash
|
395
|
+
# Set active account
|
396
|
+
hippius account switch my_account_name
|
397
|
+
|
398
|
+
# Set default address for operations
|
399
|
+
hippius address set-default 5H1QBRF7T7dgKwzVGCgS4wioudvMRf9K4NEDzfuKLnuyBNzH
|
400
|
+
|
401
|
+
# Configure default erasure coding parameters
|
402
|
+
hippius config set erasure_coding default_k 4
|
403
|
+
hippius config set erasure_coding default_m 8
|
404
|
+
|
405
|
+
# Apply erasure coding to a directory
|
406
|
+
hippius erasure-code-dir my_important_directory/
|
407
|
+
|
408
|
+
# Check the status of erasure-coded files
|
409
|
+
hippius ec-files
|
410
|
+
```
|
411
|
+
|
369
412
|
#### Default Address Management
|
370
413
|
|
371
414
|
Hippius SDK now allows setting a default address for read-only operations, making it easier to use commands like `files` and `ec-files` without specifying an account address each time:
|
@@ -6,7 +6,7 @@ hippius_sdk/config.py,sha256=wrVU0599aH39NIVRL59pZPyHXRevATQR9zwIUkCaWFE,25389
|
|
6
6
|
hippius_sdk/ipfs.py,sha256=9fds5MJwVb7t8IqROM70x9fWgyk9_Ot5psat_hMnRN8,63969
|
7
7
|
hippius_sdk/substrate.py,sha256=V49s1VYbl94Wk8-IH8DQsXLmRsAShGhIX9aYSY0BkBk,33034
|
8
8
|
hippius_sdk/utils.py,sha256=FSdVhYuCsKRNZiN9-XdzN2HESHXAVcWEpOpb3CLmVPI,2192
|
9
|
-
hippius-0.1.
|
10
|
-
hippius-0.1.
|
11
|
-
hippius-0.1.
|
12
|
-
hippius-0.1.
|
9
|
+
hippius-0.1.12.dist-info/METADATA,sha256=dxf7hKQSATr-lBJQ5CW7YYB8IEh-DYWZ7IPA7U5zZwY,33761
|
10
|
+
hippius-0.1.12.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
11
|
+
hippius-0.1.12.dist-info/entry_points.txt,sha256=b1lo60zRXmv1ud-c5BC-cJcAfGE5FD4qM_nia6XeQtM,98
|
12
|
+
hippius-0.1.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|