@@ -43,7 +43,7 @@ async def fetch_aggregate(self, address: str, key: str) -> Dict[str, Dict]:
43
43
:param address: Address of the owner of the aggregate
44
44
:param key: Key of the aggregate
45
45
"""
46
- pass
46
+ raise NotImplementedError ( "Did you mean to import `AlephHttpClient`?" )
47
47
48
48
@abstractmethod
49
49
async def fetch_aggregates (
@@ -55,7 +55,7 @@ async def fetch_aggregates(
55
55
:param address: Address of the owner of the aggregate
56
56
:param keys: Keys of the aggregates to fetch (Default: all items)
57
57
"""
58
- pass
58
+ raise NotImplementedError ( "Did you mean to import `AlephHttpClient`?" )
59
59
60
60
@abstractmethod
61
61
async def get_posts (
@@ -75,7 +75,7 @@ async def get_posts(
75
75
:param ignore_invalid_messages: Ignore invalid messages (Default: True)
76
76
:param invalid_messages_log_level: Log level to use for invalid messages (Default: logging.NOTSET)
77
77
"""
78
- pass
78
+ raise NotImplementedError ( "Did you mean to import `AlephHttpClient`?" )
79
79
80
80
async def get_posts_iterator (
81
81
self ,
@@ -110,7 +110,7 @@ async def download_file(
110
110
111
111
:param file_hash: The hash of the file to retrieve.
112
112
"""
113
- pass
113
+ raise NotImplementedError ( "Did you mean to import `AlephHttpClient`?" )
114
114
115
115
async def download_file_ipfs (
116
116
self ,
@@ -168,7 +168,7 @@ async def get_messages(
168
168
:param ignore_invalid_messages: Ignore invalid messages (Default: True)
169
169
:param invalid_messages_log_level: Log level to use for invalid messages (Default: logging.NOTSET)
170
170
"""
171
- pass
171
+ raise NotImplementedError ( "Did you mean to import `AlephHttpClient`?" )
172
172
173
173
async def get_messages_iterator (
174
174
self ,
@@ -203,7 +203,7 @@ async def get_message(
203
203
:param item_hash: Hash of the message to fetch
204
204
:param message_type: Type of message to fetch
205
205
"""
206
- pass
206
+ raise NotImplementedError ( "Did you mean to import `AlephHttpClient`?" )
207
207
208
208
@abstractmethod
209
209
def watch_messages (
@@ -215,7 +215,7 @@ def watch_messages(
215
215
216
216
:param message_filter: Filter to apply to the messages
217
217
"""
218
- pass
218
+ raise NotImplementedError ( "Did you mean to import `AlephHttpClient`?" )
219
219
220
220
221
221
class AuthenticatedAlephClient (AlephClient ):
@@ -243,7 +243,9 @@ async def create_post(
243
243
:param storage_engine: An optional storage engine to use for the message, if not inlined (Default: "storage")
244
244
:param sync: If true, waits for the message to be processed by the API server (Default: False)
245
245
"""
246
- pass
246
+ raise NotImplementedError (
247
+ "Did you mean to import `AuthenticatedAlephHttpClient`?"
248
+ )
247
249
248
250
@abstractmethod
249
251
async def create_aggregate (
@@ -265,7 +267,9 @@ async def create_aggregate(
265
267
:param inline: Whether to write content inside the message (Default: True)
266
268
:param sync: If true, waits for the message to be processed by the API server (Default: False)
267
269
"""
268
- pass
270
+ raise NotImplementedError (
271
+ "Did you mean to import `AuthenticatedAlephHttpClient`?"
272
+ )
269
273
270
274
@abstractmethod
271
275
async def create_store (
@@ -297,7 +301,9 @@ async def create_store(
297
301
:param channel: Channel to post the message to (Default: "TEST")
298
302
:param sync: If true, waits for the message to be processed by the API server (Default: False)
299
303
"""
300
- pass
304
+ raise NotImplementedError (
305
+ "Did you mean to import `AuthenticatedAlephHttpClient`?"
306
+ )
301
307
302
308
@abstractmethod
303
309
async def create_program (
@@ -345,7 +351,9 @@ async def create_program(
345
351
:param subscriptions: Patterns of aleph.im messages to forward to the program's event receiver
346
352
:param metadata: Metadata to attach to the message
347
353
"""
348
- pass
354
+ raise NotImplementedError (
355
+ "Did you mean to import `AuthenticatedAlephHttpClient`?"
356
+ )
349
357
350
358
@abstractmethod
351
359
async def create_instance (
@@ -394,7 +402,9 @@ async def create_instance(
394
402
:param ssh_keys: SSH keys to authorize access to the VM
395
403
:param metadata: Metadata to attach to the message
396
404
"""
397
- pass
405
+ raise NotImplementedError (
406
+ "Did you mean to import `AuthenticatedAlephHttpClient`?"
407
+ )
398
408
399
409
@abstractmethod
400
410
async def forget (
@@ -419,7 +429,9 @@ async def forget(
419
429
:param address: Address to use (Default: account.get_address())
420
430
:param sync: If true, waits for the message to be processed by the API server (Default: False)
421
431
"""
422
- pass
432
+ raise NotImplementedError (
433
+ "Did you mean to import `AuthenticatedAlephHttpClient`?"
434
+ )
423
435
424
436
@abstractmethod
425
437
async def submit (
@@ -444,7 +456,9 @@ async def submit(
444
456
:param sync: If true, waits for the message to be processed by the API server (Default: False)
445
457
:param raise_on_rejected: Whether to raise an exception if the message is rejected (Default: True)
446
458
"""
447
- pass
459
+ raise NotImplementedError (
460
+ "Did you mean to import `AuthenticatedAlephHttpClient`?"
461
+ )
448
462
449
463
async def ipfs_push (self , content : Mapping ) -> str :
450
464
"""
0 commit comments