dagster-dingtalk 0.1.17__py3-none-any.whl → 0.1.19__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ from datetime import datetime
5
5
  from enum import Enum
6
6
  from pathlib import Path
7
7
  from typing import List, Literal
8
+ import platform
8
9
 
9
10
  import httpx
10
11
  from httpx import Client
@@ -33,7 +34,7 @@ class DingTalkClient:
33
34
  self.即时通信 = 即时通信_API(self)
34
35
 
35
36
  def __get_access_token(self) -> str:
36
- access_token_cache = Path("/tmp/.dingtalk_cache")
37
+ access_token_cache = Path.home() / ".dingtalk_cache"
37
38
  all_access_token: dict = {}
38
39
  access_token: str|None = None
39
40
  expire_in: int = 0
@@ -582,6 +583,7 @@ class OA审批_审批钉盘_API:
582
583
  class 即时通信_API:
583
584
  def __init__(self, _client:DingTalkClient):
584
585
  self.__client:DingTalkClient = _client
586
+ self.工作通知 = 即时通信_工作通知_API(_client)
585
587
 
586
588
  # noinspection NonAsciiCharacters
587
589
  class 即时通信_工作通知_API:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dagster-dingtalk
3
- Version: 0.1.17
3
+ Version: 0.1.19
4
4
  Summary: A dagster plugin for the DingTalk
5
5
  Author: YiZixuan
6
6
  Author-email: sqkkyzx@qq.com
@@ -10,8 +10,8 @@ Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Requires-Dist: dagster (>=1.8.10)
13
- Requires-Dist: httpx (>=0.27.2,<0.28.0)
14
- Requires-Dist: pydantic (>=2.9.2)
13
+ Requires-Dist: httpx (>=0.27)
14
+ Requires-Dist: pydantic (>=2,<2.10)
15
15
  Description-Content-Type: text/markdown
16
16
 
17
17
  # 钉钉与 Dagster 集成
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
22
22
  要安装库,请在现有的Dagster环境中使用pip。
23
23
 
24
24
  ```bash
25
- pip install dagster-dingtalk
25
+ pip install dagster-dingtalk -U
26
26
  ```
27
27
 
28
28
  ## 资源
@@ -1,8 +1,8 @@
1
1
  dagster_dingtalk/__init__.py,sha256=jAyn67nRx5wU0YYWDMRINn7Tt3joP5IXsztTtyMbxsE,424
2
- dagster_dingtalk/app_client.py,sha256=Ihf1ixCN7iSzzrnQKjbML9Z-OHJODt3gu2jt17QV8hU,25930
2
+ dagster_dingtalk/app_client.py,sha256=i9az_Dfchx10uYC1jtDqCKihp4bA5nwIcKWFsqV9t-M,26018
3
3
  dagster_dingtalk/operations.py,sha256=C1wwXCW7mpKhLC1-Y7TCP_72L9e93a9ceVHRWhNda-Q,3891
4
4
  dagster_dingtalk/resources.py,sha256=1u8-oXRa7H_e0CAYkTJDxbjEmt3ZcD_ntBNvrS_rwr8,17430
5
5
  dagster_dingtalk/version.py,sha256=ncWWGHPke5qy2-s8w3nAgDE4R__CZi-Q7CLWtmtkbvA,25
6
- dagster_dingtalk-0.1.17.dist-info/METADATA,sha256=ytVf6824NylG8jv-sbdbeqBKl-bgWOgZ0keYKqV2zCk,8004
7
- dagster_dingtalk-0.1.17.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
8
- dagster_dingtalk-0.1.17.dist-info/RECORD,,
6
+ dagster_dingtalk-0.1.19.dist-info/METADATA,sha256=P4EkowEGRGm3Ek0Zmr9fWvbutVGJ-nwfYrTvhoEfwUY,7999
7
+ dagster_dingtalk-0.1.19.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
8
+ dagster_dingtalk-0.1.19.dist-info/RECORD,,