hippius 0.2.14__tar.gz → 0.2.15__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hippius
3
- Version: 0.2.14
3
+ Version: 0.2.15
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
27
27
  from hippius_sdk.utils import format_cid, format_size, hex_to_ipfs_cid
28
28
 
29
- __version__ = "0.2.14"
29
+ __version__ = "0.2.15"
30
30
  __all__ = [
31
31
  "HippiusClient",
32
32
  "IPFSClient",
@@ -145,7 +145,7 @@ def main():
145
145
  decrypt=decrypt,
146
146
  )
147
147
 
148
- elif args.command == "store":
148
+ elif args.command == "store" or args.command == "add":
149
149
  return run_async_handler(
150
150
  cli_handlers.handle_store,
151
151
  client,
@@ -34,6 +34,9 @@ examples:
34
34
  # Store a file
35
35
  hippius store example.txt
36
36
 
37
+ # Add a file (alias for store)
38
+ hippius add example.txt
39
+
37
40
  # Store a directory
38
41
  hippius store-dir ./my_directory
39
42
 
@@ -214,6 +217,22 @@ def add_storage_commands(subparsers):
214
217
  help="Don't publish file to IPFS or store on the blockchain (local only)",
215
218
  )
216
219
 
220
+ # Add command (alias for store)
221
+ add_parser = subparsers.add_parser(
222
+ "add", help="Upload a file to IPFS and store it on Substrate (alias for 'store')"
223
+ )
224
+ add_parser.add_argument("file_path", help="Path to file to upload")
225
+ add_parser.add_argument(
226
+ "--publish",
227
+ action="store_true",
228
+ help="Publish file to IPFS and store on the blockchain (default)",
229
+ )
230
+ add_parser.add_argument(
231
+ "--no-publish",
232
+ action="store_true",
233
+ help="Don't publish file to IPFS or store on the blockchain (local only)",
234
+ )
235
+
217
236
  # Store directory command
218
237
  store_dir_parser = subparsers.add_parser(
219
238
  "store-dir", help="Upload a directory to IPFS and store all files on Substrate"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "hippius"
3
- version = "0.2.14"
3
+ version = "0.2.15"
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