arize-phoenix 7.12.0__py3-none-any.whl → 7.12.1__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.
Potentially problematic release.
This version of arize-phoenix might be problematic. Click here for more details.
- {arize_phoenix-7.12.0.dist-info → arize_phoenix-7.12.1.dist-info}/METADATA +1 -1
- {arize_phoenix-7.12.0.dist-info → arize_phoenix-7.12.1.dist-info}/RECORD +8 -8
- phoenix/db/engines.py +21 -11
- phoenix/version.py +1 -1
- {arize_phoenix-7.12.0.dist-info → arize_phoenix-7.12.1.dist-info}/WHEEL +0 -0
- {arize_phoenix-7.12.0.dist-info → arize_phoenix-7.12.1.dist-info}/entry_points.txt +0 -0
- {arize_phoenix-7.12.0.dist-info → arize_phoenix-7.12.1.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-7.12.0.dist-info → arize_phoenix-7.12.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -6,7 +6,7 @@ phoenix/exceptions.py,sha256=n2L2KKuecrdflB9MsCdAYCiSEvGJptIsfRkXMoJle7A,169
|
|
|
6
6
|
phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
7
7
|
phoenix/services.py,sha256=kpW1WL0kiB8XJsO6XycvZVJ-lBkNoenhQ7atCvBoSe8,5365
|
|
8
8
|
phoenix/settings.py,sha256=ht-0oN-sMV6SPXrk7Tu1EZlngpAYkGNLYPhO8DyrdQI,661
|
|
9
|
-
phoenix/version.py,sha256=
|
|
9
|
+
phoenix/version.py,sha256=2szdaPGvYYHEsBMMeewskoN2Yu2URh06p_5-YZo0P9M,23
|
|
10
10
|
phoenix/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
phoenix/core/embedding_dimension.py,sha256=zKGbcvwOXgLf-yrJBpQyKtd-LEOPRKHnUToyAU8Owis,87
|
|
12
12
|
phoenix/core/model.py,sha256=qBFraOtmwCCnWJltKNP18DDG0mULXigytlFsa6YOz6k,4837
|
|
@@ -16,7 +16,7 @@ phoenix/db/README.md,sha256=Mjrq0tG68uKQ81mN1Vmu3C795EEpZndmnE6CJXsPCXE,1909
|
|
|
16
16
|
phoenix/db/__init__.py,sha256=pDjEFXukHmJBM-1D8RjmXkvLsz85YWNxMQczt81ec3A,118
|
|
17
17
|
phoenix/db/alembic.ini,sha256=GIS6HpHaKaJbbuahZg1Rc1D2_QqyCkV9r58wdARGf6w,3262
|
|
18
18
|
phoenix/db/bulk_inserter.py,sha256=faNjuwLqqsw4ky8sa4D0h9u5TvEDTOjrccUW89L008E,12725
|
|
19
|
-
phoenix/db/engines.py,sha256=
|
|
19
|
+
phoenix/db/engines.py,sha256=esKGo_cqQLKKXNlfK7iQ7BtkOYY2xNsLdjvW2DddGjU,7321
|
|
20
20
|
phoenix/db/enums.py,sha256=tt7iovXLhVTLZ3_LbHNGgcI44SnNjXfkKtLAZG57T54,428
|
|
21
21
|
phoenix/db/facilitator.py,sha256=sAYqzBXYSVBKPTQVYrd7ZmtqMAr1zP9dVJwjfNGW7hc,4207
|
|
22
22
|
phoenix/db/helpers.py,sha256=daKbpY2QhTPo9a_T1xNHKI4WzWHkMmmrGIws7Hw-RZ4,4884
|
|
@@ -337,9 +337,9 @@ phoenix/utilities/project.py,sha256=auVpARXkDb-JgeX5f2aStyFIkeKvGwN9l7qrFeJMVxI,
|
|
|
337
337
|
phoenix/utilities/re.py,sha256=6YyUWIkv0zc2SigsxfOWIHzdpjKA_TZo2iqKq7zJKvw,2081
|
|
338
338
|
phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
339
339
|
phoenix/utilities/template_formatters.py,sha256=gh9PJD6WEGw7TEYXfSst1UR4pWWwmjxMLrDVQ_CkpkQ,2779
|
|
340
|
-
arize_phoenix-7.12.
|
|
341
|
-
arize_phoenix-7.12.
|
|
342
|
-
arize_phoenix-7.12.
|
|
343
|
-
arize_phoenix-7.12.
|
|
344
|
-
arize_phoenix-7.12.
|
|
345
|
-
arize_phoenix-7.12.
|
|
340
|
+
arize_phoenix-7.12.1.dist-info/METADATA,sha256=EdZdYv0yVK-kvYDe-h3UPPFs9OHt55AhD8FWkTsDtdQ,23390
|
|
341
|
+
arize_phoenix-7.12.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
342
|
+
arize_phoenix-7.12.1.dist-info/entry_points.txt,sha256=Pgpn8Upxx9P8z8joPXZWl2LlnAlGc3gcQoVchb06X1Q,94
|
|
343
|
+
arize_phoenix-7.12.1.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
|
|
344
|
+
arize_phoenix-7.12.1.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
|
|
345
|
+
arize_phoenix-7.12.1.dist-info/RECORD,,
|
phoenix/db/engines.py
CHANGED
|
@@ -4,7 +4,7 @@ from collections.abc import Callable
|
|
|
4
4
|
from datetime import datetime
|
|
5
5
|
from enum import Enum
|
|
6
6
|
from sqlite3 import Connection
|
|
7
|
-
from typing import Any
|
|
7
|
+
from typing import Any, Mapping
|
|
8
8
|
|
|
9
9
|
import aiosqlite
|
|
10
10
|
import numpy as np
|
|
@@ -163,23 +163,15 @@ def aio_postgresql_engine(
|
|
|
163
163
|
log_to_stdout: bool = False,
|
|
164
164
|
log_migrations_to_stdout: bool = True,
|
|
165
165
|
) -> AsyncEngine:
|
|
166
|
-
url_query = dict(url.query)
|
|
167
|
-
sslmode = url_query.pop("sslmode", None) or url_query.pop("ssl", None)
|
|
168
166
|
engine = create_async_engine(
|
|
169
|
-
url=url.set(
|
|
170
|
-
# https://github.com/MagicStack/asyncpg/issues/737
|
|
171
|
-
query={**url_query, "ssl": sslmode} if sslmode else url_query,
|
|
172
|
-
),
|
|
167
|
+
url=url.set(query=_asyncpg_url_query(url.query)),
|
|
173
168
|
echo=log_to_stdout,
|
|
174
169
|
json_serializer=_dumps,
|
|
175
170
|
)
|
|
176
171
|
if not migrate:
|
|
177
172
|
return engine
|
|
178
173
|
sync_engine = sqlalchemy.create_engine(
|
|
179
|
-
url=url.set(
|
|
180
|
-
drivername="postgresql+psycopg",
|
|
181
|
-
query={**url_query, "sslmode": sslmode} if sslmode else url_query,
|
|
182
|
-
),
|
|
174
|
+
url=url.set(drivername="postgresql+psycopg", query=_psycopg_url_query(url.query)),
|
|
183
175
|
echo=log_migrations_to_stdout,
|
|
184
176
|
json_serializer=_dumps,
|
|
185
177
|
)
|
|
@@ -189,6 +181,24 @@ def aio_postgresql_engine(
|
|
|
189
181
|
return engine
|
|
190
182
|
|
|
191
183
|
|
|
184
|
+
def _asyncpg_url_query(query: Mapping[str, Any]) -> dict[str, Any]:
|
|
185
|
+
ans = dict(query)
|
|
186
|
+
if sslmode := (ans.pop("sslmode", None) or ans.pop("ssl", None)):
|
|
187
|
+
# https://github.com/MagicStack/asyncpg/issues/737
|
|
188
|
+
ans["ssl"] = sslmode
|
|
189
|
+
return ans
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
def _psycopg_url_query(query: Mapping[str, Any]) -> dict[str, Any]:
|
|
193
|
+
ans = dict(query)
|
|
194
|
+
if sslmode := (ans.pop("sslmode", None) or ans.pop("ssl", None)):
|
|
195
|
+
ans["sslmode"] = sslmode
|
|
196
|
+
# prepared_statement_cache_size is only used by asyncpg, see:
|
|
197
|
+
# https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#prepared-statement-cache
|
|
198
|
+
ans.pop("prepared_statement_cache_size", None)
|
|
199
|
+
return ans
|
|
200
|
+
|
|
201
|
+
|
|
192
202
|
def _dumps(obj: Any) -> str:
|
|
193
203
|
return json.dumps(obj, cls=_Encoder)
|
|
194
204
|
|
phoenix/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "7.12.
|
|
1
|
+
__version__ = "7.12.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|