dagster-dingtalk 0.1.17__tar.gz → 0.1.19__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  ## 资源
@@ -6,7 +6,7 @@
6
6
  要安装库,请在现有的Dagster环境中使用pip。
7
7
 
8
8
  ```bash
9
- pip install dagster-dingtalk
9
+ pip install dagster-dingtalk -U
10
10
  ```
11
11
 
12
12
  ## 资源
@@ -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,14 +1,14 @@
1
1
  [tool.poetry]
2
2
  name = "dagster-dingtalk"
3
- version = "0.1.17"
3
+ version = "0.1.19"
4
4
  description = "A dagster plugin for the DingTalk"
5
5
  authors = ["YiZixuan <sqkkyzx@qq.com>"]
6
6
  readme = "README.md"
7
7
 
8
8
  [tool.poetry.dependencies]
9
9
  python = ">=3.10,<3.13"
10
- httpx = "^0.27.2"
11
- pydantic = ">=2.9.2"
10
+ httpx = ">=0.27"
11
+ pydantic = ">=2,<2.10"
12
12
  dagster = ">=1.8.10"
13
13
 
14
14