cocoindex 0.1.43__cp312-cp312-macosx_11_0_arm64.whl → 0.1.44__cp312-cp312-macosx_11_0_arm64.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.
Binary file
cocoindex/cli.py CHANGED
@@ -354,7 +354,7 @@ def evaluate(app_flow_specifier: str, output_dir: str | None, cache: bool = True
354
354
 
355
355
  fl = _flow_by_name(flow_ref)
356
356
  if output_dir is None:
357
- output_dir = f"eval_{setting.get_app_namespace(trailing_delimiter='_')}{flow_name}_{datetime.datetime.now().strftime('%y%m%d_%H%M%S')}"
357
+ output_dir = f"eval_{setting.get_app_namespace(trailing_delimiter='_')}{fl.name}_{datetime.datetime.now().strftime('%y%m%d_%H%M%S')}"
358
358
  options = flow.EvaluateAndDumpOptions(output_dir=output_dir, use_cache=cache)
359
359
  fl.evaluate_and_dump(options)
360
360
 
cocoindex/flow.py CHANGED
@@ -538,8 +538,8 @@ class Flow:
538
538
  Update the index defined by the flow.
539
539
  Once the function returns, the index is fresh up to the moment when the function is called.
540
540
  """
541
- updater = await FlowLiveUpdater.create_async(self, FlowLiveUpdaterOptions(live_mode=False))
542
- await updater.wait_async()
541
+ async with FlowLiveUpdater(self, FlowLiveUpdaterOptions(live_mode=False)) as updater:
542
+ await updater.wait_async()
543
543
  return updater.update_stats()
544
544
 
545
545
  def evaluate_and_dump(self, options: EvaluateAndDumpOptions):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cocoindex
3
- Version: 0.1.43
3
+ Version: 0.1.44
4
4
  Requires-Dist: sentence-transformers>=3.3.1
5
5
  Requires-Dist: click>=8.1.8
6
6
  Requires-Dist: rich>=14.0.0
@@ -1,13 +1,13 @@
1
- cocoindex-0.1.43.dist-info/METADATA,sha256=2n3yADdVbrbv-m-x7qtZX8l8D_2h37MEP2tY5OqTyBo,9818
2
- cocoindex-0.1.43.dist-info/WHEEL,sha256=ryp1uXCltaq3TPfjxhSWoam4EHMC40-Yabw-yvEW9gU,104
3
- cocoindex-0.1.43.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
4
- cocoindex-0.1.43.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1
+ cocoindex-0.1.44.dist-info/METADATA,sha256=hb2dWiqrLbpqe20t5WPsq4VfEd0_Fr1swN9ImFDjT20,9818
2
+ cocoindex-0.1.44.dist-info/WHEEL,sha256=ryp1uXCltaq3TPfjxhSWoam4EHMC40-Yabw-yvEW9gU,104
3
+ cocoindex-0.1.44.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
4
+ cocoindex-0.1.44.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
5
  cocoindex/__init__.py,sha256=ztuMoVHbGsyhgnN_CHBnY4yQtcsHi4O-u-Q3eUFaB5Y,816
6
- cocoindex/_engine.cpython-312-darwin.so,sha256=NjvTBi7ANCzQ4Klt0yhH1ICaTOrX_HL01WgSL0a5oRM,56872304
6
+ cocoindex/_engine.cpython-312-darwin.so,sha256=SfnCLOWI_PZOW8_yGmf53Z1CqDBBZ1tEgvybPogcoww,56872304
7
7
  cocoindex/auth_registry.py,sha256=NsALZ3SKsDG9cPdrlTlalIqUvgbgFOaFGAbWJNedtJE,692
8
- cocoindex/cli.py,sha256=Gbn6vz37Gi5ckZYdRdJkcbNcokLbtDhH9wrZswISeRc,16554
8
+ cocoindex/cli.py,sha256=g4QnDf5DGvdagP1g4vGP4E1JyHV63gnfS252P-j_2AY,16552
9
9
  cocoindex/convert.py,sha256=75HSBie7DokM0RJyUBqeveZRl5y_Fl8lzByoRF0yb2M,6915
10
- cocoindex/flow.py,sha256=0otFFqO8XVv-uc1Qbya9BBCK1orv7CGI52TiB5v63xk,28409
10
+ cocoindex/flow.py,sha256=xFLG5pgzOy9V10v1VFUhU1552kIcq59MUHeMwiuRdas,28407
11
11
  cocoindex/functions.py,sha256=F79dNmGE127LaU67kF5Oqtf_tIzebFQH7MkyceMX4-s,1830
12
12
  cocoindex/index.py,sha256=LssEOuZi6AqhwKtZM3QFeQpa9T-0ELi8G5DsrYKECvc,534
13
13
  cocoindex/lib.py,sha256=JiLIV5Fi-FNKMlH-6JMoe-UQsvirnFkkOLcoEQk9WkE,2903
@@ -24,4 +24,4 @@ cocoindex/tests/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
24
24
  cocoindex/tests/test_convert.py,sha256=7jc--I3frrg7DB5MPr4JFzE7DSCznJuWyHdlDLQJ_fM,15516
25
25
  cocoindex/typing.py,sha256=RMJXdey5_vd7JbPTEdUw1DeQ4Uu4MicdiaXjzQHFNRA,9031
26
26
  cocoindex/utils.py,sha256=eClhMdjBjcXaDkah-rPUmE7Y5Ncd7S1goUe2qTETR08,456
27
- cocoindex-0.1.43.dist-info/RECORD,,
27
+ cocoindex-0.1.44.dist-info/RECORD,,