pixeltable 0.2.18__tar.gz → 0.2.20__tar.gz

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 (151) hide show
  1. pixeltable-0.2.20/LICENSE +201 -0
  2. {pixeltable-0.2.18 → pixeltable-0.2.20}/PKG-INFO +16 -6
  3. {pixeltable-0.2.18 → pixeltable-0.2.20}/README.md +13 -4
  4. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/__init__.py +1 -1
  5. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/__version__.py +2 -2
  6. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/insertable_table.py +9 -7
  7. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/table.py +18 -5
  8. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/table_version.py +1 -1
  9. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/view.py +1 -1
  10. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/dataframe.py +1 -1
  11. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/env.py +140 -40
  12. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exceptions.py +12 -5
  13. pixeltable-0.2.20/pixeltable/exec/component_iteration_node.py +100 -0
  14. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/__init__.py +1 -2
  15. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/expr.py +5 -6
  16. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/function_call.py +8 -10
  17. pixeltable-0.2.20/pixeltable/exprs/inline_expr.py +200 -0
  18. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/json_path.py +3 -6
  19. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/ext/functions/whisperx.py +2 -0
  20. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/ext/functions/yolox.py +5 -3
  21. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/huggingface.py +89 -12
  22. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/image.py +3 -3
  23. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/together.py +37 -16
  24. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/vision.py +43 -21
  25. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/whisper.py +3 -0
  26. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/globals.py +7 -1
  27. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/io/globals.py +1 -1
  28. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/io/hf_datasets.py +3 -3
  29. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/iterators/document.py +1 -1
  30. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/__init__.py +1 -1
  31. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/convert_18.py +1 -1
  32. pixeltable-0.2.20/pixeltable/metadata/converters/convert_20.py +56 -0
  33. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/util.py +29 -4
  34. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/notes.py +1 -0
  35. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/tool/create_test_db_dump.py +15 -4
  36. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/type_system.py +3 -1
  37. pixeltable-0.2.20/pixeltable/utils/filecache.py +242 -0
  38. {pixeltable-0.2.18 → pixeltable-0.2.20}/pyproject.toml +7 -7
  39. pixeltable-0.2.18/LICENSE +0 -18
  40. pixeltable-0.2.18/pixeltable/exec/component_iteration_node.py +0 -79
  41. pixeltable-0.2.18/pixeltable/exprs/inline_array.py +0 -117
  42. pixeltable-0.2.18/pixeltable/exprs/inline_dict.py +0 -104
  43. pixeltable-0.2.18/pixeltable/utils/filecache.py +0 -195
  44. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/__init__.py +0 -0
  45. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/catalog.py +0 -0
  46. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/column.py +0 -0
  47. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/dir.py +0 -0
  48. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/globals.py +0 -0
  49. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/named_function.py +0 -0
  50. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/path.py +0 -0
  51. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/path_dict.py +0 -0
  52. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/schema_object.py +0 -0
  53. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/catalog/table_version_path.py +0 -0
  54. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/__init__.py +0 -0
  55. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/aggregation_node.py +0 -0
  56. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/cache_prefetch_node.py +0 -0
  57. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/data_row_batch.py +0 -0
  58. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/exec_context.py +0 -0
  59. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/exec_node.py +0 -0
  60. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/expr_eval_node.py +0 -0
  61. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/in_memory_data_node.py +0 -0
  62. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/media_validation_node.py +0 -0
  63. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/row_update_node.py +0 -0
  64. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exec/sql_node.py +0 -0
  65. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/arithmetic_expr.py +0 -0
  66. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/array_slice.py +0 -0
  67. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/column_property_ref.py +0 -0
  68. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/column_ref.py +0 -0
  69. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/comparison.py +0 -0
  70. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/compound_predicate.py +0 -0
  71. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/data_row.py +0 -0
  72. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/expr_set.py +0 -0
  73. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/globals.py +0 -0
  74. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/in_predicate.py +0 -0
  75. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/is_null.py +0 -0
  76. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/json_mapper.py +0 -0
  77. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/literal.py +0 -0
  78. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/method_ref.py +0 -0
  79. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/object_ref.py +0 -0
  80. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/row_builder.py +0 -0
  81. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/rowid_ref.py +0 -0
  82. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/similarity_expr.py +0 -0
  83. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/sql_element_cache.py +0 -0
  84. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/type_cast.py +0 -0
  85. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/exprs/variable.py +0 -0
  86. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/ext/__init__.py +0 -0
  87. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/ext/functions/__init__.py +0 -0
  88. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/__init__.py +0 -0
  89. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/aggregate_function.py +0 -0
  90. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/callable_function.py +0 -0
  91. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/expr_template_function.py +0 -0
  92. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/function.py +0 -0
  93. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/function_registry.py +0 -0
  94. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/globals.py +0 -0
  95. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/query_template_function.py +0 -0
  96. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/signature.py +0 -0
  97. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/func/udf.py +0 -0
  98. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/__init__.py +0 -0
  99. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/anthropic.py +0 -0
  100. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/audio.py +0 -0
  101. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/fireworks.py +0 -0
  102. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/globals.py +0 -0
  103. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/json.py +0 -0
  104. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/mistralai.py +0 -0
  105. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/openai.py +0 -0
  106. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/string.py +0 -0
  107. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/timestamp.py +0 -0
  108. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/util.py +0 -0
  109. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/functions/video.py +0 -0
  110. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/index/__init__.py +0 -0
  111. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/index/base.py +0 -0
  112. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/index/btree.py +0 -0
  113. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/index/embedding_index.py +0 -0
  114. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/io/__init__.py +0 -0
  115. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/io/external_store.py +0 -0
  116. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/io/label_studio.py +0 -0
  117. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/io/pandas.py +0 -0
  118. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/io/parquet.py +0 -0
  119. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/iterators/__init__.py +0 -0
  120. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/iterators/base.py +0 -0
  121. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/iterators/string.py +0 -0
  122. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/iterators/video.py +0 -0
  123. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/convert_10.py +0 -0
  124. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/convert_12.py +0 -0
  125. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/convert_13.py +0 -0
  126. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/convert_14.py +0 -0
  127. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/convert_15.py +0 -0
  128. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/convert_16.py +0 -0
  129. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/convert_17.py +0 -0
  130. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/converters/convert_19.py +0 -0
  131. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/metadata/schema.py +0 -0
  132. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/plan.py +0 -0
  133. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/store.py +0 -0
  134. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/tool/create_test_video.py +0 -0
  135. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/tool/doc_plugins/griffe.py +0 -0
  136. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/tool/doc_plugins/mkdocstrings.py +0 -0
  137. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/tool/doc_plugins/templates/material/udf.html.jinja +0 -0
  138. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/tool/embed_udf.py +0 -0
  139. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/__init__.py +0 -0
  140. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/arrow.py +0 -0
  141. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/coco.py +0 -0
  142. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/code.py +0 -0
  143. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/documents.py +0 -0
  144. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/formatter.py +0 -0
  145. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/help.py +0 -0
  146. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/http_server.py +0 -0
  147. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/media_store.py +0 -0
  148. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/pytorch.py +0 -0
  149. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/s3.py +0 -0
  150. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/sql.py +0 -0
  151. {pixeltable-0.2.18 → pixeltable-0.2.20}/pixeltable/utils/transactional_directory.py +0 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pixeltable
