dagster-dingtalk 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  from dagster._core.libraries import DagsterLibraryRegistry
3
3
 
4
4
  from dagster_dingtalk.resources import DingTalkAPIResource, DingTalkWebhookResource
5
- from dagster_dingtalk.dynamic_ops import DingTalkWebhookOp
5
+ from dagster_dingtalk.operations import DingTalkWebhookOp
6
6
  from dagster_dingtalk.version import __version__
7
7
 
8
8
  DagsterLibraryRegistry.register("dagster-dingtalk", __version__)
@@ -3,18 +3,20 @@ from pydantic import Field
3
3
 
4
4
 
5
5
  class DingTalkWebhookOp:
6
+ @staticmethod
6
7
  @op(description="使用钉钉 Webhook 发送文本消息",
7
8
  config_schema={"dingtalk_webhook_key": Field(str)},
8
9
  ins={"text": In(str)},
9
10
  )
10
- def send_simple_text(self, context: OpExecutionContext, text):
11
+ def send_simple_text(context: OpExecutionContext, text):
11
12
  webhook = getattr(context.resources, context.op_config["dingtalk_webhook_key"])
12
13
  webhook.send_text(text)
13
14
 
15
+ @staticmethod
14
16
  @op(description="使用钉钉 Webhook 发送 Markdown 消息",
15
17
  config_schema={"dingtalk_webhook_key": Field(str)},
16
18
  ins={"text": In(str), "title": In(str, default_value='')},
17
19
  )
18
- def send_simple_markdown(self, context: OpExecutionContext, text, title):
20
+ def send_simple_markdown(context: OpExecutionContext, text, title):
19
21
  webhook = getattr(context.resources, context.op_config["dingtalk_webhook_key"])
20
22
  webhook.send_text(text, title)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dagster-dingtalk
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: A dagster plugin for the DingTalk
5
5
  Author: YiZixuan
6
6
  Author-email: sqkkyzx@qq.com
@@ -0,0 +1,7 @@
1
+ dagster_dingtalk/__init__.py,sha256=o6bZAaJFfoQEphn9ZaxGBYwq45EsDEBCeTRNUDCWLz0,350
2
+ dagster_dingtalk/operations.py,sha256=W3ddCfy9kUT4r6OR39Th7Ch_oEb8HuLFk6Bq_D7QwZg,900
3
+ dagster_dingtalk/resources.py,sha256=uZ-DV8_7RswiT9t0zv8IOiu5nkQcc1yPwNESRTlMDnY,11089
4
+ dagster_dingtalk/version.py,sha256=sXLh7g3KC4QCFxcZGBTpG2scR7hmmBsMjq6LqRptkRg,22
5
+ dagster_dingtalk-0.1.3.dist-info/METADATA,sha256=_t3T7JG1CiyRsWMimHuPt1ULrp_otSmKuswIMIh_OGc,1659
6
+ dagster_dingtalk-0.1.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
7
+ dagster_dingtalk-0.1.3.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- dagster_dingtalk/__init__.py,sha256=DAsRJtx6BEimn5VSm4FKHsz2GgluX_9hZlopaUhqaYw,351
2
- dagster_dingtalk/operations.py,sha256=3R4ycTM6xxGl1bfEVOuJ5Rvv0fId333JC3NJS9zadSQ,874
3
- dagster_dingtalk/resources.py,sha256=uZ-DV8_7RswiT9t0zv8IOiu5nkQcc1yPwNESRTlMDnY,11089
4
- dagster_dingtalk/version.py,sha256=sXLh7g3KC4QCFxcZGBTpG2scR7hmmBsMjq6LqRptkRg,22
5
- dagster_dingtalk-0.1.1.dist-info/METADATA,sha256=rQJWrey6TXtAqLbc9GxYOzg8LFNikyHa6v2Bt_YbOgs,1659
6
- dagster_dingtalk-0.1.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
7
- dagster_dingtalk-0.1.1.dist-info/RECORD,,