pixeltable 0.2.20__py3-none-any.whl → 0.2.21__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 pixeltable might be problematic. Click here for more details.
- pixeltable/__init__.py +7 -19
- pixeltable/__version__.py +2 -2
- pixeltable/catalog/__init__.py +7 -7
- pixeltable/catalog/globals.py +3 -0
- pixeltable/catalog/table.py +208 -145
- pixeltable/catalog/table_version.py +36 -18
- pixeltable/catalog/table_version_path.py +0 -8
- pixeltable/catalog/view.py +3 -3
- pixeltable/dataframe.py +9 -24
- pixeltable/env.py +1 -1
- pixeltable/exec/__init__.py +1 -1
- pixeltable/exec/aggregation_node.py +22 -15
- pixeltable/exec/data_row_batch.py +7 -7
- pixeltable/exec/exec_node.py +35 -7
- pixeltable/exec/expr_eval_node.py +2 -1
- pixeltable/exec/in_memory_data_node.py +9 -9
- pixeltable/exec/sql_node.py +265 -136
- pixeltable/exprs/__init__.py +1 -0
- pixeltable/exprs/data_row.py +30 -19
- pixeltable/exprs/expr.py +15 -14
- pixeltable/exprs/expr_dict.py +55 -0
- pixeltable/exprs/expr_set.py +21 -15
- pixeltable/exprs/function_call.py +21 -8
- pixeltable/exprs/rowid_ref.py +2 -2
- pixeltable/exprs/sql_element_cache.py +5 -1
- pixeltable/ext/functions/whisperx.py +7 -2
- pixeltable/func/callable_function.py +2 -2
- pixeltable/func/function_registry.py +6 -7
- pixeltable/func/query_template_function.py +11 -12
- pixeltable/func/signature.py +17 -15
- pixeltable/func/udf.py +0 -4
- pixeltable/functions/__init__.py +1 -1
- pixeltable/functions/audio.py +4 -6
- pixeltable/functions/globals.py +86 -42
- pixeltable/functions/huggingface.py +12 -14
- pixeltable/functions/image.py +59 -45
- pixeltable/functions/json.py +0 -1
- pixeltable/functions/mistralai.py +2 -2
- pixeltable/functions/openai.py +22 -25
- pixeltable/functions/string.py +50 -50
- pixeltable/functions/timestamp.py +20 -20
- pixeltable/functions/together.py +2 -2
- pixeltable/functions/video.py +11 -20
- pixeltable/functions/whisper.py +2 -20
- pixeltable/globals.py +55 -56
- pixeltable/index/base.py +2 -2
- pixeltable/index/btree.py +7 -7
- pixeltable/index/embedding_index.py +8 -10
- pixeltable/io/external_store.py +11 -5
- pixeltable/io/globals.py +2 -0
- pixeltable/io/hf_datasets.py +1 -1
- pixeltable/io/label_studio.py +6 -6
- pixeltable/io/parquet.py +14 -13
- pixeltable/iterators/document.py +9 -7
- pixeltable/iterators/video.py +10 -1
- pixeltable/metadata/__init__.py +3 -2
- pixeltable/metadata/converters/convert_14.py +4 -2
- pixeltable/metadata/converters/convert_15.py +1 -1
- pixeltable/metadata/converters/convert_19.py +1 -0
- pixeltable/metadata/converters/convert_20.py +1 -1
- pixeltable/metadata/converters/util.py +9 -8
- pixeltable/metadata/schema.py +32 -21
- pixeltable/plan.py +136 -154
- pixeltable/store.py +51 -36
- pixeltable/tool/create_test_db_dump.py +6 -6
- pixeltable/tool/doc_plugins/griffe.py +3 -34
- pixeltable/tool/mypy_plugin.py +32 -0
- pixeltable/type_system.py +243 -60
- pixeltable/utils/arrow.py +10 -9
- pixeltable/utils/coco.py +4 -4
- pixeltable/utils/documents.py +1 -1
- pixeltable/utils/filecache.py +9 -9
- pixeltable/utils/formatter.py +1 -1
- pixeltable/utils/http_server.py +2 -5
- pixeltable/utils/media_store.py +6 -6
- pixeltable/utils/pytorch.py +10 -11
- pixeltable/utils/sql.py +2 -1
- {pixeltable-0.2.20.dist-info → pixeltable-0.2.21.dist-info}/METADATA +6 -5
- pixeltable-0.2.21.dist-info/RECORD +148 -0
- pixeltable/utils/help.py +0 -11
- pixeltable-0.2.20.dist-info/RECORD +0 -147
- {pixeltable-0.2.20.dist-info → pixeltable-0.2.21.dist-info}/LICENSE +0 -0
- {pixeltable-0.2.20.dist-info → pixeltable-0.2.21.dist-info}/WHEEL +0 -0
- {pixeltable-0.2.20.dist-info → pixeltable-0.2.21.dist-info}/entry_points.txt +0 -0
pixeltable/__init__.py
CHANGED
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
from .catalog import Column, Table,
|
|
1
|
+
from .catalog import Column, InsertableTable, Table, UpdateStatus, View
|
|
2
2
|
from .dataframe import DataFrame
|
|
3
3
|
from .exceptions import Error
|
|
4
4
|
from .exprs import RELATIVE_PATH_ROOT
|
|
5
|
-
from .func import
|
|
6
|
-
from .globals import
|
|
7
|
-
|
|
8
|
-
from .type_system import (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
IntType,
|
|
12
|
-
FloatType,
|
|
13
|
-
BoolType,
|
|
14
|
-
TimestampType,
|
|
15
|
-
JsonType,
|
|
16
|
-
ArrayType,
|
|
17
|
-
ImageType,
|
|
18
|
-
VideoType,
|
|
19
|
-
AudioType,
|
|
20
|
-
DocumentType,
|
|
21
|
-
)
|
|
22
|
-
from .utils.help import help
|
|
5
|
+
from .func import Aggregator, Function, expr_udf, uda, udf
|
|
6
|
+
from .globals import (array, configure_logging, create_dir, create_table, create_view, drop_dir, drop_table, get_table,
|
|
7
|
+
init, list_dirs, list_functions, list_tables, move)
|
|
8
|
+
from .type_system import (Array, ArrayType, Audio, AudioType, Bool, BoolType, ColumnType, Document, DocumentType, Float,
|
|
9
|
+
FloatType, Image, ImageType, Int, IntType, Json, JsonType, Required, String, StringType,
|
|
10
|
+
Timestamp, TimestampType, Video, VideoType)
|
|
23
11
|
|
|
24
12
|
from . import ext, functions, io, iterators
|
|
25
13
|
from .__version__ import __version__, __version_tuple__
|
pixeltable/__version__.py
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# These version placeholders will be replaced during build.
|
|
2
|
-
__version__ = "0.2.
|
|
3
|
-
__version_tuple__ = (0, 2,
|
|
2
|
+
__version__ = "0.2.21"
|
|
3
|
+
__version_tuple__ = (0, 2, 21)
|
pixeltable/catalog/__init__.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
from .catalog import Catalog
|
|
2
2
|
from .column import Column
|
|
3
|
-
from .table_version_path import TableVersionPath
|
|
4
|
-
from .table_version import TableVersion
|
|
5
|
-
from .schema_object import SchemaObject
|
|
6
|
-
from .named_function import NamedFunction
|
|
7
3
|
from .dir import Dir
|
|
8
|
-
from .
|
|
4
|
+
from .globals import UpdateStatus, is_valid_identifier, is_valid_path
|
|
9
5
|
from .insertable_table import InsertableTable
|
|
10
|
-
from .
|
|
6
|
+
from .named_function import NamedFunction
|
|
11
7
|
from .path import Path
|
|
12
8
|
from .path_dict import PathDict
|
|
13
|
-
from .
|
|
9
|
+
from .schema_object import SchemaObject
|
|
10
|
+
from .table import Table
|
|
11
|
+
from .table_version import TableVersion
|
|
12
|
+
from .table_version_path import TableVersionPath
|
|
13
|
+
from .view import View
|
pixeltable/catalog/globals.py
CHANGED
|
@@ -16,6 +16,9 @@ _PREDEF_SYMBOLS: Optional[set[str]] = None
|
|
|
16
16
|
|
|
17
17
|
@dataclasses.dataclass
|
|
18
18
|
class UpdateStatus:
|
|
19
|
+
"""
|
|
20
|
+
Information about updates that resulted from a table operation.
|
|
21
|
+
"""
|
|
19
22
|
num_rows: int = 0
|
|
20
23
|
# TODO: disambiguate what this means: # of slots computed or # of columns computed?
|
|
21
24
|
num_computed_values: int = 0
|