ducklakepy 0.1.0.dev0__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.
Files changed (106) hide show
  1. ducklakepy/__init__.py +21 -0
  2. ducklakepy/_arrow.py +962 -0
  3. ducklakepy/_changes.py +315 -0
  4. ducklakepy/_defaults.py +387 -0
  5. ducklakepy/_encodings.py +69 -0
  6. ducklakepy/_globs.py +131 -0
  7. ducklakepy/_hive.py +235 -0
  8. ducklakepy/_inlined_text.py +470 -0
  9. ducklakepy/_interval.py +63 -0
  10. ducklakepy/_interval_text.py +187 -0
  11. ducklakepy/_json_list.py +206 -0
  12. ducklakepy/_lists.py +60 -0
  13. ducklakepy/_literals.py +135 -0
  14. ducklakepy/_logical_values.py +145 -0
  15. ducklakepy/_names.py +95 -0
  16. ducklakepy/_packing.py +200 -0
  17. ducklakepy/_parallel.py +323 -0
  18. ducklakepy/_parquet_sink.py +135 -0
  19. ducklakepy/_paths.py +259 -0
  20. ducklakepy/_promotions.py +197 -0
  21. ducklakepy/_sources.py +126 -0
  22. ducklakepy/_thrift.py +309 -0
  23. ducklakepy/_time_flags.py +134 -0
  24. ducklakepy/_variant.py +472 -0
  25. ducklakepy/_variant_shredding.py +368 -0
  26. ducklakepy/_version.py +12 -0
  27. ducklakepy/_wkb.py +80 -0
  28. ducklakepy/add_files.py +915 -0
  29. ducklakepy/capabilities.py +429 -0
  30. ducklakepy/catalog/__init__.py +2194 -0
  31. ducklakepy/catalog/_dialect.py +730 -0
  32. ducklakepy/catalog/_engine.py +60 -0
  33. ducklakepy/catalog/_entries.py +163 -0
  34. ducklakepy/catalog/_legacy_inlined.py +150 -0
  35. ducklakepy/catalog/_migration.py +211 -0
  36. ducklakepy/catalog/_namespaces.py +232 -0
  37. ducklakepy/catalog/_schema.py +523 -0
  38. ducklakepy/catalog/_statements.py +175 -0
  39. ducklakepy/changes.py +965 -0
  40. ducklakepy/config.py +222 -0
  41. ducklakepy/constants.py +83 -0
  42. ducklakepy/encryption.py +474 -0
  43. ducklakepy/exceptions.py +208 -0
  44. ducklakepy/expressions.py +1146 -0
  45. ducklakepy/inlined.py +347 -0
  46. ducklakepy/io/__init__.py +305 -0
  47. ducklakepy/io/pyarrow.py +227 -0
  48. ducklakepy/maintenance/__init__.py +95 -0
  49. ducklakepy/maintenance/_bounds.py +235 -0
  50. ducklakepy/maintenance/_common.py +423 -0
  51. ducklakepy/maintenance/_versions.py +130 -0
  52. ducklakepy/maintenance/checkpoint.py +470 -0
  53. ducklakepy/maintenance/cleanup.py +206 -0
  54. ducklakepy/maintenance/compaction.py +988 -0
  55. ducklakepy/maintenance/expire.py +469 -0
  56. ducklakepy/maintenance/orphans.py +217 -0
  57. ducklakepy/options.py +816 -0
  58. ducklakepy/partitioning/__init__.py +945 -0
  59. ducklakepy/partitioning/_bounds.py +255 -0
  60. ducklakepy/partitioning/_value_text.py +130 -0
  61. ducklakepy/plan.py +1200 -0
  62. ducklakepy/properties.py +54 -0
  63. ducklakepy/puffin.py +689 -0
  64. ducklakepy/py.typed +0 -0
  65. ducklakepy/rows.py +325 -0
  66. ducklakepy/scan.py +1156 -0
  67. ducklakepy/schema.py +455 -0
  68. ducklakepy/schema_update.py +1143 -0
  69. ducklakepy/snapshots.py +354 -0
  70. ducklakepy/sorting.py +436 -0
  71. ducklakepy/spark/__init__.py +79 -0
  72. ducklakepy/spark/_feed.py +279 -0
  73. ducklakepy/spark/_options.py +316 -0
  74. ducklakepy/spark/_read.py +240 -0
  75. ducklakepy/spark/_schemas.py +292 -0
  76. ducklakepy/spark/_source.py +118 -0
  77. ducklakepy/spark/_write.py +509 -0
  78. ducklakepy/stats/__init__.py +972 -0
  79. ducklakepy/stats/_blob_text.py +45 -0
  80. ducklakepy/stats/_footer.py +280 -0
  81. ducklakepy/stats/_skipped.py +125 -0
  82. ducklakepy/stats/_temporal.py +361 -0
  83. ducklakepy/table.py +555 -0
  84. ducklakepy/tags.py +116 -0
  85. ducklakepy/transaction/__init__.py +3910 -0
  86. ducklakepy/transaction/_commit_sql.py +1293 -0
  87. ducklakepy/transaction/_companions.py +156 -0
  88. ducklakepy/transaction/_conflicts.py +581 -0
  89. ducklakepy/transaction/_delete_files.py +117 -0
  90. ducklakepy/transaction/_entries.py +778 -0
  91. ducklakepy/transaction/_float_bounds.py +115 -0
  92. ducklakepy/transaction/_keys.py +154 -0
  93. ducklakepy/transaction/_namespaces.py +115 -0
  94. ducklakepy/transaction/_null_bounds.py +176 -0
  95. ducklakepy/transaction/_operations.py +146 -0
  96. ducklakepy/transaction/_staged.py +585 -0
  97. ducklakepy/transaction/_table_stats.py +76 -0
  98. ducklakepy/types.py +423 -0
  99. ducklakepy/version.py +161 -0
  100. ducklakepy/views.py +477 -0
  101. ducklakepy/write_options.py +369 -0
  102. ducklakepy/writer.py +944 -0
  103. ducklakepy-0.1.0.dev0.dist-info/METADATA +124 -0
  104. ducklakepy-0.1.0.dev0.dist-info/RECORD +106 -0
  105. ducklakepy-0.1.0.dev0.dist-info/WHEEL +4 -0
  106. ducklakepy-0.1.0.dev0.dist-info/licenses/LICENSE +202 -0
ducklakepy/__init__.py ADDED
@@ -0,0 +1,21 @@
1
+ """ducklakepy: a Python implementation of the DuckLake specification."""
2
+
3
+ from ducklakepy._version import __version__
4
+ from ducklakepy.catalog import DuckLakeCatalog
5
+ from ducklakepy.config import CatalogConfig, load_catalog
6
+ from ducklakepy.partitioning import PartitionKey, PartitionSpec, Transform
7
+ from ducklakepy.sorting import SortKey, SortOrder, asc, desc
8
+
9
+ __all__ = [
10
+ "CatalogConfig",
11
+ "DuckLakeCatalog",
12
+ "PartitionKey",
13
+ "PartitionSpec",
14
+ "SortKey",
15
+ "SortOrder",
16
+ "Transform",
17
+ "__version__",
18
+ "asc",
19
+ "desc",
20
+ "load_catalog",
21
+ ]