alfred-python 0.6.2__py3-none-any.whl → 0.6.3__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: alfred-python
3
- Version: 0.6.2
3
+ Version: 0.6.3
4
4
  Summary: Python library designed to simplify and streamline interactions with the Alfred API
5
5
  Author-email: Tagshelf LLC <support@tagshelf.com>
6
6
  License: Copyright (c) 2018 The Python Packaging Authority
@@ -269,11 +269,11 @@ auth_config = AuthConfiguration({
269
269
  "api_key": "<api-key>"
270
270
  })
271
271
 
272
- client = AlfredRealTimeClient(
272
+ realtime_client = AlfredRealTimeClient(
273
273
  config,
274
274
  auth_config,
275
275
  verbose=False,
276
- on_callback=None,
276
+ error_callback=None,
277
277
  on_connect=None
278
278
  )
279
279
  ```
@@ -282,7 +282,7 @@ client = AlfredRealTimeClient(
282
282
  These events are specifically designed to respond to a variety of actions or status changes related to Files. To see more details about File events, visit our [official documentation](https://docs.tagshelf.dev/event-api/fileevents).
283
283
  ```python
284
284
  # Listen to all File events
285
- client.on_file_event(lambda data: print(data))
285
+ realtime_client.on_file_event(lambda data: print(data))
286
286
  ```
287
287
 
288
288
  ### Job Events
@@ -290,7 +290,7 @@ Alfred performs asynchronous document classification, extraction, and indexing o
290
290
 
291
291
  ```python
292
292
  # Listen to all Job events
293
- client.on_job_event(lambda data: print(data))
293
+ realtime_client.on_job_event(lambda data: print(data))
294
294
  ```
295
295
 
296
296
  ### Specific Events
@@ -304,10 +304,10 @@ Here's an example of how to listen to a specific event:
304
304
  from alfred.base import FileEvent, JobEvent
305
305
 
306
306
  # Listen to the specific File Done event
307
- client.on(FileEvent.FILE_DONE_EVENT.value, lambda data: print(data))
307
+ realtime_client.on(FileEvent.FILE_DONE_EVENT.value, lambda data: print(data))
308
308
 
309
309
  # Listen to the specific Job Finished event
310
- client.on(JobEvent.JOB_FINISHED_EVENT.value, lambda data: print(data))
310
+ realtime_client.on(JobEvent.JOB_FINISHED_EVENT.value, lambda data: print(data))
311
311
  ```
312
312
 
313
313
  Here is a list of all supported events:
@@ -28,8 +28,8 @@ alfred/typings/__init__.py,sha256=F7iVP8Wv4FPfqlwFRR8M381Q55IYChCiTANYr1vgDDw,34
28
28
  alfred/typings/misc.py,sha256=m2i4ktYiX8U6Hx00os9b6hSP9k6t_Y7DdAppE8hFJCc,216
29
29
  alfred/utils/__init__.py,sha256=oCoKgEKGX2kefjKNrv5GgDaTY2JQRHXqr-VPeIC9u2Q,35
30
30
  alfred/utils/logging.py,sha256=7pcLpP-klfv1FhgMp1WIc8BKEHQlOhrj7qjGYYw31cc,2333
31
- alfred_python-0.6.2.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
32
- alfred_python-0.6.2.dist-info/METADATA,sha256=jOis7qtwtY3ZFoE7yhntaW7PoWKe97sEKySUflqkflo,17797
33
- alfred_python-0.6.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
34
- alfred_python-0.6.2.dist-info/top_level.txt,sha256=ciQlts3Jwu5HdzhiQYDhjDGMoxlI9_CcqBEgc6PBE5U,7
35
- alfred_python-0.6.2.dist-info/RECORD,,
31
+ alfred_python-0.6.3.dist-info/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
32
+ alfred_python-0.6.3.dist-info/METADATA,sha256=6vLR_uRjjQDMCHCAHEVQYjnrzODDuiIiJSq03jzlIDw,17845
33
+ alfred_python-0.6.3.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
34
+ alfred_python-0.6.3.dist-info/top_level.txt,sha256=ciQlts3Jwu5HdzhiQYDhjDGMoxlI9_CcqBEgc6PBE5U,7
35
+ alfred_python-0.6.3.dist-info/RECORD,,