dagster-dingtalk 0.1.17__tar.gz → 0.1.18__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {dagster_dingtalk-0.1.17 → dagster_dingtalk-0.1.18}/PKG-INFO +4 -4
- {dagster_dingtalk-0.1.17 → dagster_dingtalk-0.1.18}/README.md +1 -1
- {dagster_dingtalk-0.1.17 → dagster_dingtalk-0.1.18}/dagster_dingtalk/app_client.py +3 -1
- {dagster_dingtalk-0.1.17 → dagster_dingtalk-0.1.18}/pyproject.toml +3 -3
- {dagster_dingtalk-0.1.17 → dagster_dingtalk-0.1.18}/dagster_dingtalk/__init__.py +0 -0
- {dagster_dingtalk-0.1.17 → dagster_dingtalk-0.1.18}/dagster_dingtalk/operations.py +0 -0
- {dagster_dingtalk-0.1.17 → dagster_dingtalk-0.1.18}/dagster_dingtalk/resources.py +0 -0
- {dagster_dingtalk-0.1.17 → dagster_dingtalk-0.1.18}/dagster_dingtalk/version.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dagster-dingtalk
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.18
|
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
|
14
|
-
Requires-Dist: pydantic (>=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
|
## 资源
|
@@ -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("
|
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.
|
3
|
+
version = "0.1.18"
|
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 = "
|
11
|
-
pydantic = ">=2.
|
10
|
+
httpx = ">=0.27"
|
11
|
+
pydantic = ">=2,<2.10"
|
12
12
|
dagster = ">=1.8.10"
|
13
13
|
|
14
14
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|