diaspora-event-sdk 0.1.3__tar.gz → 0.1.4__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.
Files changed (33) hide show
  1. {diaspora-event-sdk-0.1.3/diaspora_event_sdk.egg-info → diaspora-event-sdk-0.1.4}/PKG-INFO +5 -12
  2. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/README.md +3 -1
  3. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/client.py +9 -3
  4. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/web_client.py +11 -4
  5. diaspora-event-sdk-0.1.4/diaspora_event_sdk/version.py +1 -0
  6. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4/diaspora_event_sdk.egg-info}/PKG-INFO +5 -12
  7. diaspora-event-sdk-0.1.3/diaspora_event_sdk/version.py +0 -1
  8. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/LICENSE +0 -0
  9. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/MANIFEST.in +0 -0
  10. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/__init__.py +0 -0
  11. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/__init__.py +0 -0
  12. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/_environments.py +0 -0
  13. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/decorators.py +0 -0
  14. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/kafka_client.py +0 -0
  15. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/login_manager/__init__.py +0 -0
  16. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/login_manager/client_login.py +0 -0
  17. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/login_manager/decorators.py +0 -0
  18. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/login_manager/globus_auth.py +0 -0
  19. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/login_manager/login_flow.py +0 -0
  20. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/login_manager/manager.py +0 -0
  21. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/login_manager/protocol.py +0 -0
  22. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/login_manager/tokenstore.py +0 -0
  23. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/utils/__init__.py +0 -0
  24. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk/sdk/utils/uuid_like.py +0 -0
  25. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk.egg-info/SOURCES.txt +0 -0
  26. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk.egg-info/dependency_links.txt +0 -0
  27. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk.egg-info/requires.txt +0 -0
  28. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/diaspora_event_sdk.egg-info/top_level.txt +0 -0
  29. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/setup.cfg +0 -0
  30. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/setup.py +0 -0
  31. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/tests/__init__.py +0 -0
  32. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/tests/unit/test_client.py +0 -0
  33. {diaspora-event-sdk-0.1.3 → diaspora-event-sdk-0.1.4}/tox.ini +0 -0
@@ -1,22 +1,13 @@
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
7
7
  Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
- Requires-Dist: globus-sdk<4,>=3.20.1
10
8
  Provides-Extra: kafka-python
11
- Requires-Dist: kafka-python; extra == "kafka-python"
12
- Requires-Dist: aws-msk-iam-sasl-signer-python; extra == "kafka-python"
13
9
  Provides-Extra: test
14
- Requires-Dist: pytest; extra == "test"
15
- Requires-Dist: pytest-cov; extra == "test"
16
- Requires-Dist: coverage; extra == "test"
17
- Requires-Dist: mypy; extra == "test"
18
- Requires-Dist: tox; extra == "test"
19
- Requires-Dist: check-manifest; extra == "test"
10
+ License-File: LICENSE
20
11
 
21
12
  # Diaspora: Resilience-enabling services for science from HPC to edge
22
13
 
@@ -44,4 +35,6 @@ Note: This method does not include dependencies for `KafkaProducer` and `KafkaCo
44
35
 
45
36
  **Troubleshooting and Credential Management**: Consult our [TrobleShooting Guide](docs/troubleshooting.md) for solving common issues and tips on managing keys effectively.
46
37
 
47
- **Advanced Usage**: Explore the [Faust Streaming Guide](docs/faust_weather_app.md) for advanced event streaming with Faust.
38
+ **Advanced Consumers with Faust**: Explore the [Faust Streaming Guide](docs/faust_weather_app.md) for advanced event streaming with Faust.
39
+
40
+ **Advanced Consumer Functions**: See our [Colab example](https://colab.research.google.com/drive/1tPKfxU2qPsLvNTreF6nKINU62k7pQWxa?usp=sharing) for demonstration.
@@ -24,4 +24,6 @@ Note: This method does not include dependencies for `KafkaProducer` and `KafkaCo
24
24
 
25
25
  **Troubleshooting and Credential Management**: Consult our [TrobleShooting Guide](docs/troubleshooting.md) for solving common issues and tips on managing keys effectively.
26
26
 
27
- **Advanced Usage**: Explore the [Faust Streaming Guide](docs/faust_weather_app.md) for advanced event streaming with Faust.
27
+ **Advanced Consumers with Faust**: Explore the [Faust Streaming Guide](docs/faust_weather_app.md) for advanced event streaming with Faust.
28
+
29
+ **Advanced Consumer Functions**: See our [Colab example](https://colab.research.google.com/drive/1tPKfxU2qPsLvNTreF6nKINU62k7pQWxa?usp=sharing) for demonstration.
@@ -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
+ )
@@ -0,0 +1 @@
1
+ __version__ = "0.1.4"
@@ -1,22 +1,13 @@
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
7
7
  Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
- Requires-Dist: globus-sdk<4,>=3.20.1
10
8
  Provides-Extra: kafka-python
11
- Requires-Dist: kafka-python; extra == "kafka-python"
12
- Requires-Dist: aws-msk-iam-sasl-signer-python; extra == "kafka-python"
13
9
  Provides-Extra: test
14
- Requires-Dist: pytest; extra == "test"
15
- Requires-Dist: pytest-cov; extra == "test"
16
- Requires-Dist: coverage; extra == "test"
17
- Requires-Dist: mypy; extra == "test"
18
- Requires-Dist: tox; extra == "test"
19
- Requires-Dist: check-manifest; extra == "test"
10
+ License-File: LICENSE
20
11
 
21
12
  # Diaspora: Resilience-enabling services for science from HPC to edge
22
13
 
@@ -44,4 +35,6 @@ Note: This method does not include dependencies for `KafkaProducer` and `KafkaCo
44
35
 
45
36
  **Troubleshooting and Credential Management**: Consult our [TrobleShooting Guide](docs/troubleshooting.md) for solving common issues and tips on managing keys effectively.
46
37
 
47
- **Advanced Usage**: Explore the [Faust Streaming Guide](docs/faust_weather_app.md) for advanced event streaming with Faust.
38
+ **Advanced Consumers with Faust**: Explore the [Faust Streaming Guide](docs/faust_weather_app.md) for advanced event streaming with Faust.
39
+
40
+ **Advanced Consumer Functions**: See our [Colab example](https://colab.research.google.com/drive/1tPKfxU2qPsLvNTreF6nKINU62k7pQWxa?usp=sharing) for demonstration.
@@ -1 +0,0 @@
1
- __version__ = "0.1.3"