diaspora-event-sdk 0.1.3__py3-none-any.whl → 0.1.4__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.
@@ -150,12 +150,11 @@ class Client:
150
150
  return self.web_client.list_functions(self.subject_openid)
151
151
 
152
152
  @requires_login
153
- def register_function(self, topic, function, function_runtime, function_handler, function_body):
153
+ def register_function(self, topic, function, function_configs):
154
154
  """
155
155
  Registers a new functions under the user's OpenID.
156
156
  """
157
- return self.web_client.register_function(self.subject_openid, topic, function,
158
- function_runtime, function_handler, function_body)
157
+ return self.web_client.register_function(self.subject_openid, topic, function, function_configs)
159
158
 
160
159
  @requires_login
161
160
  def unregister_function(self, topic, function):
@@ -163,3 +162,10 @@ class Client:
163
162
  Unregisters a functions from the user's OpenID.
164
163
  """
165
164
  return self.web_client.unregister_function(self.subject_openid, topic, function)
165
+
166
+ @requires_login
167
+ def update_trigger_config(self, trigger_uuid, trigger_configs):
168
+ """
169
+ Update a functions's trigger'.
170
+ """
171
+ return self.web_client.update_function_trigger(self.subject_openid, trigger_uuid, trigger_configs)
@@ -48,15 +48,13 @@ class WebClient(globus_sdk.BaseClient):
48
48
 
49
49
  def register_function(
50
50
  self, subject: UUID_LIKE_T, topic: str, function: str,
51
- function_runtime: str, function_handler: str, function_body: str
51
+ function_configs: dict
52
52
  ) -> globus_sdk.GlobusHTTPResponse:
53
53
  return self.post(
54
54
  "/v1/register_function",
55
55
  headers={"Subject": str(subject), "Topic": topic,
56
56
  "Function": function},
57
- data={"function_runtime": function_runtime,
58
- "function_handler": function_handler,
59
- "function_body": function_body}
57
+ data=function_configs
60
58
  )
61
59
 
62
60
  def unregister_function(
@@ -65,3 +63,12 @@ class WebClient(globus_sdk.BaseClient):
65
63
  return self.post(
66
64
  "/v1/unregister_function", headers={"Subject": str(subject), "Topic": topic, "Function": function}
67
65
  )
66
+
67
+ def update_function_trigger(
68
+ self, subject: UUID_LIKE_T, trigger_uuid: UUID_LIKE_T, trigger_configs: dict
69
+ ) -> globus_sdk.GlobusHTTPResponse:
70
+ return self.post(
71
+ "/v1/update_function_trigger",
72
+ headers={"Subject": str(subject), "Trigger": str(trigger_uuid)},
73
+ data=trigger_configs
74
+ )
@@ -1 +1 @@
1
- __version__ = "0.1.3"
1
+ __version__ = "0.1.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: diaspora-event-sdk
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: SDK of Diaspora Event Fabric: Resilience-enabling services for science from HPC to edge
5
5
  Home-page: https://github.com/globus-labs/diaspora-event-sdk
6
6
  License: LICENSE
@@ -44,4 +44,6 @@ Note: This method does not include dependencies for `KafkaProducer` and `KafkaCo
44
44
 
45
45
  **Troubleshooting and Credential Management**: Consult our [TrobleShooting Guide](docs/troubleshooting.md) for solving common issues and tips on managing keys effectively.
46
46
 
47
- **Advanced Usage**: Explore the [Faust Streaming Guide](docs/faust_weather_app.md) for advanced event streaming with Faust.
47
+ **Advanced Consumers with Faust**: Explore the [Faust Streaming Guide](docs/faust_weather_app.md) for advanced event streaming with Faust.
48
+
49
+ **Advanced Consumer Functions**: See our [Colab example](https://colab.research.google.com/drive/1tPKfxU2qPsLvNTreF6nKINU62k7pQWxa?usp=sharing) for demonstration.
@@ -1,11 +1,11 @@
1
1
  diaspora_event_sdk/__init__.py,sha256=v8IN3-WFpliakQKru8TAcmQ4IRdvRe_m9-abSDnGIFM,457
2
- diaspora_event_sdk/version.py,sha256=XEqb2aiIn8fzGE68Mph4ck1FtQqsR_am0wRWvrYPffQ,22
2
+ diaspora_event_sdk/version.py,sha256=Wzf5T3NBDfhQoTnhnRNHSlAsE0XMqbclXG-M81Vas70,22
3
3
  diaspora_event_sdk/sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  diaspora_event_sdk/sdk/_environments.py,sha256=Xeuzqnx1aGou01vsXgGwQkWhgIe3-PRgbOr1o5mZ3Mk,203
5
- diaspora_event_sdk/sdk/client.py,sha256=dO_NwUeXu-RI9t6IpvzVchjdB011NwEc8oxF7Nhyp-E,5863
5
+ diaspora_event_sdk/sdk/client.py,sha256=i9e_7XTsundS6PIITvJtOf-eK0DErSJ_yXNDTfBi9OA,6011
6
6
  diaspora_event_sdk/sdk/decorators.py,sha256=Gel8AyhIjbf4-FNintTNcOqvC9hHH_YwbOH257Nfmf0,884
7
7
  diaspora_event_sdk/sdk/kafka_client.py,sha256=G1kQQz2TWlahdd2TDdpvaQW7HD7gsuQCnr0tks54ISw,4361
8
- diaspora_event_sdk/sdk/web_client.py,sha256=JFg10RfB9rVQ1j4fIL4qG3LeP6v6uSoDgws6JT5ZMUM,2387
8
+ diaspora_event_sdk/sdk/web_client.py,sha256=ywSAc6LneKf85yNxkSVWRI6vGO7evlFewQqzNIoefUI,2565
9
9
  diaspora_event_sdk/sdk/login_manager/__init__.py,sha256=yeqVgjeHLMX0WZJu2feJmq-fbeXvSxWghVV81ygfY-w,239
10
10
  diaspora_event_sdk/sdk/login_manager/client_login.py,sha256=gvR4PkIqQpIywNieJQ_u11PHUmdLxQ0Ho-QgPSfu8bw,1798
11
11
  diaspora_event_sdk/sdk/login_manager/decorators.py,sha256=EFEp71d0oJ7vo2H8W7DJ2gPrDfGzeNXUNxri1C0l8h0,1047
@@ -18,8 +18,8 @@ diaspora_event_sdk/sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
18
18
  diaspora_event_sdk/sdk/utils/uuid_like.py,sha256=xbxf0YXpDhdii16lwPLWRN21qFekHrNrqODSToMPtCg,470
19
19
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  tests/unit/test_client.py,sha256=alUC-XTRQn_Oz0RvmzXTal-ciSVtCpx5jm3NuStkt1E,2995
21
- diaspora_event_sdk-0.1.3.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
22
- diaspora_event_sdk-0.1.3.dist-info/METADATA,sha256=ZDSBddFfwbn08dkK3L5Blph2n1zyc6nO5nI2ZX0fQgE,2307
23
- diaspora_event_sdk-0.1.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
24
- diaspora_event_sdk-0.1.3.dist-info/top_level.txt,sha256=OVun-67t3fkLFEIwvJuNINgFFvAc--bClYhXjLhMmvs,25
25
- diaspora_event_sdk-0.1.3.dist-info/RECORD,,
21
+ diaspora_event_sdk-0.1.4.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
22
+ diaspora_event_sdk-0.1.4.dist-info/METADATA,sha256=-HtDslMdLEPsIsJYTv8pYPwM6zn59ojkES0p1gq_62g,2486
23
+ diaspora_event_sdk-0.1.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
24
+ diaspora_event_sdk-0.1.4.dist-info/top_level.txt,sha256=OVun-67t3fkLFEIwvJuNINgFFvAc--bClYhXjLhMmvs,25
25
+ diaspora_event_sdk-0.1.4.dist-info/RECORD,,