deepfos 1.1.60__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. deepfos/__init__.py +6 -0
  2. deepfos/_version.py +21 -0
  3. deepfos/algo/__init__.py +0 -0
  4. deepfos/algo/graph.py +171 -0
  5. deepfos/algo/segtree.py +31 -0
  6. deepfos/api/V1_1/__init__.py +0 -0
  7. deepfos/api/V1_1/business_model.py +119 -0
  8. deepfos/api/V1_1/dimension.py +599 -0
  9. deepfos/api/V1_1/models/__init__.py +0 -0
  10. deepfos/api/V1_1/models/business_model.py +1033 -0
  11. deepfos/api/V1_1/models/dimension.py +2768 -0
  12. deepfos/api/V1_2/__init__.py +0 -0
  13. deepfos/api/V1_2/dimension.py +285 -0
  14. deepfos/api/V1_2/models/__init__.py +0 -0
  15. deepfos/api/V1_2/models/dimension.py +2923 -0
  16. deepfos/api/__init__.py +0 -0
  17. deepfos/api/account.py +167 -0
  18. deepfos/api/accounting_engines.py +147 -0
  19. deepfos/api/app.py +626 -0
  20. deepfos/api/approval_process.py +198 -0
  21. deepfos/api/base.py +983 -0
  22. deepfos/api/business_model.py +160 -0
  23. deepfos/api/consolidation.py +129 -0
  24. deepfos/api/consolidation_process.py +106 -0
  25. deepfos/api/datatable.py +341 -0
  26. deepfos/api/deep_pipeline.py +61 -0
  27. deepfos/api/deepconnector.py +36 -0
  28. deepfos/api/deepfos_task.py +92 -0
  29. deepfos/api/deepmodel.py +188 -0
  30. deepfos/api/dimension.py +486 -0
  31. deepfos/api/financial_model.py +319 -0
  32. deepfos/api/journal_model.py +119 -0
  33. deepfos/api/journal_template.py +132 -0
  34. deepfos/api/memory_financial_model.py +98 -0
  35. deepfos/api/models/__init__.py +3 -0
  36. deepfos/api/models/account.py +483 -0
  37. deepfos/api/models/accounting_engines.py +756 -0
  38. deepfos/api/models/app.py +1338 -0
  39. deepfos/api/models/approval_process.py +1043 -0
  40. deepfos/api/models/base.py +234 -0
  41. deepfos/api/models/business_model.py +805 -0
  42. deepfos/api/models/consolidation.py +711 -0
  43. deepfos/api/models/consolidation_process.py +248 -0
  44. deepfos/api/models/datatable_mysql.py +427 -0
  45. deepfos/api/models/deep_pipeline.py +55 -0
  46. deepfos/api/models/deepconnector.py +28 -0
  47. deepfos/api/models/deepfos_task.py +386 -0
  48. deepfos/api/models/deepmodel.py +308 -0
  49. deepfos/api/models/dimension.py +1576 -0
  50. deepfos/api/models/financial_model.py +1796 -0
  51. deepfos/api/models/journal_model.py +341 -0
  52. deepfos/api/models/journal_template.py +854 -0
  53. deepfos/api/models/memory_financial_model.py +478 -0
  54. deepfos/api/models/platform.py +178 -0
  55. deepfos/api/models/python.py +221 -0
  56. deepfos/api/models/reconciliation_engine.py +411 -0
  57. deepfos/api/models/reconciliation_report.py +161 -0
  58. deepfos/api/models/role_strategy.py +884 -0
  59. deepfos/api/models/smartlist.py +237 -0
  60. deepfos/api/models/space.py +1137 -0
  61. deepfos/api/models/system.py +1065 -0
  62. deepfos/api/models/variable.py +463 -0
  63. deepfos/api/models/workflow.py +946 -0
  64. deepfos/api/platform.py +199 -0
  65. deepfos/api/python.py +90 -0
  66. deepfos/api/reconciliation_engine.py +181 -0
  67. deepfos/api/reconciliation_report.py +64 -0
  68. deepfos/api/role_strategy.py +234 -0
  69. deepfos/api/smartlist.py +69 -0
  70. deepfos/api/space.py +582 -0
  71. deepfos/api/system.py +372 -0
  72. deepfos/api/variable.py +154 -0
  73. deepfos/api/workflow.py +264 -0
  74. deepfos/boost/__init__.py +6 -0
  75. deepfos/boost/py_jstream.py +89 -0
  76. deepfos/boost/py_pandas.py +20 -0
  77. deepfos/cache.py +121 -0
  78. deepfos/config.py +6 -0
  79. deepfos/core/__init__.py +27 -0
  80. deepfos/core/cube/__init__.py +10 -0
  81. deepfos/core/cube/_base.py +462 -0
  82. deepfos/core/cube/constants.py +21 -0
  83. deepfos/core/cube/cube.py +408 -0
  84. deepfos/core/cube/formula.py +707 -0
  85. deepfos/core/cube/syscube.py +532 -0
  86. deepfos/core/cube/typing.py +7 -0
  87. deepfos/core/cube/utils.py +238 -0
  88. deepfos/core/dimension/__init__.py +11 -0
  89. deepfos/core/dimension/_base.py +506 -0
  90. deepfos/core/dimension/dimcreator.py +184 -0
  91. deepfos/core/dimension/dimension.py +472 -0
  92. deepfos/core/dimension/dimexpr.py +271 -0
  93. deepfos/core/dimension/dimmember.py +155 -0
  94. deepfos/core/dimension/eledimension.py +22 -0
  95. deepfos/core/dimension/filters.py +99 -0
  96. deepfos/core/dimension/sysdimension.py +168 -0
  97. deepfos/core/logictable/__init__.py +5 -0
  98. deepfos/core/logictable/_cache.py +141 -0
  99. deepfos/core/logictable/_operator.py +663 -0
  100. deepfos/core/logictable/nodemixin.py +673 -0
  101. deepfos/core/logictable/sqlcondition.py +609 -0
  102. deepfos/core/logictable/tablemodel.py +497 -0
  103. deepfos/db/__init__.py +36 -0
  104. deepfos/db/cipher.py +660 -0
  105. deepfos/db/clickhouse.py +191 -0
  106. deepfos/db/connector.py +195 -0
  107. deepfos/db/daclickhouse.py +171 -0
  108. deepfos/db/dameng.py +101 -0
  109. deepfos/db/damysql.py +189 -0
  110. deepfos/db/dbkits.py +358 -0
  111. deepfos/db/deepengine.py +99 -0
  112. deepfos/db/deepmodel.py +82 -0
  113. deepfos/db/deepmodel_kingbase.py +83 -0
  114. deepfos/db/edb.py +214 -0
  115. deepfos/db/gauss.py +83 -0
  116. deepfos/db/kingbase.py +83 -0
  117. deepfos/db/mysql.py +184 -0
  118. deepfos/db/oracle.py +131 -0
  119. deepfos/db/postgresql.py +192 -0
  120. deepfos/db/sqlserver.py +99 -0
  121. deepfos/db/utils.py +135 -0
  122. deepfos/element/__init__.py +89 -0
  123. deepfos/element/accounting.py +348 -0
  124. deepfos/element/apvlprocess.py +215 -0
  125. deepfos/element/base.py +398 -0
  126. deepfos/element/bizmodel.py +1269 -0
  127. deepfos/element/datatable.py +2467 -0
  128. deepfos/element/deep_pipeline.py +186 -0
  129. deepfos/element/deepconnector.py +59 -0
  130. deepfos/element/deepmodel.py +1806 -0
  131. deepfos/element/dimension.py +1254 -0
  132. deepfos/element/fact_table.py +427 -0
  133. deepfos/element/finmodel.py +1485 -0
  134. deepfos/element/journal.py +840 -0
  135. deepfos/element/journal_template.py +943 -0
  136. deepfos/element/pyscript.py +412 -0
  137. deepfos/element/reconciliation.py +553 -0
  138. deepfos/element/rolestrategy.py +243 -0
  139. deepfos/element/smartlist.py +457 -0
  140. deepfos/element/variable.py +756 -0
  141. deepfos/element/workflow.py +560 -0
  142. deepfos/exceptions/__init__.py +239 -0
  143. deepfos/exceptions/hook.py +86 -0
  144. deepfos/lazy.py +104 -0
  145. deepfos/lazy_import.py +84 -0
  146. deepfos/lib/__init__.py +0 -0
  147. deepfos/lib/_javaobj.py +366 -0
  148. deepfos/lib/asynchronous.py +879 -0
  149. deepfos/lib/concurrency.py +107 -0
  150. deepfos/lib/constant.py +39 -0
  151. deepfos/lib/decorator.py +310 -0
  152. deepfos/lib/deepchart.py +778 -0
  153. deepfos/lib/deepux.py +477 -0
  154. deepfos/lib/discovery.py +273 -0
  155. deepfos/lib/edb_lexer.py +789 -0
  156. deepfos/lib/eureka.py +156 -0
  157. deepfos/lib/filterparser.py +751 -0
  158. deepfos/lib/httpcli.py +106 -0
  159. deepfos/lib/jsonstreamer.py +80 -0
  160. deepfos/lib/msg.py +394 -0
  161. deepfos/lib/nacos.py +225 -0
  162. deepfos/lib/patch.py +92 -0
  163. deepfos/lib/redis.py +241 -0
  164. deepfos/lib/serutils.py +181 -0
  165. deepfos/lib/stopwatch.py +99 -0
  166. deepfos/lib/subtask.py +572 -0
  167. deepfos/lib/sysutils.py +703 -0
  168. deepfos/lib/utils.py +1003 -0
  169. deepfos/local.py +160 -0
  170. deepfos/options.py +670 -0
  171. deepfos/translation.py +237 -0
  172. deepfos-1.1.60.dist-info/METADATA +33 -0
  173. deepfos-1.1.60.dist-info/RECORD +175 -0
  174. deepfos-1.1.60.dist-info/WHEEL +5 -0
  175. deepfos-1.1.60.dist-info/top_level.txt +1 -0
