orbitkit 0.8.53__tar.gz → 0.8.56__tar.gz
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.
- {orbitkit-0.8.53/orbitkit.egg-info → orbitkit-0.8.56}/PKG-INFO +1 -1
- orbitkit-0.8.56/orbitkit/VERSION +1 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/airflow_handler/data_preprocessing.py +10 -2
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/airflow_handler/file_flow_entry_process.py +14 -8
- {orbitkit-0.8.53 → orbitkit-0.8.56/orbitkit.egg-info}/PKG-INFO +1 -1
- orbitkit-0.8.53/orbitkit/VERSION +0 -1
- {orbitkit-0.8.53 → orbitkit-0.8.56}/LICENSE +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/MANIFEST.in +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/README.md +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/airflow_handler/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/airflow_handler/file_flow_exit_process.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/airflow_handler/file_handler.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/airflow_handler/file_handler_v2.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/audio_transcoder/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/audio_transcoder/netmind_extract_v1.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/constant/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/constant/report_schema.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/id_srv/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/id_srv/id_gen.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/id_srv/id_perm_like.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/lark_send/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/lark_send/lark.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/llm_tools/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/llm_tools/quick_rag_chat.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/orbit_type/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/orbit_type/doc_4_compile_rule.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/orbit_type/orbit_type_simple.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/orbit_type/tools.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_embedding/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_embedding/pdf_txt_embedding.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_embedding/pdf_txt_embedding_v2.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/a_stock_extractor_v1.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/exceptions.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/pdf_block_extractor_base.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/pdf_block_extractor_v1.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/pdf_block_extractor_v2.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/pdf_extractor_azure.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/pdf_extractor_minerU_v1.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/pdf_extractor_netmind_v1.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/pdf_extractor_netmind_v2.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/pdf_extractor_netmind_v3.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor/pdf_extractor_orbit.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor_simple/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor_simple/base.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor_simple/cloud_provider.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor_simple/core.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor_simple/exceptions.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor_simple/extractors.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_extractor_simple/utils.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_writer/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/pdf_writer/pdf_writer_simple.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/__init__.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/cache_asset_downloader.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/common.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/customize_regix_manager.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/secret_manager.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/universal_extractor.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_aliyun.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_aliyun_oss_simple.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_aws.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_aws_s3_wrapper.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_date.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_html.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_kafka.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_md5.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_selenium.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_simple_timer.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_str.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_type_mapping.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit/util/util_url.py +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit.egg-info/SOURCES.txt +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit.egg-info/dependency_links.txt +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit.egg-info/not-zip-safe +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit.egg-info/requires.txt +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/orbitkit.egg-info/top_level.txt +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/setup.cfg +0 -0
- {orbitkit-0.8.53 → orbitkit-0.8.56}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.8.56
|
|
@@ -68,7 +68,9 @@ class DocumentProcessor:
|
|
|
68
68
|
if not doc:
|
|
69
69
|
return None
|
|
70
70
|
suffixes = {cls.get_file_suffix(att['store_path']) for att in doc.get('x_attachments', [])}
|
|
71
|
-
|
|
71
|
+
if suffixes.issubset(cls.ALL_ALLOWED_SUFFIXES) or doc['x_status_list']['status_convert']['status'] == "convert_done":
|
|
72
|
+
return doc
|
|
73
|
+
return None
|
|
72
74
|
|
|
73
75
|
@classmethod
|
|
74
76
|
def xbrl_type_check(cls, doc):
|
|
@@ -126,6 +128,11 @@ class DocumentProcessor:
|
|
|
126
128
|
reported_date = datetime.datetime(1970, 1, 1)
|
|
127
129
|
return "extract" if reported_date < datetime.datetime(2023, 1, 1) else target_stage
|
|
128
130
|
|
|
131
|
+
@staticmethod
|
|
132
|
+
def update_target_stage_by_perm_match(doc, target_stage):
|
|
133
|
+
perm_match_status = doc['x_status_list']['status_perm']['status']
|
|
134
|
+
return target_stage if perm_match_status in {'perm_match_part', 'perm_match'} else "extract"
|
|
135
|
+
|
|
129
136
|
@classmethod
|
|
130
137
|
async def create_record(cls, doc, start_stage, important_level):
|
|
131
138
|
attachments = doc.get('x_attachments', []) if start_stage == 'convert' else doc.get('x_attachments_pdf', [])
|
|
@@ -182,10 +189,11 @@ class DocumentProcessor:
|
|
|
182
189
|
|
|
183
190
|
start_stage, target_stage, x_spider_name = cls.get_start_stage_target_stage(doc, custom_process_step)
|
|
184
191
|
|
|
185
|
-
# 判断 特殊条件下的数据不做embedding ('19999'类型和报告日期小于
|
|
192
|
+
# 判断 特殊条件下的数据不做embedding ('19999'类型和报告日期小于2023-01-01)
|
|
186
193
|
if target_stage == 'embedding' and not custom_process_step:
|
|
187
194
|
target_stage = cls.update_target_stage_by_report_type(doc, target_stage)
|
|
188
195
|
target_stage = cls.update_target_stage_by_reported_at(doc, target_stage)
|
|
196
|
+
target_stage = cls.update_target_stage_by_perm_match(doc, target_stage)
|
|
189
197
|
# 特殊情况下只需要做embedding 但是这个数据被条件限制为只做到提取时状态异常
|
|
190
198
|
if start_stage == 'embedding' and target_stage == 'extract':
|
|
191
199
|
start_stage = 'success'
|
|
@@ -112,14 +112,20 @@ class FilingOfficialProcessor:
|
|
|
112
112
|
def update_doc_status_to_convert(self, collection, report_id_list):
|
|
113
113
|
if len(report_id_list) == 0:
|
|
114
114
|
return
|
|
115
|
-
collection.update_many(
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
115
|
+
collection.update_many(
|
|
116
|
+
{"_id": {"$in": report_id_list}},
|
|
117
|
+
{
|
|
118
|
+
"$set": {
|
|
119
|
+
"x_status_list.status_convert.status": "convert_failed",
|
|
120
|
+
"x_status_list.status_convert.status_txt": "convert_txt_init",
|
|
121
|
+
"x_status_list.status_convert.status_meta": "meta_init",
|
|
122
|
+
"x_updated_date": datetime.now(tz=pytz.timezone('UTC')).strftime("%Y-%m-%dT%H:%M:%S%z"),
|
|
123
|
+
},
|
|
124
|
+
"$unset": {
|
|
125
|
+
"x_attachments_pdf": ""
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
)
|
|
123
129
|
logger.info(f'Unable to convert {len(report_id_list)} document(s) due to unsupported file type.')
|
|
124
130
|
|
|
125
131
|
def update_extends_fields(self, perm_id_list, file_flow_info):
|
orbitkit-0.8.53/orbitkit/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.8.53
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|