dynamicio 9.2.2__tar.gz → 10.0.0__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.
Files changed (197) hide show
  1. {dynamicio-9.2.2 → dynamicio-10.0.0}/AGENTS.md +3 -0
  2. {dynamicio-9.2.2 → dynamicio-10.0.0}/CHANGELOG.md +28 -0
  3. {dynamicio-9.2.2 → dynamicio-10.0.0}/PKG-INFO +317 -188
  4. {dynamicio-9.2.2 → dynamicio-10.0.0}/README.md +286 -186
  5. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/src/__init__.py +2 -2
  6. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/src/__main__.py +1 -1
  7. {dynamicio-9.2.2/demo/src → dynamicio-10.0.0/demo/src/config}/environment.py +1 -1
  8. {dynamicio-9.2.2/demo → dynamicio-10.0.0/demo/src}/resources/definitions/input.yaml +3 -9
  9. {dynamicio-9.2.2/demo → dynamicio-10.0.0/demo/src}/resources/definitions/processed.yaml +0 -4
  10. dynamicio-10.0.0/demo/src/resources/io.py +29 -0
  11. dynamicio-10.0.0/demo/src/resources/schemas/__init__.py +1 -0
  12. dynamicio-10.0.0/demo/src/resources/schemas/input.py +39 -0
  13. dynamicio-10.0.0/demo/src/resources/schemas/processed.py +30 -0
  14. dynamicio-10.0.0/demo/src/resources/schemas/raw.py +28 -0
  15. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/src/runners/staging.py +6 -4
  16. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/src/runners/transform.py +6 -5
  17. {dynamicio-9.2.2/demo/tests → dynamicio-10.0.0/demo/tests/config}/constants.py +1 -1
  18. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/conftest.py +1 -1
  19. dynamicio-10.0.0/demo/tests/data/input/orders/part_2026.parquet +0 -0
  20. {dynamicio-9.2.2/demo/tests → dynamicio-10.0.0/demo/tests/resources}/test_prefix_schema_evolution.py +17 -16
  21. {dynamicio-9.2.2/demo/tests → dynamicio-10.0.0/demo/tests/runners/utils}/test_runner_selection.py +1 -1
  22. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/adr/0002-tolerate-missing-columns-in-parquet-prefix-reads.md +1 -1
  23. dynamicio-10.0.0/docs/adr/0005-pandera-schema-declaration.md +32 -0
  24. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/adr/README.md +1 -0
  25. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/api.md +1 -1
  26. dynamicio-10.0.0/docs/images/data-formats.svg +13 -0
  27. dynamicio-10.0.0/docs/images/how-it-works.svg +13 -0
  28. dynamicio-10.0.0/docs/images/pandera-banner.png +0 -0
  29. dynamicio-10.0.0/docs/images/sample-pipeline.svg +13 -0
  30. dynamicio-10.0.0/docs/images/supported-sources.svg +13 -0
  31. dynamicio-10.0.0/docs/images/supported_sources.png +0 -0
  32. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/cli.py +21 -0
  33. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/config/pydantic/io_resources.py +6 -3
  34. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/core.py +54 -12
  35. dynamicio-10.0.0/dynamicio/metrics.py +7 -0
  36. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/mixins/with_postgres.py +33 -10
  37. dynamicio-10.0.0/dynamicio/schema/__init__.py +5 -0
  38. {dynamicio-9.2.2/dynamicio → dynamicio-10.0.0/dynamicio/schema}/metrics.py +2 -1
  39. dynamicio-10.0.0/dynamicio/schema/migrate.py +343 -0
  40. dynamicio-10.0.0/dynamicio/schema/models.py +115 -0
  41. {dynamicio-9.2.2/dynamicio → dynamicio-10.0.0/dynamicio/schema}/validations.py +40 -1
  42. dynamicio-10.0.0/dynamicio/validations.py +7 -0
  43. {dynamicio-9.2.2 → dynamicio-10.0.0}/pyproject.toml +2 -1
  44. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/mocking/io.py +1 -1
  45. dynamicio-10.0.0/tests/resources/data/input/batch/not_just_hdf/something_to_ignore.txt +0 -0
  46. dynamicio-10.0.0/tests/resources/data/input/batch/not_just_parquet/something_to_ignore.txt +0 -0
  47. dynamicio-10.0.0/tests/resources/data/processed/.gitkeep +0 -0
  48. dynamicio-10.0.0/tests/resources/data/temp/.gitkeep +0 -0
  49. dynamicio-10.0.0/tests/test_contracts/__init__.py +0 -0
  50. dynamicio-10.0.0/tests/test_contracts/conftest.py +155 -0
  51. dynamicio-10.0.0/tests/test_contracts/test_metrics_contract.py +166 -0
  52. dynamicio-10.0.0/tests/test_contracts/test_schema_argument.py +45 -0
  53. dynamicio-10.0.0/tests/test_contracts/test_schema_declaration_contract.py +121 -0
  54. dynamicio-10.0.0/tests/test_contracts/test_validation_contract.py +133 -0
  55. dynamicio-10.0.0/tests/test_dtype_matching.py +60 -0
  56. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_metrics.py +1 -1
  57. dynamicio-10.0.0/tests/test_migrate.py +177 -0
  58. dynamicio-10.0.0/tests/test_mixins/__init__.py +0 -0
  59. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_mixins/test_postgres_mixins.py +149 -3
  60. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_mixins/test_s3_mixins.py +10 -10
  61. dynamicio-10.0.0/tests/test_module_aliases.py +18 -0
  62. dynamicio-10.0.0/tests/test_pandera_constructs.py +157 -0
  63. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_validations.py +1 -1
  64. {dynamicio-9.2.2 → dynamicio-10.0.0}/uv.lock +44 -17
  65. dynamicio-9.2.2/demo/resources/schemas/input/bar.yaml +0 -40
  66. dynamicio-9.2.2/demo/resources/schemas/input/events.yaml +0 -23
  67. dynamicio-9.2.2/demo/resources/schemas/input/foo.yaml +0 -40
  68. dynamicio-9.2.2/demo/resources/schemas/processed/final_bar.yaml +0 -40
  69. dynamicio-9.2.2/demo/resources/schemas/processed/final_foo.yaml +0 -40
  70. dynamicio-9.2.2/demo/src/io.py +0 -38
  71. dynamicio-9.2.2/demo/tests/data/input/events/part_2026.parquet +0 -0
  72. dynamicio-9.2.2/docs/images/supported_sources.png +0 -0
  73. {dynamicio-9.2.2 → dynamicio-10.0.0}/.claude/skills/create-pr/SKILL.md +0 -0
  74. {dynamicio-9.2.2 → dynamicio-10.0.0}/.coveragerc +0 -0
  75. {dynamicio-9.2.2 → dynamicio-10.0.0}/.flake8 +0 -0
  76. {dynamicio-9.2.2 → dynamicio-10.0.0}/.github/CODEOWNERS +0 -0
  77. {dynamicio-9.2.2 → dynamicio-10.0.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  78. {dynamicio-9.2.2 → dynamicio-10.0.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  79. {dynamicio-9.2.2 → dynamicio-10.0.0}/.github/dependabot.yml +0 -0
  80. {dynamicio-9.2.2 → dynamicio-10.0.0}/.github/pull_request_template.md +0 -0
  81. {dynamicio-9.2.2 → dynamicio-10.0.0}/.github/workflows/build_and_publish.yml +0 -0
  82. {dynamicio-9.2.2 → dynamicio-10.0.0}/.github/workflows/pr_title_checker.yml +0 -0
  83. {dynamicio-9.2.2 → dynamicio-10.0.0}/.gitignore +0 -0
  84. {dynamicio-9.2.2 → dynamicio-10.0.0}/.gitlint +0 -0
  85. {dynamicio-9.2.2 → dynamicio-10.0.0}/.pre-commit-config.yaml +0 -0
  86. {dynamicio-9.2.2 → dynamicio-10.0.0}/.pylintrc +0 -0
  87. {dynamicio-9.2.2 → dynamicio-10.0.0}/.python-version +0 -0
  88. {dynamicio-9.2.2 → dynamicio-10.0.0}/.yamllint +0 -0
  89. {dynamicio-9.2.2 → dynamicio-10.0.0}/CONTRIBUTING.md +0 -0
  90. {dynamicio-9.2.2 → dynamicio-10.0.0}/LICENSE +0 -0
  91. {dynamicio-9.2.2 → dynamicio-10.0.0}/Makefile +0 -0
  92. {dynamicio-9.2.2 → dynamicio-10.0.0}/catalog-info.yaml +0 -0
  93. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/__init__.py +0 -0
  94. {dynamicio-9.2.2/demo/src/runners → dynamicio-10.0.0/demo/src/config}/__init__.py +0 -0
  95. {dynamicio-9.2.2/demo/src → dynamicio-10.0.0/demo/src/config}/constants.py +0 -0
  96. {dynamicio-9.2.2/demo/tests → dynamicio-10.0.0/demo/src/resources}/__init__.py +0 -0
  97. {dynamicio-9.2.2/demo → dynamicio-10.0.0/demo/src}/resources/definitions/raw.yaml +0 -0
  98. {dynamicio-9.2.2/demo/tests → dynamicio-10.0.0/demo/src}/runners/__init__.py +0 -0
  99. {dynamicio-9.2.2/tests → dynamicio-10.0.0/demo/src/runners/utils}/__init__.py +0 -0
  100. {dynamicio-9.2.2/demo/src → dynamicio-10.0.0/demo/src/runners/utils}/runner_selection.py +0 -0
  101. {dynamicio-9.2.2/tests/mocking → dynamicio-10.0.0/demo/tests}/__init__.py +0 -0
  102. {dynamicio-9.2.2/tests/test_mixins → dynamicio-10.0.0/demo/tests/config}/__init__.py +0 -0
  103. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/data/input/bar.parquet +0 -0
  104. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/data/input/foo.csv +0 -0
  105. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/data/processed/expected/final_bar.parquet +0 -0
  106. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/data/processed/expected/final_foo.parquet +0 -0
  107. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/data/raw/expected/staged_bar.parquet +0 -0
  108. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/data/raw/expected/staged_foo.parquet +0 -0
  109. /dynamicio-9.2.2/demo/tests/runners/conftest.py → /dynamicio-10.0.0/demo/tests/resources/__init__.py +0 -0
  110. /dynamicio-9.2.2/dynamicio/animals.py → /dynamicio-10.0.0/demo/tests/runners/__init__.py +0 -0
  111. /dynamicio-9.2.2/dynamicio/py.typed → /dynamicio-10.0.0/demo/tests/runners/conftest.py +0 -0
  112. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/runners/test_staging.py +0 -0
  113. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/runners/test_transform.py +0 -0
  114. /dynamicio-9.2.2/tests/resources/data/input/batch/not_just_hdf/something_to_ignore.txt → /dynamicio-10.0.0/demo/tests/runners/utils/__init__.py +0 -0
  115. {dynamicio-9.2.2 → dynamicio-10.0.0}/demo/tests/test_pipeline.py +0 -0
  116. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/adr/0001-direct-boto3-s3-io.md +0 -0
  117. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/adr/0003-athena-via-aws-wrangler.md +0 -0
  118. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/adr/0004-ranged-parquet-reads-with-filters.md +0 -0
  119. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/images/data-types.png +0 -0
  120. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/images/logo-original.png +0 -0
  121. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/images/logo-transparent.png +0 -0
  122. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/images/perf-awswrangler-vs-awscli/chart_read.png +0 -0
  123. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/images/perf-awswrangler-vs-awscli/chart_read_correction.png +0 -0
  124. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/images/perf-awswrangler-vs-awscli/chart_write.png +0 -0
  125. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/images/perf-pipeline-run/pipeline-task-delta.png +0 -0
  126. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/images/sample-pipeline.png +0 -0
  127. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/images/wrapped-panda.png +0 -0
  128. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/index.md +0 -0
  129. {dynamicio-9.2.2 → dynamicio-10.0.0}/docs/perf-s3-io.md +0 -0
  130. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/__init__.py +0 -0
  131. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/__main__.py +0 -0
  132. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/config/__init__.py +0 -0
  133. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/config/io_config.py +0 -0
  134. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/config/pydantic/__init__.py +0 -0
  135. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/config/pydantic/config.py +0 -0
  136. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/config/pydantic/table_schema.py +0 -0
  137. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/errors.py +0 -0
  138. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/mixins/__init__.py +0 -0
  139. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/mixins/utils.py +0 -0
  140. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/mixins/with_athena.py +0 -0
  141. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/mixins/with_kafka.py +0 -0
  142. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/mixins/with_local.py +0 -0
  143. {dynamicio-9.2.2 → dynamicio-10.0.0}/dynamicio/mixins/with_s3.py +0 -0
  144. /dynamicio-9.2.2/tests/resources/data/input/batch/not_just_parquet/something_to_ignore.txt → /dynamicio-10.0.0/dynamicio/py.typed +0 -0
  145. {dynamicio-9.2.2 → dynamicio-10.0.0}/mkdocs.yaml +0 -0
  146. /dynamicio-9.2.2/tests/resources/data/processed/.gitkeep → /dynamicio-10.0.0/tests/__init__.py +0 -0
  147. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/conftest.py +0 -0
  148. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/constants.py +0 -0
  149. /dynamicio-9.2.2/tests/resources/data/temp/.gitkeep → /dynamicio-10.0.0/tests/mocking/__init__.py +0 -0
  150. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/mocking/models.py +0 -0
  151. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/external/h5_with_more_columns.h5 +0 -0
  152. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/external/json_with_more_columns.json +0 -0
  153. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/hdf/part_01.h5 +0 -0
  154. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/hdf/part_02.h5 +0 -0
  155. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/not_just_hdf/part_01.h5 +0 -0
  156. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/not_just_hdf/part_02.h5 +0 -0
  157. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/not_just_parquet/part_01.parquet +0 -0
  158. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/not_just_parquet/part_02.parquet +0 -0
  159. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/parquet/dynamic/dir_01/part_01.parquet +0 -0
  160. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/parquet/dynamic/dir_01/part_02.parquet +0 -0
  161. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/parquet/dynamic/dir_02/part_01.parquet +0 -0
  162. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/parquet/dynamic/dir_02/part_02.parquet +0 -0
  163. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/parquet/part_01.parquet +0 -0
  164. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/parquet/part_02.parquet +0 -0
  165. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/parquet_w_empty_files/emptyfile.parquet +0 -0
  166. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/batch/parquet_w_empty_files/fullfile.parquet +0 -0
  167. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/multi_row_json.json +0 -0
  168. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/single_row_json.json +0 -0
  169. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/some_csv_to_read.csv +0 -0
  170. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/some_hdf_to_read.h5 +0 -0
  171. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/some_json_to_read.json +0 -0
  172. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/some_parquet_to_read.parquet +0 -0
  173. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/data/input/some_pg_parquet_to_read.parquet +0 -0
  174. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/definitions/external.yaml +0 -0
  175. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/definitions/input.yaml +0 -0
  176. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/definitions/processed.yaml +0 -0
  177. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/definitions/test_input.yaml +0 -0
  178. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/bar.yaml +0 -0
  179. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/foo.yaml +0 -0
  180. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/pg.yaml +0 -0
  181. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/read_from_s3_csv.yaml +0 -0
  182. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/some_csv_to_read.yaml +0 -0
  183. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/some_hdf_to_read.yaml +0 -0
  184. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/some_json_to_read.yaml +0 -0
  185. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/some_parquet_to_read.yaml +0 -0
  186. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/some_pg_parquet_to_read.yaml +0 -0
  187. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/resources/schemas/write_to_s3_csv.yaml +0 -0
  188. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_cli.py +0 -0
  189. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_config.py +0 -0
  190. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_core.py +0 -0
  191. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_errors.py +0 -0
  192. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_mixins/test_athena_mixin.py +0 -0
  193. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_mixins/test_kafka_mixins.py +0 -0
  194. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_mixins/test_local_mixins.py +0 -0
  195. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_mixins/test_reusable_io.py +0 -0
  196. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_mixins/test_utils.py +0 -0
  197. {dynamicio-9.2.2 → dynamicio-10.0.0}/tests/test_table_schema.py +0 -0
@@ -97,4 +97,7 @@ Do not publish a release candidate just to test locally. Release candidates are
97
97
 
98
98
  - Commit and PR titles are semantic: `type(RND-12345): subject` (types: feat, fix, perf, docs, test, chore, ci, ...); the PR title
99
99
  checker enforces it.
100
+ - Prefer methods, static methods and small single-purpose classes over loose module-level functions: a function belongs to the class whose data or
101
+ concept it serves (a pure helper is a `@staticmethod`), which keeps related behaviour in one place and lowers cognitive load. Where a function was
102
+ already importable, keep its name as a module-level alias of the method.
100
103
  - Keep diffs focused; keep the surrounding style (Google-style docstrings, `pydocstyle` convention google).
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## v10.0.0
4
+
5
+ - fix: `dynamicio migrate` writes a YAML `object` column as `Series[object]`, not `Series[str]`. `object` meant "any values", and list columns declared `str` fail plain Pandera validation (and would be recast under pandas 3). Models already generated with `Series[str]` for list columns should be changed to `Series[object]`; the generated module now says where `str` is safe
6
+ - docs: the README diagrams are now text-driven SVGs (supported sources with Athena next to S3, Postgres and Kafka; the sample pipeline as an Airflow DAG; how a read works; the file formats), they render on GitHub and on PyPI, and the Pandera logo is shown in the Pandera models step. The table of contents anchors and the `CONTRIBUTING.md` link are fixed, and the dependency list names what the package really uses. The `demo/` example datasets are generic (`orders`).
7
+ - fix: the dtype check compares dtypes instead of their names. A column already at `string[pyarrow]` (whose name is `string`) was recast on every read and logged a casting warning; a bare `category` still accepts any categorical dtype and a bare `string` any string storage (`string[python]` or `string[pyarrow]` ask for one). A declared type pandas does not know is reported by the cast as before. Columns that were cast before are cast as before
8
+ - feat: Pandera constructs that dynamicio has no validator for now run instead of being ignored or raising a bare `KeyError`. Column checks such as `str_matches`, `str_length` and custom `@pa.check` run as Pandera checks; `@pa.dataframe_check`, `Config.unique`, `Config.ordered` and index declarations run on the whole frame. Failures are raised in `SchemaValidationError` under the check's name
9
+ - feat: Pandera options dynamicio cannot honour (`Config.strict = True`, `add_missing_columns`, `on_missing_columns`, `unique_column_names`, `drop_invalid_rows`, `parsers`, `dtype`, and per column `regex`, `required=False`, `default`, `on_missing`) and non-pandas (for example polars) models raise `ValueError` when the schema is compiled, instead of being dropped. Use `strict = "filter"`. `coerce` is honoured through the compiled dtype (a nullable int becomes `Int64`)
10
+ - fix: `Series[str]` compiles to the pandas default string dtype (`object` on pandas 2, `str` on pandas 3) instead of a hard-coded `object`. Existing pandas 2 behaviour is unchanged
11
+ - feat: models written by `dynamicio migrate` set `strict = "filter"`, so `Model.validate(df)` on its own drops columns that are not in the schema, as dynamicio does. `coerce` stays off: Pandera would turn a nullable int column into `Int64`, where dynamicio casts to `int64`. Dynamicio's own validation is unchanged
12
+ - fix: no more `UserWarning: Valid config keys have changed in V2: 'underscore_attrs_are_private' has been removed` on import under pydantic 2. The key is now only set under pydantic 1, where it is needed to keep `IOEnvironment._parent` private
13
+ - fix: `WithPostgres` reads and writes work when the table is declared only by a Pandera model. The table name and columns come from the resource YAML's `schema` when it has one (unchanged), otherwise from the model (`Config.name` is the table name). Before, a postgres resource without a YAML schema failed with `AssertionError: The schema must be specified for SQL tables`
14
+ - feat: `dynamicio migrate -o <package dir>` writes one models module per sub-directory of the YAML schemas (the grouping by runner and input/output carries over); `-o file.py` still writes a single module. The README recommends one models module per runner stage or definitions file, and the `demo/` project now follows it (`demo/src/resources/schemas/{input,processed}.py`)
15
+ - fix: `dynamicio migrate` handles real-world schemas: mixed-type `is_in` values (incl. `null`), `is_between` bounds that are `[[ VARIABLES ]]`, dtype aliases such as `double`/`int`, and explicit default options; a failed parity check now lists the differing columns.
16
+ - refactor: schema modules now live in a `dynamicio.schema` subpackage (`schema.validations`, `schema.metrics`, `schema.models`, `schema.migrate`). `dynamicio.validations` and `dynamicio.metrics` keep working as aliases of the same module objects, and the `dynamicio.metrics` logger name is unchanged. `dynamicio.pandera_schema` and `dynamicio.migrate` (new in 10.0.0-rc.1 only) moved to `dynamicio.schema.models` and `dynamicio.schema.migrate` without aliases.
17
+ - refactor: the helpers of `dynamicio.schema` are grouped into classes (`ModelCompiler`, and for `migrate`: `SchemaComparison`, `ModelRenderer`, `LegacyDeclarations`, `MigrationPrompt`, `Migration`), and `_is_declared_dtype` is a static method of `DynamicDataIO`. The public function names (`to_dataframe_schema`, `dataframe_validator`, `migrate`, `render_model`, `render_module`, `compile_module`, `schemas_equivalent`, ...) remain as aliases, so imports keep working.
18
+ - chore: raise the `numpy` floor to 1.24.4, the oldest release Pandera 0.34 accepts (found by the `dependency-ranges (lowest)` job).
19
+ - Docs: README review. Fixed stale schema wording, the `is_between` `include_right` default, the casting-failure exception (`ColumnsDataTypeError`), unique Step 4.3 anchors, and added a summary of validation/metrics behaviour to the closing notes.
20
+ - test: `tests/test_contracts/` pins the validation, metric, lifecycle-order and dtype behaviour that the schema work must preserve, for every schema declaration style
21
+ - feat: schemas can be declared as Pandera `DataFrameModel` classes (`class MyIO(UnifiedIO): schema = MyModel`). Dynamicio's validators and metric logging are unchanged, so error payloads and `METRIC` log lines are identical to the YAML and dict styles. `pandera` is now a required dependency. Anything Pandera cannot express natively goes in `Field(metadata={"dynamicio": {"validations": {...}, "metrics": [...]}})`. Note Pandera's default is `nullable=False`; dynamicio's YAML allowed nulls unless `has_no_null_values` was declared
22
+ - fix: when the same validation fails on several columns, `SchemaValidationError.message` now holds every column's message (joined with `; ` under the one validation-name key). Previously only the last column's message survived
23
+ - feat: `schema=` constructor argument and `SCHEMA_FROM_ARGUMENT` placeholder, so one IO class can take a different Pandera model per instance (the Pandera counterpart of `SCHEMA_FROM_FILE`). The argument takes precedence over the class attribute
24
+ - feat: `dynamicio migrate <schemas dir> -o schemas.py` converts YAML schemas to Pandera models (dataset names, validations and metrics preserved, verified by a parity check) and writes `MIGRATION_PROMPT.md` listing the call sites to update by hand or with an LLM. The existing `-b/-s` schema generator is unchanged
25
+ - docs: README Step 4.1 (Pandera models) and migration guide, ADR 0005; the `demo/` project now declares its schemas as Pandera models and keeps its resource definitions, models and IO classes together under `demo/src/resources` (with `environment.py` and `constants.py` under `demo/src/config`), with `demo/tests` mirroring `demo/src`, documented in the README as the recommended pipeline project structure
26
+
27
+ ## v9.2.3
28
+
29
+ - fix: `WithPostgres` builds one SQLAlchemy model per table definition and reuses it, instead of a new same-named class on every read or write. The classes piled up in the declarative registry, and SQLAlchemy's cleanup of them could raise a `RecursionError` during garbage collection (seen as a failing test on the lowest-dependency CI job). Each definition has its own declarative base, so two definitions of one table cannot alter each other's columns, and the cache is thread-safe for `async_read` / `async_write`. Queries and tables are unchanged.
30
+
3
31
  ## v9.2.2
4
32
 
5
33
  - fix: an IO object can be read or written repeatedly. A read or write removed values from `self.options`, so a second call on the same object failed or read the wrong data. The second call of a path with template fields (for example `{runner_id}`) raised `ValueError: Expected values for all fields`. Three cases gave no error. The S3 path-prefix read removed `no_disk_space`. The Athena read removed `query`, and the Postgres read removed `sql_query`, so the second read ran the default query and returned wrong data. Each call now works on a copy of the options, and `self.options` does not change. The two private methods `WithS3._read_parquet_object` and `WithS3._concat_parquet_objects` are removed. The module-level functions with the same names are unchanged