vgi-python 0.34.0__py3-none-any.whl → 0.34.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.
- vgi/table_function.py +14 -2
- {vgi_python-0.34.0.dist-info → vgi_python-0.34.1.dist-info}/METADATA +1 -1
- {vgi_python-0.34.0.dist-info → vgi_python-0.34.1.dist-info}/RECORD +6 -6
- {vgi_python-0.34.0.dist-info → vgi_python-0.34.1.dist-info}/WHEEL +0 -0
- {vgi_python-0.34.0.dist-info → vgi_python-0.34.1.dist-info}/entry_points.txt +0 -0
- {vgi_python-0.34.0.dist-info → vgi_python-0.34.1.dist-info}/licenses/LICENSE +0 -0
vgi/table_function.py
CHANGED
|
@@ -8,6 +8,7 @@ to `process()` either emits a batch via `out.emit()` or signals completion via `
|
|
|
8
8
|
|
|
9
9
|
from __future__ import annotations
|
|
10
10
|
|
|
11
|
+
import inspect
|
|
11
12
|
import uuid
|
|
12
13
|
from abc import abstractmethod
|
|
13
14
|
from collections.abc import Mapping
|
|
@@ -854,8 +855,19 @@ class TableFunctionBase[TArgs](vgi.function.Function):
|
|
|
854
855
|
cls.FunctionArguments = type_args[0]
|
|
855
856
|
break
|
|
856
857
|
|
|
857
|
-
# Skip validation for abstract base classes
|
|
858
|
-
|
|
858
|
+
# Skip validation for abstract base classes. Each attribute is read with
|
|
859
|
+
# getattr_static, which returns the raw class attribute without invoking
|
|
860
|
+
# descriptors: a plain getattr() here resolved the inherited
|
|
861
|
+
# `Function.storage` descriptor, whose first access builds the default
|
|
862
|
+
# SQLite store on disk. Because vgi defines subclasses of its own, that
|
|
863
|
+
# made `import vgi` alone create a database under the user's state
|
|
864
|
+
# directory, and fail outright where that directory is not writable (a
|
|
865
|
+
# container's non-root user, say). The raw attribute answers the same
|
|
866
|
+
# question: classmethod, staticmethod and property objects all expose
|
|
867
|
+
# the `__isabstractmethod__` of what they wrap.
|
|
868
|
+
is_abstract = any(
|
|
869
|
+
getattr(inspect.getattr_static(cls, name, None), "__isabstractmethod__", False) for name in dir(cls)
|
|
870
|
+
)
|
|
859
871
|
if is_abstract:
|
|
860
872
|
cls._setting_params = {}
|
|
861
873
|
cls._secret_params = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: vgi-python
|
|
3
|
-
Version: 0.34.
|
|
3
|
+
Version: 0.34.1
|
|
4
4
|
Summary: Vector Gateway Interface - Connect DuckDB to external programs via Apache Arrow
|
|
5
5
|
Project-URL: Homepage, https://query.farm
|
|
6
6
|
Project-URL: Repository, https://github.com/Query-farm/vgi-python
|
|
@@ -34,7 +34,7 @@ vgi/serve.py,sha256=dyLHzMFdu1AUBtte2mwwYjtQeSF0fOLha1v9MBZbuD0,66163
|
|
|
34
34
|
vgi/split_token.py,sha256=tutcksj-hgWrLY7UW3sSqkyoaD-cMqNTOeff40MGl_g,10850
|
|
35
35
|
vgi/table_buffering_function.py,sha256=O5TcIdqk8-YViCQCkb8bOevO-zhe3IoyzLgwXDO3Cjc,19531
|
|
36
36
|
vgi/table_filter_pushdown.py,sha256=2wJK09OkZZm-WYFsB-um4lbIMZV6gU1fcx8EsHglnA4,61861
|
|
37
|
-
vgi/table_function.py,sha256=
|
|
37
|
+
vgi/table_function.py,sha256=8Pti3uFnsRaPCVG-CGYl9r3GHJF146Fp_62oXXwHKKw,73502
|
|
38
38
|
vgi/table_in_out_function.py,sha256=UGEeXsGkcx0BLt9RyKP6jQEbK6eFTUG6QIGEhxo_VxA,18865
|
|
39
39
|
vgi/worker.py,sha256=MGMQmy6PPKCqo5q_9fBS3z3zf4y6-UKdJAJiHGfnk50,249553
|
|
40
40
|
vgi/write_results.py,sha256=-OrUcz6E9ahhC_pnKYAwIMR2LpapwQafLC4IOnPTmec,2851
|
|
@@ -152,8 +152,8 @@ vgi/transactor/_duckdb_compat.py,sha256=sXVZ9JLKAQyGR1BjWczSwdQEavtr-TcZPoVZZnTr
|
|
|
152
152
|
vgi/transactor/client.py,sha256=7DTeMksogsw6ANjQjGOPpKYrV76rg4_kGjktMJf54jg,4486
|
|
153
153
|
vgi/transactor/protocol.py,sha256=v59IvrKnuvwOXvn_HEcBAbCzDVcx0akgKN0R1mChXg0,5034
|
|
154
154
|
vgi/transactor/server.py,sha256=nzsZQxJZdgappdYX8okrFIrjFtUbdM_Hhskl1fZ2nDY,32553
|
|
155
|
-
vgi_python-0.34.
|
|
156
|
-
vgi_python-0.34.
|
|
157
|
-
vgi_python-0.34.
|
|
158
|
-
vgi_python-0.34.
|
|
159
|
-
vgi_python-0.34.
|
|
155
|
+
vgi_python-0.34.1.dist-info/METADATA,sha256=6cUxkP27nI8eaL6yuWN3ooLJ0-TeI0Gga-XN3tXcSlE,25617
|
|
156
|
+
vgi_python-0.34.1.dist-info/WHEEL,sha256=THafob7ofN-NsuMN7Mg4qZyHaQI7KkD-QlcQatYhXPo,87
|
|
157
|
+
vgi_python-0.34.1.dist-info/entry_points.txt,sha256=3Kz1vgodw3pOL_xjtSyDB55-ZRy-U2X-X_Bdr582x0Q,165
|
|
158
|
+
vgi_python-0.34.1.dist-info/licenses/LICENSE,sha256=pbJb4zZasP6n5ifEV81wFu017TarjydaYVmGbHcehtY,6103
|
|
159
|
+
vgi_python-0.34.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|