File without changes
deepfos/api/account.py ADDED
@@ -0,0 +1,167 @@
1
+ """
2
+ APIs provided by system-login-api
3
+
4
+ generated by api_code_gen.py
5
+ - **filename** : ``account.py``
6
+ - **json timestamp** : ``2024-07-16 14:17:08``
7
+ """
8
+ from deepfos.api.base import RootAPI, ChildAPI, get, post
9
+ from .models.account import *
10
+ from deepfos.options import OPTION
11
+ from deepfos.lib.decorator import cached_property
12
+ from typing import List, Dict, Union, Any, Awaitable
13
+ from deepfos.lib import sysutils
14
+
15
+ __all__ = ['AccountAPI']
16
+
17
+
18
+ class ApiEnterprise(ChildAPI):
19
+ endpoint = '/api/enterprise'
20
+
21
+ @get('list')
22
+ def list(self, ) -> Union[List[EnterpriseListVO], Awaitable[List[EnterpriseListVO]]]:
23
+ """
24
+ 企业列表
25
+
26
+ 根据用户id 查询企业列表
27
+ """
28
+ return {}
29
+
30
+
31
+ class ApiPlatform(ChildAPI):
32
+ endpoint = '/api/platform'
33
+
34
+ @get('secret')
35
+ def secret(self, enterpriseCode: str) -> Union[PlatFormSecretVO, Awaitable[PlatFormSecretVO]]:
36
+ """
37
+ 获取企业第三方认证信息
38
+
39
+ """
40
+ return {
41
+ 'header': {"enterprise-id": sysutils.get_enterprise_id_cached()},
42
+ 'param': {'enterpriseCode': enterpriseCode},
43
+ }
44
+
45
+
46
+ class ApiSpace(ChildAPI):
47
+ endpoint = '/api/space'
48
+
49
+ @get('enterprise-space-hierarchy')
50
+ def enterprise_space_hierarchy(self, ) -> Union[List[SpaceVO], Awaitable[List[SpaceVO]]]:
51
+ """
52
+ 查询企业/空间层级
53
+
54
+ """
55
+ return {'header': {"enterprise-id": sysutils.get_enterprise_id_cached()}}
56
+
57
+
58
+ class ApiUserGroup(ChildAPI):
59
+ endpoint = '/api/user/group'
60
+
61
+ @get('get-user-group-detail')
62
+ def get_user_group_detail(self, spaceId: str, groupId: str) -> Union[UserGroupDetailVO, Awaitable[UserGroupDetailVO]]:
63
+ """
64
+ 查询用户组详情
65
+
66
+ """
67
+ return {
68
+ 'header': {"enterprise-id": sysutils.get_enterprise_id_cached()},
69
+ 'param': {'groupId': groupId, 'spaceId': spaceId},
70
+ }
71
+
72
+ @post('space/modify-group')
73
+ def space_modify_group(self, userGroupModifyDTO: UserGroupModifyDTO) -> Union[bool, Awaitable[bool]]:
74
+ """
75
+ 用户组详情修改
76
+
77
+ """
78
+ return {
79
+ 'body': userGroupModifyDTO,
80
+ 'header': {"enterprise-id": sysutils.get_enterprise_id_cached()},
81
+ }
82
+
83
+
84
+ class UserImport(ChildAPI):
85
+ endpoint = '/s/user/import'
86
+
87
+ @post('user')
88
+ def user(self, importData: ImportUserListParamsUserImportDTO) -> Union[UserImportCheckVO, Awaitable[UserImportCheckVO]]:
89
+ """
90
+ 导入数据-用户
91
+
92
+ """
93
+ return {'body': importData, 'header': sysutils.resolve_account_api_extra_header()}
94
+
95
+ @post('user-group')
96
+ def user_group(self, importData: ImportUserListParamsUserGroupImportDTO) -> Union[UserImportCheckVO, Awaitable[UserImportCheckVO]]:
97
+ """
98
+ 导入数据-用户角色
99
+
100
+ """
101
+ return {'body': importData, 'header': sysutils.resolve_account_api_extra_header()}
102
+
103
+ @post('user-role')
104
+ def user_role(self, importData: ImportUserListParamsUserRoleImportDTO) -> Union[UserImportCheckVO, Awaitable[UserImportCheckVO]]:
105
+ """
106
+ 导入数据-用户角色
107
+
108
+ """
109
+ return {'body': importData, 'header': sysutils.resolve_account_api_extra_header()}
110
+
111
+ @post('userGroupUser')
112
+ def user_group_user(self, importData: ImportUserListParamsUserGroupRelationshipDTO) -> Union[UserImportCheckVO, Awaitable[UserImportCheckVO]]:
113
+ """
114
+ 导入数据-用户用户组关系(用户组子用户组关系)
115
+
116
+ """
117
+ return {'body': importData, 'header': sysutils.resolve_account_api_extra_header()}
118
+
119
+
120
+ class AccountAPI(RootAPI):
121
+ """账户中心"""
122
+ prefix = lambda: OPTION.server.account
123
+
124
+ def __init__(self, *args, **kwargs):
125
+ super(self.__class__.__base__, self).__init__(*args, **kwargs)
126
+ extra_header = {"singFilter": "pass"}
127
+ if not self.header:
128
+ self.header = extra_header
129
+ else:
130
+ self.header = {**self.header, **extra_header}
131
+
132
+ @cached_property
133
+ def enterprise(self) -> ApiEnterprise:
134
+ """
135
+ 企业信息
136
+ """
137
+ return ApiEnterprise(self)
138
+
139
+ @cached_property
140
+ def platform(self) -> ApiPlatform:
141
+ """
142
+ 平台管理
143
+ """
144
+ return ApiPlatform(self)
145
+
146
+ @cached_property
147
+ def space(self) -> ApiSpace:
148
+ """
149
+ 空间管理
150
+ """
151
+ return ApiSpace(self)
152
+
153
+ @cached_property
154
+ def user_group(self) -> ApiUserGroup:
155
+ """
156
+ 用户组
157
+ """
158
+ return ApiUserGroup(self)
159
+
160
+ @cached_property
161
+ def user_import(self) -> UserImport:
162
+ """
163
+ 用户导入-对外
164
+ """
165
+ return UserImport(self)
166
+
167
+
@@ -0,0 +1,147 @@
1
+ """
2
+ APIs provided by accounting-engines-server1-0
3
+
4
+ generated by api_code_gen.py
5
+ - **filename** : ``accounting_engines.py``
6
+ - **json timestamp** : ``2023-01-05 14:22:11``
7
+ """
8
+ from deepfos.api.base import get, post, DynamicRootAPI, ChildAPI
9
+ from .models.accounting_engines import *
10
+ from deepfos.lib.decorator import cached_property
11
+ from typing import List, Dict, Union, Any, Awaitable
12
+
13
+
14
+ __all__ = ['AccountingEnginesAPI', 'BillEnginesAPI','AccountingEventTypeAPI']
15
+
16
+
17
+ class EnginesAPI(ChildAPI):
18
+ endpoint = '/accounting/engines'
19
+
20
+ @post('exec/by/id')
21
+ def exec_by_id(self, requestDTO: AccountingEnginesRequestDTO) -> Union[DataDTO, Awaitable[DataDTO]]:
22
+ """
23
+ 会计引擎-根据元素id(支持参数)-执行
24
+
25
+ """
26
+ return {'body': requestDTO}
27
+
28
+ @post('exec/by/name/type')
29
+ def exec_by_name_type(self, requestDTO: AccountingEnginesRequestDTO) -> Union[Any, Awaitable[Any]]:
30
+ """
31
+ 会计引擎-根据元素名称和类型-执行
32
+
33
+ """
34
+ return {'body': requestDTO}
35
+
36
+ @get('get-accounting-info-by-name-type')
37
+ def get_accounting_info_by_name_type(self, elementType: str, elementName: str, folderId: str = None, path: str = None) -> Union[AccountingEnginesDTO, Awaitable[AccountingEnginesDTO]]:
38
+ """
39
+ 会计引擎-查询-根据name,type获取详情
40
+
41
+ """
42
+ return {
43
+ 'param': {
44
+ 'elementName': elementName,
45
+ 'elementType': elementType,
46
+ 'folderId': folderId,
47
+ 'path': path,
48
+ },
49
+ }
50
+
51
+ @post('sync/exec/by/id')
52
+ def sync_exec_by_id(self, requestDTO: AccountingEnginesRequestDTO) -> Union[Any, Awaitable[Any]]:
53
+ """
54
+ 会计引擎-根据元素id(支持参数)-异步执行
55
+
56
+ """
57
+ return {'body': requestDTO}
58
+
59
+ @post('update/control/status')
60
+ def update_control_status(self, requestDTO: AccountingControlRequestDTO) -> Union[Any, Awaitable[Any]]:
61
+ """
62
+ 会计引擎-修改执行状态
63
+
64
+ """
65
+ return {'body': requestDTO}
66
+
67
+ class EventTypeEnginesAPI(ChildAPI):
68
+ endpoint = '/accounting/event/type'
69
+
70
+ @get('get-info-by-id')
71
+ def get_info_by_id(self, elementId: str) -> Union[AccEventTypeElementDTO, Awaitable[AccEventTypeElementDTO]]:
72
+ """
73
+ 会计事件类型根据元素ID,查询详情
74
+
75
+ """
76
+ return {'param': {'elementId': elementId}}
77
+
78
+ @get('get-info-by-name')
79
+ def get_info_by_name(self, elementType: str, elementName: str, folderId: str = None, path: str = None) -> Union[AccEventTypeElementDTO, Awaitable[AccEventTypeElementDTO]]:
80
+ """
81
+ 会计事件类型根据元素名称和类型,查询详情
82
+
83
+ """
84
+ return {
85
+ 'param': {
86
+ 'elementName': elementName,
87
+ 'elementType': elementType,
88
+ 'folderId': folderId,
89
+ 'path': path,
90
+ },
91
+ }
92
+
93
+ @post('insert/to/event/table')
94
+ def insert_to_event_table(self, request: AccEventTypeTableDTO) -> Union[Any, Awaitable[Any]]:
95
+ """
96
+ 业务主健插入会计事件表
97
+
98
+ """
99
+ return {'body': request}
100
+
101
+ class AccountingEnginesAPI(DynamicRootAPI, builtin=True):
102
+ """会计引擎组件接口"""
103
+ module_type = 'ACCOUNTING'
104
+ default_version = (1, 0)
105
+ multi_version = False
106
+ cls_name = 'AccountingEnginesAPI'
107
+ module_name = 'deepfos.api.accounting_engines'
108
+ api_version = (1, 0)
109
+
110
+ @cached_property
111
+ def engines(self) -> EnginesAPI:
112
+ """
113
+ 会计引擎接口列表
114
+ """
115
+ return EnginesAPI(self)
116
+
117
+ class BillEnginesAPI(DynamicRootAPI, builtin=True):
118
+ """单据引擎组件接口"""
119
+ module_type = 'BILL'
120
+ default_version = (1, 0)
121
+ multi_version = False
122
+ cls_name = 'BillEnginesAPI'
123
+ module_name = 'deepfos.api.accounting_engines'
124
+ api_version = (1, 0)
125
+
126
+ @cached_property
127
+ def engines(self) -> EnginesAPI:
128
+ """
129
+ 单据引擎接口列表
130
+ """
131
+ return EnginesAPI(self)
132
+
133
+ class AccountingEventTypeAPI(DynamicRootAPI, builtin=True):
134
+ """单据引擎组件接口"""
135
+ module_type = 'ACCOUNTING_EVENT_TYPE'
136
+ default_version = (1, 0)
137
+ multi_version = False
138
+ cls_name = 'AccountingEventTypeAPI'
139
+ module_name = 'deepfos.api.accounting_engines'
140
+ api_version = (1, 0)
141
+
142
+ @cached_property
143
+ def engines(self) -> EventTypeEnginesAPI:
144
+ """
145
+ 会计事件类型接口列表
146
+ """
147
+ return EventTypeEnginesAPI(self)