3
- Version: 0.2.18
3
+ Version: 0.2.20
4
4
  Summary: Pixeltable: The Multimodal AI Data Plane
5
5
  Author: Pixeltable, Inc.
6
6
  Author-email: contact@pixeltable.com
@@ -17,7 +17,7 @@ Requires-Dist: ftfy (>=6.2.0,<7.0.0)
17
17
  Requires-Dist: jinja2 (>=3.1.3,<4.0.0)
18
18
  Requires-Dist: jmespath (>=1.0.1,<2.0.0)
19
19
  Requires-Dist: more-itertools (>=10.2,<11.0)
20
- Requires-Dist: numpy (>=1.25)
20
+ Requires-Dist: numpy (>=1.25,<2.0)
21
21
  Requires-Dist: opencv-python-headless (>=4.7.0.68,<5.0.0.0)
22
22
  Requires-Dist: pandas (>=2.0,<3.0)
23
23
  Requires-Dist: pgvector (>=0.2.1,<0.3.0)
@@ -31,6 +31,7 @@ Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
31
31
  Requires-Dist: requests (>=2.31.0,<3.0.0)
32
32
  Requires-Dist: sqlalchemy (>=2.0.23,<3.0.0)
33
33
  Requires-Dist: tenacity (>=8.2,<9.0)
