xparse-client 0.2.14__py3-none-any.whl → 0.2.15__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.
example/run_pipeline.py CHANGED
@@ -167,8 +167,8 @@ def run_with_manual_setup():
167
167
  # )
168
168
  source = LocalSource(
169
169
  directory='/Users/ke_wang/Documents/doc',
170
- pattern=['*.pdf'],
171
- recursive=True,
170
+ # pattern=['*.pdf'],
171
+ # recursive=True,
172
172
  )
173
173
 
174
174
  # source=S3Source(
@@ -469,13 +469,13 @@ def create_pipeline_from_config(config: Dict[str, Any]) -> Pipeline:
469
469
  bucket=source_config['bucket'],
470
470
  prefix=source_config.get('prefix', ''),
471
471
  region=source_config.get('region', 'us-east-1'),
472
- pattern=source_config.get('pattern', '*'),
472
+ pattern=source_config.get('pattern', None),
473
473
  recursive=source_config.get('recursive', False)
474
474
  )
475
475
  elif source_config['type'] == 'local':
476
476
  source = LocalSource(
477
477
  directory=source_config['directory'],
478
- pattern=source_config.get('pattern', '*'),
478
+ pattern=source_config.get('pattern', None),
479
479
  recursive=source_config.get('recursive', False)
480
480
  )
481
481
  elif source_config['type'] == 'ftp':
@@ -484,7 +484,7 @@ def create_pipeline_from_config(config: Dict[str, Any]) -> Pipeline:
484
484
  port=source_config['port'],
485
485
  username=source_config['username'],
486
486
  password=source_config['password'],
487
- pattern=source_config.get('pattern', '*'),
487
+ pattern=source_config.get('pattern', None),
488
488
  recursive=source_config.get('recursive', False)
489
489
  )
490
490
  elif source_config['type'] == 'smb':
@@ -496,7 +496,7 @@ def create_pipeline_from_config(config: Dict[str, Any]) -> Pipeline:
496
496
  domain=source_config.get('domain', ''),
497
497
  port=source_config.get('port', 445),
498
498
  path=source_config.get('path', ''),
499
- pattern=source_config.get('pattern', '*'),
499
+ pattern=source_config.get('pattern', None),
500
500
  recursive=source_config.get('recursive', False)
501
501
  )
502
502
  else:
@@ -121,8 +121,6 @@ class S3Source(Source):
121
121
 
122
122
  if self.endpoint == 'https://textin-minio-api.ai.intsig.net':
123
123
  config = Config(signature_version='s3v4')
124
- elif self.endpoint.endswith('aliyuncs.com'):
125
- config = Config(signature_version='s3', s3={'addressing_style': 'virtual'})
126
124
  else:
127
125
  config = Config(signature_version='s3v4', s3={'addressing_style': 'virtual'})
128
126
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xparse-client
3
- Version: 0.2.14
3
+ Version: 0.2.15
4
4
  Summary: 面向Agent和RAG的新一代文档处理 AI Infra
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://gitlab.intsig.net/xparse1/xparse-pipeline
@@ -0,0 +1,13 @@
1
+ example/run_pipeline.py,sha256=-p-vgW5ifFlZKglmCAejsa1OKR5a3vb8sHOCrMqseps,16647
2
+ example/run_pipeline_test.py,sha256=pxsNiq_LmP6M4R7tTuja0u-Lu7fW-wIBU1uBf0-agQI,14845
3
+ xparse_client/__init__.py,sha256=C2XLxkCoONl6_B1FmDhWRw84TqOL4pZF20br-K26SSY,1721
4
+ xparse_client/pipeline/__init__.py,sha256=TVlb2AGCNKP0jrv3p4ZLZCPKp68hTVMFi00DTdi6QAo,49
5
+ xparse_client/pipeline/config.py,sha256=FFYq2a0dBWBEj70s2aInXOiQ5MwwHimd6SI2_tkp52w,4138
6
+ xparse_client/pipeline/destinations.py,sha256=QKlNGcpXIqkZS3rlBlhLDoRqIWA21Jgn3GiGhhfE8Rc,20921
7
+ xparse_client/pipeline/pipeline.py,sha256=llG4ZMfzgCWyKyTfZO01AKaP8OXw3vovEAnqW6QJ0Bg,27276
8
+ xparse_client/pipeline/sources.py,sha256=D-kLrSQ-qsFFFq7JC4sL3Y3Q3Q87Wcpv9R5K85YkDjE,22144
9
+ xparse_client-0.2.15.dist-info/licenses/LICENSE,sha256=ckIP-MbocsP9nqYnta5KgfAicYF196B5TNdHIR6kOO0,1075
10
+ xparse_client-0.2.15.dist-info/METADATA,sha256=wZ6KdkAbpa8nmA9qUEn395U4Ecr4Ep-V3L3omgLY1C8,28824
11
+ xparse_client-0.2.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ xparse_client-0.2.15.dist-info/top_level.txt,sha256=bfX8BWo1sEEQVsI4Ql4Uu80vrfEh5zfajU9YqFTzxMo,22
13
+ xparse_client-0.2.15.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- example/run_pipeline.py,sha256=Hfc27wsGoif7FzIFiWHdcnxIjtGCq2L5VeNF4X_d0Q0,16643
2
- example/run_pipeline_test.py,sha256=pxsNiq_LmP6M4R7tTuja0u-Lu7fW-wIBU1uBf0-agQI,14845
3
- xparse_client/__init__.py,sha256=C2XLxkCoONl6_B1FmDhWRw84TqOL4pZF20br-K26SSY,1721
4
- xparse_client/pipeline/__init__.py,sha256=TVlb2AGCNKP0jrv3p4ZLZCPKp68hTVMFi00DTdi6QAo,49
5
- xparse_client/pipeline/config.py,sha256=FFYq2a0dBWBEj70s2aInXOiQ5MwwHimd6SI2_tkp52w,4138
6
- xparse_client/pipeline/destinations.py,sha256=QKlNGcpXIqkZS3rlBlhLDoRqIWA21Jgn3GiGhhfE8Rc,20921
7
- xparse_client/pipeline/pipeline.py,sha256=ZspagUjiL5wnzGJq6A7riOU8qGXJMtg1fqPm9H09mkk,27272
8
- xparse_client/pipeline/sources.py,sha256=pzJ5FjP-kZi-6Cphhm9rOPXETmHw5Qpf7EaxrQPgSxs,22285
9
- xparse_client-0.2.14.dist-info/licenses/LICENSE,sha256=ckIP-MbocsP9nqYnta5KgfAicYF196B5TNdHIR6kOO0,1075
10
- xparse_client-0.2.14.dist-info/METADATA,sha256=DWUEbC_Ez38V_2al6TQEuAkEEtOG70kg3ye3YL8UJ8o,28824
11
- xparse_client-0.2.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- xparse_client-0.2.14.dist-info/top_level.txt,sha256=bfX8BWo1sEEQVsI4Ql4Uu80vrfEh5zfajU9YqFTzxMo,22
13
- xparse_client-0.2.14.dist-info/RECORD,,