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.

Files changed (84) hide show
  1. pixeltable/__init__.py +7 -19
  2. pixeltable/__version__.py +2 -2
  3. pixeltable/catalog/__init__.py +7 -7
  4. pixeltable/catalog/globals.py +3 -0
  5. pixeltable/catalog/table.py +208 -145
  6. pixeltable/catalog/table_version.py +36 -18
  7. pixeltable/catalog/table_version_path.py +0 -8
  8. pixeltable/catalog/view.py +3 -3
  9. pixeltable/dataframe.py +9 -24
  10. pixeltable/env.py +1 -1
  11. pixeltable/exec/__init__.py +1 -1
  12. pixeltable/exec/aggregation_node.py +22 -15
  13. pixeltable/exec/data_row_batch.py +7 -7
  14. pixeltable/exec/exec_node.py +35 -7
  15. pixeltable/exec/expr_eval_node.py +2 -1
  16. pixeltable/exec/in_memory_data_node.py +9 -9
  17. pixeltable/exec/sql_node.py +265 -136
  18. pixeltable/exprs/__init__.py +1 -0
  19. pixeltable/exprs/data_row.py +30 -19
  20. pixeltable/exprs/expr.py +15 -14
  21. pixeltable/exprs/expr_dict.py +55 -0
  22. pixeltable/exprs/expr_set.py +21 -15
  23. pixeltable/exprs/function_call.py +21 -8
  24. pixeltable/exprs/rowid_ref.py +2 -2
  25. pixeltable/exprs/sql_element_cache.py +5 -1
  26. pixeltable/ext/functions/whisperx.py +7 -2
  27. pixeltable/func/callable_function.py +2 -2
  28. pixeltable/func/function_registry.py +6 -7
  29. pixeltable/func/query_template_function.py +11 -12
  30. pixeltable/func/signature.py +17 -15
  31. pixeltable/func/udf.py +0 -4
  32. pixeltable/functions/__init__.py +1 -1
  33. pixeltable/functions/audio.py +4 -6
  34. pixeltable/functions/globals.py +86 -42
  35. pixeltable/functions/huggingface.py +12 -14
  36. pixeltable/functions/image.py +59 -45
  37. pixeltable/functions/json.py +0 -1
  38. pixeltable/functions/mistralai.py +2 -2
  39. pixeltable/functions/openai.py +22 -25
  40. pixeltable/functions/string.py +50 -50
  41. pixeltable/functions/timestamp.py +20 -20
  42. pixeltable/functions/together.py +2 -2
  43. pixeltable/functions/video.py +11 -20
  44. pixeltable/functions/whisper.py +2 -20
  45. pixeltable/globals.py +55 -56
  46. pixeltable/index/base.py +2 -2
  47. pixeltable/index/btree.py +7 -7
  48. pixeltable/index/embedding_index.py +8 -10
  49. pixeltable/io/external_store.py +11 -5
  50. pixeltable/io/globals.py +2 -0
  51. pixeltable/io/hf_datasets.py +1 -1
  52. pixeltable/io/label_studio.py +6 -6
  53. pixeltable/io/parquet.py +14 -13
  54. pixeltable/iterators/document.py +9 -7
  55. pixeltable/iterators/video.py +10 -1
  56. pixeltable/metadata/__init__.py +3 -2
  57. pixeltable/metadata/converters/convert_14.py +4 -2
  58. pixeltable/metadata/converters/convert_15.py +1 -1
  59. pixeltable/metadata/converters/convert_19.py +1 -0
  60. pixeltable/metadata/converters/convert_20.py +1 -1
  61. pixeltable/metadata/converters/util.py +9 -8
  62. pixeltable/metadata/schema.py +32 -21
  63. pixeltable/plan.py +136 -154
  64. pixeltable/store.py +51 -36
  65. pixeltable/tool/create_test_db_dump.py +6 -6
  66. pixeltable/tool/doc_plugins/griffe.py +3 -34
  67. pixeltable/tool/mypy_plugin.py +32 -0
  68. pixeltable/type_system.py +243 -60
  69. pixeltable/utils/arrow.py +10 -9
  70. pixeltable/utils/coco.py +4 -4
  71. pixeltable/utils/documents.py +1 -1
  72. pixeltable/utils/filecache.py +9 -9
  73. pixeltable/utils/formatter.py +1 -1
  74. pixeltable/utils/http_server.py +2 -5
  75. pixeltable/utils/media_store.py +6 -6
  76. pixeltable/utils/pytorch.py +10 -11
  77. pixeltable/utils/sql.py +2 -1
  78. {pixeltable-0.2.20.dist-info → pixeltable-0.2.21.dist-info}/METADATA +6 -5
  79. pixeltable-0.2.21.dist-info/RECORD +148 -0
  80. pixeltable/utils/help.py +0 -11
  81. pixeltable-0.2.20.dist-info/RECORD +0 -147
  82. {pixeltable-0.2.20.dist-info → pixeltable-0.2.21.dist-info}/LICENSE +0 -0
  83. {pixeltable-0.2.20.dist-info → pixeltable-0.2.21.dist-info}/WHEEL +0 -0
  84. {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, InsertableTable, View
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 Function, udf, Aggregator, uda, expr_udf
6
- from .globals import init, create_table, create_view, get_table, move, drop_table, list_tables, create_dir, drop_dir, \
7
- list_dirs, list_functions, configure_logging, array
8
- from .type_system import (
9
- ColumnType,
10
- StringType,
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.20"
3
- __version_tuple__ = (0, 2, 20)
2
+ __version__ = "0.2.21"
3
+ __version_tuple__ = (0, 2, 21)
@@ -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 .table import Table
4
+ from .globals import UpdateStatus, is_valid_identifier, is_valid_path
9
5
  from .insertable_table import InsertableTable
10
- from .view import View
6
+ from .named_function import NamedFunction
11
7
  from .path import Path
12
8
  from .path_dict import PathDict
13
- from .globals import is_valid_identifier, is_valid_path
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
@@ -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