feat(sdk): desktopauto 0.5.3 银行卡/证件 OCR 增强、dingtalk 1.1.0、aitable 0.1.3

- desktopauto:cardocr 引擎/流水线/校验与 ocr 调整,sdk.json/pyproject/版本三处一致
- dingtalk:AI 表格读写与错误封装扩充
- aitable:client/cli/自测与打包配置更新
This commit is contained in:
2026-11-18 18:56:09 +08:00
parent 50fb138e1b
commit 39b768d0b7
26 changed files with 1043 additions and 93 deletions
+43 -4
View File
@@ -1,13 +1,14 @@
{
"schema_version": 1,
"sdk_id": "dingtalk_sdk",
"version": "0.1.2",
"version": "0.1.3",
"modules": {
"dingtalk_sdk": {
"exports": [
"AccessToken",
"AiTable",
"ApiError",
"AttachmentExpiredError",
"AuthError",
"CancelledError",
"ConfigError",
@@ -20,6 +21,7 @@
"RobotAccount",
"Settings",
"aitable",
"attachment_items",
"auth",
"build_sign",
"build_url",
@@ -38,12 +40,15 @@
"media",
"ms_to_str",
"norm",
"parse_expires",
"parse_period",
"push_dws",
"push_robot",
"report",
"resolve_base",
"robot",
"safe_filename",
"sniff_kind",
"split_by_chars",
"to_base_id",
"to_ms",
@@ -55,6 +60,7 @@
"AccessToken",
"AiTable",
"ApiError",
"AttachmentExpiredError",
"AuthError",
"CancelledError",
"ConfigError",
@@ -67,6 +73,7 @@
"RobotAccount",
"Settings",
"aitable",
"attachment_items",
"auth",
"build_sign",
"build_url",
@@ -85,12 +92,15 @@
"media",
"ms_to_str",
"norm",
"parse_expires",
"parse_period",
"push_dws",
"push_robot",
"report",
"resolve_base",
"robot",
"safe_filename",
"sniff_kind",
"split_by_chars",
"to_base_id",
"to_ms",
@@ -108,6 +118,7 @@
"Robot": "(webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '', env: 'str' = 'prod', timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'",
"RobotAccount": "(webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '37du 任务调度平台') -> None",
"Settings": "(app_key: 'str' = '', app_secret: 'str' = '', operator: 'str' = '', dws_bin: 'str' = '', timeout: 'float' = 30.0, retries: 'int' = 3, rate_limit: 'int' = 50, rate_window: 'float' = 60.0, default_env: 'str' = 'prod', robots: 'Dict[str, RobotAccount]' = <factory>, base_aliases: 'Dict[str, str]' = <factory>) -> None",
"attachment_items": "(value: 'Any') -> 'List[Dict[str, Any]]'",
"build_sign": "(secret: 'str', timestamp_ms: 'Union[int, str]') -> 'str'",
"build_url": "(webhook: 'str', secret: 'str' = '') -> 'str'",
"coerce_for_fields": "(meta: 'dict', data: 'dict') -> 'dict'",
@@ -120,10 +131,13 @@
"markdown_image": "(media_id: 'str', alt: 'str' = '图片') -> 'str'",
"ms_to_str": "(ms: 'Any', with_time: 'bool' = False) -> 'str'",
"norm": "(value: 'Any') -> 'Any'",
"parse_expires": "(url: 'str') -> 'int'",
"parse_period": "(month: 'str' = '', week: 'Optional[str]' = None) -> 'dict'",
"push_dws": "(messages: 'Iterable', record_dir: 'str' = '', chat_type: 'str' = '') -> 'dict'",
"push_robot": "(text, title: 'str' = '消息通知', status: 'str' = 'info', webhook: 'str' = '', secret: 'str' = '', server_name: 'str' = '', env: 'str' = 'prod', batch: 'bool' = False, max_chars: 'int' = 15000, log: 'Optional[Callable[[str], None]]' = None) -> 'dict'",
"resolve_base": "(raw: 'str', aliases: 'Optional[Dict[str, str]]' = None) -> 'Tuple[str, str]'",
"safe_filename": "(name: 'Any', fallback: 'str' = 'file') -> 'str'",
"sniff_kind": "(path: 'Any') -> 'str'",
"split_by_chars": "(content: 'str', max_chars: 'int' = 15000) -> 'List[str]'",
"to_base_id": "(base: 'str', aliases: 'Optional[Dict[str, str]]' = None) -> 'str'",
"to_ms": "(value: 'Any') -> 'Optional[int]'",
@@ -148,6 +162,7 @@
"report",
"robot",
"test_aitable",
"test_aitable_attachment",
"test_config",
"test_dws",
"test_http",
@@ -160,6 +175,7 @@
"signatures": {
"main": "() -> 'int'",
"test_aitable": "() -> 'None'",
"test_aitable_attachment": "() -> 'None'",
"test_config": "() -> 'None'",
"test_dws": "() -> 'None'",
"test_http": "() -> 'None'",
@@ -170,45 +186,66 @@
},
"dingtalk_sdk.aitable": {
"exports": [
"ATTACH_MIN_REMAIN",
"ATTACH_TIMEOUT",
"MAX_PAGES",
"PAGE_SIZE",
"TZ_CN",
"WRITE_BATCH",
"AiTable",
"ApiError",
"AttachmentExpiredError",
"attachment_items",
"coerce_for_fields",
"flatten",
"ms_to_str",
"norm",
"parse_expires",
"resolve_base",
"safe_filename",
"sniff_kind",
"to_base_id",
"to_ms"
"to_ms",
"unique_path"
],
"all": [
"ATTACH_MIN_REMAIN",
"ATTACH_TIMEOUT",
"MAX_PAGES",
"PAGE_SIZE",
"TZ_CN",
"WRITE_BATCH",
"AiTable",
"ApiError",
"AttachmentExpiredError",
"attachment_items",
"coerce_for_fields",
"flatten",
"ms_to_str",
"norm",
"parse_expires",
"resolve_base",
"safe_filename",
"sniff_kind",
"to_base_id",
"to_ms"
"to_ms",
"unique_path"
],
"signatures": {
"AiTable": "(operator: 'str' = '', app_key: 'str' = '', app_secret: 'str' = '', timeout: 'Optional[float]' = None, retries: 'Optional[int]' = None, log: 'Optional[Callable[[str], None]]' = None) -> 'None'",
"ApiError": "(message: 'str', code: 'str' = '', errmsg: 'str' = '', payload=None)",
"attachment_items": "(value: 'Any') -> 'List[Dict[str, Any]]'",
"coerce_for_fields": "(meta: 'dict', data: 'dict') -> 'dict'",
"flatten": "(record: 'dict') -> 'dict'",
"ms_to_str": "(ms: 'Any', with_time: 'bool' = False) -> 'str'",
"norm": "(value: 'Any') -> 'Any'",
"parse_expires": "(url: 'str') -> 'int'",
"resolve_base": "(raw: 'str', aliases: 'Optional[Dict[str, str]]' = None) -> 'Tuple[str, str]'",
"safe_filename": "(name: 'Any', fallback: 'str' = 'file') -> 'str'",
"sniff_kind": "(path: 'Any') -> 'str'",
"to_base_id": "(base: 'str', aliases: 'Optional[Dict[str, str]]' = None) -> 'str'",
"to_ms": "(value: 'Any') -> 'Optional[int]'"
"to_ms": "(value: 'Any') -> 'Optional[int]'",
"unique_path": "(dest: 'Path') -> 'Path'"
}
},
"dingtalk_sdk.auth": {
@@ -336,6 +373,7 @@
"dingtalk_sdk.errors": {
"exports": [
"ApiError",
"AttachmentExpiredError",
"AuthError",
"CancelledError",
"ConfigError",
@@ -345,6 +383,7 @@
],
"all": [
"ApiError",
"AttachmentExpiredError",
"AuthError",
"CancelledError",
"ConfigError",