cocoindex 0.1.77__cp311-cp311-manylinux_2_28_aarch64.whl → 0.1.78__cp311-cp311-manylinux_2_28_aarch64.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.
cocoindex/setting.py CHANGED
@@ -44,6 +44,8 @@ class DatabaseConnectionSpec:
44
44
  url: str
45
45
  user: str | None = None
46
46
  password: str | None = None
47
+ max_connections: int = 64
48
+ min_connections: int = 16
47
49
 
48
50
 
49
51
  @dataclass
@@ -51,7 +53,7 @@ class GlobalExecutionOptions:
51
53
  """Global execution options."""
52
54
 
53
55
  # The maximum number of concurrent inflight requests, shared among all sources from all flows.
54
- source_max_inflight_rows: int | None = None
56
+ source_max_inflight_rows: int | None = 256
55
57
  source_max_inflight_bytes: int | None = None
56
58
 
57
59
 
@@ -92,10 +94,22 @@ class Settings:
92
94
 
93
95
  database_url = os.getenv("COCOINDEX_DATABASE_URL")
94
96
  if database_url is not None:
95
- db_kwargs: dict[str, str] = dict()
97
+ db_kwargs: dict[str, Any] = dict()
96
98
  _load_field(db_kwargs, "url", "COCOINDEX_DATABASE_URL", required=True)
97
99
  _load_field(db_kwargs, "user", "COCOINDEX_DATABASE_USER")
98
100
  _load_field(db_kwargs, "password", "COCOINDEX_DATABASE_PASSWORD")
101
+ _load_field(
102
+ db_kwargs,
103
+ "max_connections",
104
+ "COCOINDEX_DATABASE_MAX_CONNECTIONS",
105
+ parse=int,
106
+ )
107
+ _load_field(
108
+ db_kwargs,
109
+ "min_connections",
110
+ "COCOINDEX_DATABASE_MIN_CONNECTIONS",
111
+ parse=int,
112
+ )
99
113
  database = DatabaseConnectionSpec(**db_kwargs)
100
114
  else:
101
115
  database = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cocoindex
3
- Version: 0.1.77
3
+ Version: 0.1.78
4
4
  Requires-Dist: click>=8.1.8
5
5
  Requires-Dist: rich>=14.0.0
6
6
  Requires-Dist: python-dotenv>=1.1.0
@@ -1,9 +1,9 @@
1
- cocoindex-0.1.77.dist-info/METADATA,sha256=009CbNRu3D4ifri3AGpphTt29ENF0F1HNeu9O1HkVXI,11799
2
- cocoindex-0.1.77.dist-info/WHEEL,sha256=OG5wHvqtS9RjvgSNhic1Gtlo8YXPDhCSt1Koy_BFJ6o,109
3
- cocoindex-0.1.77.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
4
- cocoindex-0.1.77.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1
+ cocoindex-0.1.78.dist-info/METADATA,sha256=nnDzBVGk5BZqrwAIxbOJGO32-I5PdHswg5igu7WmNCM,11799
2
+ cocoindex-0.1.78.dist-info/WHEEL,sha256=OG5wHvqtS9RjvgSNhic1Gtlo8YXPDhCSt1Koy_BFJ6o,109
3
+ cocoindex-0.1.78.dist-info/entry_points.txt,sha256=_NretjYVzBdNTn7dK-zgwr7YfG2afz1u1uSE-5bZXF8,46
4
+ cocoindex-0.1.78.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
5
  cocoindex/__init__.py,sha256=sLpSVO5Cotgn_82lawxvXnaqfa-qj33rytWBAe2MTtU,2201
6
- cocoindex/_engine.cpython-311-aarch64-linux-gnu.so,sha256=4sq9kmyDrlyCw9mQglJyu2BQinodEWVqLSys71PlalA,68549856
6
+ cocoindex/_engine.cpython-311-aarch64-linux-gnu.so,sha256=akp7c_J9cJmQZaGgZaYhhgTraZKTr5IXhZJyS5Jb0zY,68565024
7
7
  cocoindex/auth_registry.py,sha256=PE1-kVkcyC1G2C_V7b1kvYzeq73OFQehWKQP7ln7fJ8,1478
8
8
  cocoindex/cli.py,sha256=-gp639JSyQN6YjnhGqCakIzYoSSqXxQMbxbkcYGP0QY,22359
9
9
  cocoindex/convert.py,sha256=HodeDl1HVX8nnBH02lQKarw5i3xmkjB0nGj-DXt7Ifc,18284
@@ -15,7 +15,7 @@ cocoindex/llm.py,sha256=WxmWUbNcf9HOCM5xkbDeFs9lF67M3mr810B7deDDc-8,673
15
15
  cocoindex/op.py,sha256=EZ3QrDGJciYAxsqBeZOc3SstOL_34a6cke3WXWwz4-M,22538
16
16
  cocoindex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  cocoindex/runtime.py,sha256=povilB3HH3y1JF-yxKwU-pD8n2WnAqyQxIgvXXHNc60,1080
18
- cocoindex/setting.py,sha256=TwhQ6pEeZmvc8ZXlnT9d8Wn8Vz_u7Z5LJUkGsKmKSno,4859
18
+ cocoindex/setting.py,sha256=sGnpkZBAJ7AEm6zVEItGl6fMywgi4uBqZcYwhV19kio,5282
19
19
  cocoindex/setup.py,sha256=7uIHKN4FOCuoidPXcKyGTrkqpkl9luL49-6UcnMxYzw,3068
20
20
  cocoindex/sources.py,sha256=69COA4qbZDipzGYfXv-WJSmicFkA509xIShRGDh6A0A,2083
21
21
  cocoindex/targets.py,sha256=Nfh_tpFd1goTnS_cxBjIs4j9zl3Z4Z1JomAQ1dl3Sic,2796
@@ -28,4 +28,4 @@ cocoindex/tests/test_validation.py,sha256=X6AQzVs-hVKIXcrHMEMQnhfUE8at7iXQnPq8nH
28
28
  cocoindex/typing.py,sha256=qQ0ANF3iuQDeSqipHgL2SDiiXL2reTMUN0aj4ve_T0w,13359
29
29
  cocoindex/utils.py,sha256=hUhX-XV6XGCtJSEIpBOuDv6VvqImwPlgBxztBTw7u0U,598
30
30
  cocoindex/validation.py,sha256=PZnJoby4sLbsmPv9fOjOQXuefjfZ7gmtsiTGU8SH-tc,3090
31
- cocoindex-0.1.77.dist-info/RECORD,,
31
+ cocoindex-0.1.78.dist-info/RECORD,,