34
+ Requires-Dist: toml (>=0.10)
34
35
  Requires-Dist: tqdm (>=4.64)
35
36
  Description-Content-Type: text/markdown
36
37
 
@@ -40,14 +41,23 @@ Description-Content-Type: text/markdown
40
41
 
41
42
  [![License](https://img.shields.io/badge/License-Apache%202.0-darkblue.svg)](https://opensource.org/licenses/Apache-2.0)
42
43
  ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pixeltable?logo=python&logoColor=white)
43
- [![Platform Support](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Windows-8A2BE2)]()
44
- [![pytest status](https://github.com/pixeltable/pixeltable/actions/workflows/pytest.yml/badge.svg)](https://github.com/pixeltable/pixeltable/actions)
44
+ ![Platform Support](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Windows-8A2BE2)
45
+ <br>
46
+ [![tests status](https://github.com/pixeltable/pixeltable/actions/workflows/pytest.yml/badge.svg)](https://github.com/pixeltable/pixeltable/actions/workflows/pytest.yml)
47
+ [![tests status](https://github.com/pixeltable/pixeltable/actions/workflows/nightly.yml/badge.svg)](https://github.com/pixeltable/pixeltable/actions/workflows/nightly.yml)
45
48
  [![PyPI Package](https://img.shields.io/pypi/v/pixeltable?color=darkorange)](https://pypi.org/project/pixeltable/)
46
49
 
47
- [Installation](https://pixeltable.github.io/pixeltable/getting-started/) | [Documentation](https://pixeltable.readme.io/) | [API Reference](https://pixeltable.github.io/pixeltable/) | [Code Samples](https://pixeltable.readme.io/recipes) | [Examples](https://github.com/pixeltable/pixeltable/tree/release/docs/release/tutorials)
50
+ [Installation](https://pixeltable.github.io/pixeltable/getting-started/) | [Documentation](https://pixeltable.readme.io/) | [API Reference](https://pixeltable.github.io/pixeltable/) | [Code Samples](https://github.com/pixeltable/pixeltable?tab=readme-ov-file#-code-samples) | [Computer Vision](https://docs.pixeltable.com/docs/object-detection-in-videos) | [LLM](https://docs.pixeltable.com/docs/document-indexing-and-rag)
48
51
  </div>
49
52
 
50
- Pixeltable is a Python library providing a declarative interface for multimodal data (text, images, audio, video). It features built-in versioning, lineage tracking, and incremental updates, enabling users to store, transform, index, and iterate on data for their ML workflows. Data transformations, model inference, and custom logic are embedded as computed columns.
53
+ Pixeltable is a Python library providing a declarative interface for multimodal data (text, images, audio, video). It features built-in versioning, lineage tracking, and incremental updates, enabling users to **store**, **transform**, **index**, and **iterate** on data for their ML workflows.
54
+
55
+ Data transformations, model inference, and custom logic are embedded as **computed columns**.
56
+ - **Load/Query all data types**: Interact with [video data](https://github.com/pixeltable/pixeltable?tab=readme-ov-file#import-media-data-into-pixeltable-videos-images-audio) at the [frame level](https://github.com/pixeltable/pixeltable?tab=readme-ov-file#text-and-image-similarity-search-on-video-frames-with-embedding-indexes) and documents at the [chunk level](https://github.com/pixeltable/pixeltable?tab=readme-ov-file#automate-data-operations-with-views-eg-split-documents-into-chunks)
57
+ - **Incremental updates for data transformation**: Maintain an [embedding index](https://docs.pixeltable.com/docs/embedding-vector-indexes) colocated with your data
58
+ - **Lazy evaluation and cache management**: Eliminates the need for [manual frame extraction](https://docs.pixeltable.com/docs/object-detection-in-videos)
59
+ - **Integrates with any Python libraries**: Use [built-in and custom functions (UDFs)](https://docs.pixeltable.com/docs/user-defined-functions-udfs) without complex pipelines
60
+ - **Data format agnostic and extensibility**: Access tables as Parquet files, [PyTorch datasets](https://pixeltable.github.io/pixeltable/api/data-frame/#pixeltable.DataFrame.to_pytorch_dataset), or [COCO annotations](https://pixeltable.github.io/pixeltable/api/table/#pixeltable.Table.to_coco_dataset)
51
61
 
52
62
  ## 💾 Installation
53
63
 
@@ -4,14 +4,23 @@
4
4
 
5
5
  [![License](https://img.shields.io/badge/License-Apache%202.0-darkblue.svg)](https://opensource.org/licenses/Apache-2.0)
6
6
  ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pixeltable?logo=python&logoColor=white)
7
- [![Platform Support](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Windows-8A2BE2)]()
8
- [![pytest status](https://github.com/pixeltable/pixeltable/actions/workflows/pytest.yml/badge.svg)](https://github.com/pixeltable/pixeltable/actions)
7
+ ![Platform Support](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Windows-8A2BE2)
8
+ <br>
9
+ [![tests status](https://github.com/pixeltable/pixeltable/actions/workflows/pytest.yml/badge.svg)](https://github.com/pixeltable/pixeltable/actions/workflows/pytest.yml)
10
+ [![tests status](https://github.com/pixeltable/pixeltable/actions/workflows/nightly.yml/badge.svg)](https://github.com/pixeltable/pixeltable/actions/workflows/nightly.yml)
9
11
  [![PyPI Package](https://img.shields.io/pypi/v/pixeltable?color=darkorange)](https://pypi.org/project/pixeltable/)
10
12
 
11
- [Installation](https://pixeltable.github.io/pixeltable/getting-started/) | [Documentation](https://pixeltable.readme.io/) | [API Reference](https://pixeltable.github.io/pixeltable/) | [Code Samples](https://pixeltable.readme.io/recipes) | [Examples](https://github.com/pixeltable/pixeltable/tree/release/docs/release/tutorials)
13
+ [Installation](https://pixeltable.github.io/pixeltable/getting-started/) | [Documentation](https://pixeltable.readme.io/) | [API Reference](https://pixeltable.github.io/pixeltable/) | [Code Samples](https://github.com/pixeltable/pixeltable?tab=readme-ov-file#-code-samples) | [Computer Vision](https://docs.pixeltable.com/docs/object-detection-in-videos) | [LLM](https://docs.pixeltable.com/docs/document-indexing-and-rag)
12
14
  </div>
13
15
 
14
- Pixeltable is a Python library providing a declarative interface for multimodal data (text, images, audio, video). It features built-in versioning, lineage tracking, and incremental updates, enabling users to store, transform, index, and iterate on data for their ML workflows. Data transformations, model inference, and custom logic are embedded as computed columns.
16
+ Pixeltable is a Python library providing a declarative interface for multimodal data (text, images, audio, video). It features built-in versioning, lineage tracking, and incremental updates, enabling users to **store**, **transform**, **index**, and **iterate** on data for their ML workflows.
17
+
18
+ Data transformations, model inference, and custom logic are embedded as **computed columns**.
19
+ - **Load/Query all data types**: Interact with [video data](https://github.com/pixeltable/pixeltable?tab=readme-ov-file#import-media-data-into-pixeltable-videos-images-audio) at the [frame level](https://github.com/pixeltable/pixeltable?tab=readme-ov-file#text-and-image-similarity-search-on-video-frames-with-embedding-indexes) and documents at the [chunk level](https://github.com/pixeltable/pixeltable?tab=readme-ov-file#automate-data-operations-with-views-eg-split-documents-into-chunks)
20
+ - **Incremental updates for data transformation**: Maintain an [embedding index](https://docs.pixeltable.com/docs/embedding-vector-indexes) colocated with your data
21
+ - **Lazy evaluation and cache management**: Eliminates the need for [manual frame extraction](https://docs.pixeltable.com/docs/object-detection-in-videos)
22
+ - **Integrates with any Python libraries**: Use [built-in and custom functions (UDFs)](https://docs.pixeltable.com/docs/user-defined-functions-udfs) without complex pipelines
23
+ - **Data format agnostic and extensibility**: Access tables as Parquet files, [PyTorch datasets](https://pixeltable.github.io/pixeltable/api/data-frame/#pixeltable.DataFrame.to_pytorch_dataset), or [COCO annotations](https://pixeltable.github.io/pixeltable/api/table/#pixeltable.Table.to_coco_dataset)
15
24
 
16
25
  ## 💾 Installation
17
26
 
@@ -4,7 +4,7 @@ from .exceptions import Error
4
4
  from .exprs import RELATIVE_PATH_ROOT
5
5
  from .func import Function, udf, Aggregator, uda, expr_udf
6
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
7
+ list_dirs, list_functions, configure_logging, array
8
8
  from .type_system import (
9
9
  ColumnType,
10
10
  StringType,
@@ -1,3 +1,3 @@
1
1
  # These version placeholders will be replaced during build.
2
- __version__ = "0.2.18"
3
- __version_tuple__ = (0, 2, 18)
2
+ __version__ = "0.2.20"
3
+ __version_tuple__ = (0, 2, 20)
@@ -10,6 +10,7 @@ import pixeltable as pxt
10
10
  import pixeltable.type_system as ts
11
11
  from pixeltable import exceptions as excs
12
12
  from pixeltable.env import Env
13
+ from pixeltable.utils.filecache import FileCache
13
14
 
14
15
  from .catalog import Catalog
15
16
  from .globals import UpdateStatus
@@ -101,21 +102,22 @@ class InsertableTable(Table):
101
102
  if not isinstance(row, dict):
102
103
  raise excs.Error('rows must be a list of dictionaries')
103
104
  self._validate_input_rows(rows)
104
- result = self._tbl_version.insert(rows, None, print_stats=print_stats, fail_on_exception=fail_on_exception)
105
+ status = self._tbl_version.insert(rows, None, print_stats=print_stats, fail_on_exception=fail_on_exception)
105
106
 
106
- if result.num_excs == 0:
107
+ if status.num_excs == 0:
107
108
  cols_with_excs_str = ''
108
109
  else:
109
110
  cols_with_excs_str = \
110
- f' across {len(result.cols_with_excs)} column{"" if len(result.cols_with_excs) == 1 else "s"}'
111
- cols_with_excs_str += f' ({", ".join(result.cols_with_excs)})'
111
+ f' across {len(status.cols_with_excs)} column{"" if len(status.cols_with_excs) == 1 else "s"}'
112
+ cols_with_excs_str += f' ({", ".join(status.cols_with_excs)})'
112
113
  msg = (
113
- f'Inserted {result.num_rows} row{"" if result.num_rows == 1 else "s"} '
114
- f'with {result.num_excs} error{"" if result.num_excs == 1 else "s"}{cols_with_excs_str}.'
114
+ f'Inserted {status.num_rows} row{"" if status.num_rows == 1 else "s"} '
115
+ f'with {status.num_excs} error{"" if status.num_excs == 1 else "s"}{cols_with_excs_str}.'
115
116
  )
116
117
  print(msg)
117
118
  _logger.info(f'InsertableTable {self._name}: {msg}')
118
- return result
119
+ FileCache.get().emit_eviction_warnings()
120
+ return status
119
121
 
120
122
  def _validate_input_rows(self, rows: List[Dict[str, Any]]) -> None:
121
123
  """Verify that the input rows match the table schema"""
@@ -2,7 +2,6 @@ from __future__ import annotations
2
2
 
3
3
  import abc
4
4
  import builtins
5
- import itertools
6
5
  import json
7
6
  import logging
8
7
  from pathlib import Path
@@ -21,6 +20,7 @@ import pixeltable.exprs as exprs
21
20
  import pixeltable.index as index
22
21
  import pixeltable.metadata.schema as schema
23
22
  import pixeltable.type_system as ts
23
+ from pixeltable.utils.filecache import FileCache
24
24
 
25
25
  from .column import Column
26
26
  from .globals import _ROWID_COLUMN_NAME, UpdateStatus, is_system_column_name, is_valid_identifier
@@ -34,7 +34,12 @@ if TYPE_CHECKING:
34
34
  _logger = logging.getLogger('pixeltable')
35
35
 
36
36
  class Table(SchemaObject):
37
- """Base class for table objects (base tables, views, snapshots)."""
37
+ """
38
+ Base class for table objects (base tables, views, snapshots).
39
+
40
+ Every user-invoked operation that runs an ExecNode tree (directly or indirectly) needs to call
41
+ FileCache.emit_eviction_warnings() at the end of the operation.
42
+ """
38
43
 
39
44
  def __init__(self, id: UUID, dir_id: UUID, name: str, tbl_version_path: TableVersionPath):
40
45
  super().__init__(id, name, dir_id)
@@ -375,7 +380,10 @@ class Table(SchemaObject):
375
380
 
376
381
  new_col = self._create_columns({col_name: col_schema})[0]
377
382
  self._verify_column(new_col, set(self._schema.keys()), set(self._query_names))
378
- return self._tbl_version.add_column(new_col, print_stats=print_stats)
383
+ status = self._tbl_version.add_column(new_col, print_stats=print_stats)
384
+ FileCache.get().emit_eviction_warnings()
385
+ return status
386
+
379
387
 
380
388
  @classmethod
381
389
  def _validate_column_spec(cls, name: str, spec: dict[str, Any]) -> None:
@@ -588,6 +596,7 @@ class Table(SchemaObject):
588
596
  idx = EmbeddingIndex(col, metric=metric, string_embed=string_embed, image_embed=image_embed)
589
597
  status = self._tbl_version.add_index(col, idx_name=idx_name, idx=idx)
590
598
  # TODO: how to deal with exceptions here? drop the index and raise?
599
+ FileCache.get().emit_eviction_warnings()
591
600
 
592
601
  def drop_embedding_index(self, *, column_name: Optional[str] = None, idx_name: Optional[str] = None) -> None:
593
602
  """Drop an embedding index from the table.
@@ -733,7 +742,9 @@ class Table(SchemaObject):
733
742
  >>> tbl.update({'int_col': tbl.int_col + 1}, where=tbl.int_col == 0)
734
743
  """
735
744
  self._check_is_dropped()
736
- return self._tbl_version.update(value_spec, where, cascade)
745
+ status = self._tbl_version.update(value_spec, where, cascade)
746
+ FileCache.get().emit_eviction_warnings()
747
+ return status
737
748
 
738
749
  def batch_update(
739
750
  self, rows: Iterable[dict[str, Any]], cascade: bool = True,
@@ -790,9 +801,11 @@ class Table(SchemaObject):
790
801
  missing_cols = pk_col_names - set(col.name for col in col_vals.keys())
791
802
  raise excs.Error(f'Primary key columns ({", ".join(missing_cols)}) missing in {row_spec}')
792
803
  row_updates.append(col_vals)
793
- return self._tbl_version.batch_update(
804
+ status = self._tbl_version.batch_update(
794
805
  row_updates, rowids, error_if_not_exists=if_not_exists == 'error',
795
806
  insert_if_not_exists=if_not_exists == 'insert', cascade=cascade)
807
+ FileCache.get().emit_eviction_warnings()
808
+ return status
796
809
 
797
810
  def delete(self, where: Optional['pixeltable.exprs.Expr'] = None) -> UpdateStatus:
798
811
  """Delete rows in this table.
@@ -147,7 +147,7 @@ class TableVersion:
147
147
  module = importlib.import_module(module_name)
148
148
  self.iterator_cls = getattr(module, class_name)
149
149
  self.iterator_args = exprs.InlineDict.from_dict(tbl_md.view_md.iterator_args)
150
- output_schema, _ = self.iterator_cls.output_schema(**self.iterator_args.to_dict())
150
+ output_schema, _ = self.iterator_cls.output_schema(**self.iterator_args.to_kwargs())
151
151
  self.num_iterator_cols = len(output_schema)
152
152
  assert tbl_md.view_md.iterator_args is not None
153
153
 
@@ -94,7 +94,7 @@ class View(Table):
94
94
  ]
95
95
  sig = func.Signature(InvalidType(), params)
96
96
  from pixeltable.exprs import FunctionCall
97
- FunctionCall.normalize_args(sig, bound_args)
97
+ FunctionCall.normalize_args(iterator_cls.__name__, sig, bound_args)
98
98
  except TypeError as e:
99
99
  raise Error(f'Cannot instantiate iterator with given arguments: {e}')
100
100
 
@@ -501,7 +501,7 @@ class DataFrame:
501
501
  elif isinstance(raw_expr, dict):
502
502
  select_list.append((exprs.InlineDict(raw_expr), name))
503
503
  elif isinstance(raw_expr, list):
504
- select_list.append((exprs.InlineArray(raw_expr), name))
504
+ select_list.append((exprs.InlineList(raw_expr), name))
505
505
  else:
506
506
  select_list.append((exprs.Literal(raw_expr), name))
507
507
  expr = select_list[-1][0]