openlineage-python 1.37.0__tar.gz → 1.38.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 (138) hide show
  1. openlineage_python-1.38.0/LICENSE +201 -0
  2. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/PKG-INFO +8 -2
  3. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/client.py +57 -38
  4. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/constants.py +1 -1
  5. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/event_v2.py +2 -0
  6. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/facet_v2.py +4 -0
  7. openlineage_python-1.38.0/openlineage/client/generated/base_subset_dataset.py +110 -0
  8. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/catalog_dataset.py +4 -1
  9. openlineage_python-1.38.0/openlineage/client/generated/data_quality_metrics_dataset.py +62 -0
  10. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/data_quality_metrics_input_dataset.py +16 -1
  11. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generator/base.py +1 -1
  12. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generator/templates/dataclass.jinja2 +1 -0
  13. openlineage_python-1.38.0/openlineage/client/generator/templates/root.jinja2 +13 -0
  14. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generator/templates/validators.jinja2 +2 -1
  15. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/__init__.py +4 -0
  16. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/async_http.py +1 -1
  17. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/composite.py +1 -1
  18. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/factory.py +3 -3
  19. openlineage_python-1.38.0/openlineage/client/transport/file.py +222 -0
  20. openlineage_python-1.38.0/openlineage/client/transport/gcplineage.py +221 -0
  21. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/http.py +21 -16
  22. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/pyproject.toml +18 -4
  23. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/redact_fields.yml +30 -0
  24. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/example_full_event.json +11 -0
  25. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_client.py +172 -51
  26. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_facet.py +15 -1
  27. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_facet_v2.py +5 -2
  28. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_factory.py +28 -6
  29. openlineage_python-1.38.0/tests/test_file.py +586 -0
  30. openlineage_python-1.38.0/tests/test_gcplineage.py +498 -0
  31. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_http.py +77 -3
  32. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/transform/test_transform.py +12 -3
  33. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/transform/transformers/test_job_namespace_replace_transformer.py +1 -2
  34. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tox.ini +2 -0
  35. openlineage_python-1.37.0/openlineage/client/generator/templates/root.jinja2 +0 -1
  36. openlineage_python-1.37.0/openlineage/client/transport/file.py +0 -61
  37. openlineage_python-1.37.0/tests/test_file.py +0 -220
  38. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/.gitignore +0 -0
  39. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/README.md +0 -0
  40. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/docs/Makefile +0 -0
  41. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/docs/conf.py +0 -0
  42. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/docs/convert.py +0 -0
  43. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/docs/index.rst +0 -0
  44. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/docs/make.bat +0 -0
  45. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/docs/source/openlineage.client.rst +0 -0
  46. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/__init__.py +0 -0
  47. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/facet.py +0 -0
  48. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/facets.py +0 -0
  49. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/filter.py +0 -0
  50. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/base.py +0 -0
  51. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/column_lineage_dataset.py +0 -0
  52. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/data_quality_assertions_dataset.py +0 -0
  53. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/dataset_type_dataset.py +0 -0
  54. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/dataset_version_dataset.py +0 -0
  55. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/datasource_dataset.py +0 -0
  56. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/documentation_dataset.py +0 -0
  57. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/documentation_job.py +0 -0
  58. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/environment_variables_run.py +0 -0
  59. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/error_message_run.py +0 -0
  60. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/external_query_run.py +0 -0
  61. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/extraction_error_run.py +0 -0
  62. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/input_statistics_input_dataset.py +0 -0
  63. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/job_type_job.py +0 -0
  64. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/lifecycle_state_change_dataset.py +0 -0
  65. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/nominal_time_run.py +0 -0
  66. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/output_statistics_output_dataset.py +0 -0
  67. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/ownership_dataset.py +0 -0
  68. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/ownership_job.py +0 -0
  69. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/parent_run.py +0 -0
  70. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/processing_engine_run.py +0 -0
  71. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/schema_dataset.py +0 -0
  72. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/source_code_job.py +0 -0
  73. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/source_code_location_job.py +0 -0
  74. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/sql_job.py +0 -0
  75. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/storage_dataset.py +0 -0
  76. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/symlinks_dataset.py +0 -0
  77. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/tags_dataset.py +0 -0
  78. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/tags_job.py +0 -0
  79. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generated/tags_run.py +0 -0
  80. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generator/cli.py +0 -0
  81. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generator/generate.py +0 -0
  82. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generator/header.py +0 -0
  83. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generator/templates/Enum.jinja2 +0 -0
  84. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/generator/templates/facet_v2.jinja2 +0 -0
  85. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/naming/__init__.py +0 -0
  86. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/naming/dataset.py +0 -0
  87. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/py.typed +0 -0
  88. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/run.py +0 -0
  89. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/serde.py +0 -0
  90. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/tags.py +0 -0
  91. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/amazon_datazone.py +0 -0
  92. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/console.py +0 -0
  93. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/datadog.py +0 -0
  94. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/kafka.py +0 -0
  95. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/msk_iam.py +0 -0
  96. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/noop.py +0 -0
  97. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/transform/__init__.py +0 -0
  98. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/transform/transform.py +0 -0
  99. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/transform/transformers/__init__.py +0 -0
  100. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/transform/transformers/job_namespace_replace_transformer.py +0 -0
  101. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/transport/transport.py +0 -0
  102. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/utils.py +0 -0
  103. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/openlineage/client/uuid.py +0 -0
  104. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/__init__.py +0 -0
  105. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/config/config.yml +0 -0
  106. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/config/exact_filter.yml +0 -0
  107. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/config/http.yml +0 -0
  108. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/config/openlineage.yml +0 -0
  109. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/config/regex_filter.yml +0 -0
  110. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/config/test-transport.yaml +0 -0
  111. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/conftest.py +0 -0
  112. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/fixtures/events.py +0 -0
  113. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/fixtures/mock_responses.py +0 -0
  114. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/generator/__init__.py +0 -0
  115. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/generator/test_base.py +0 -0
  116. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/generator/test_cli.py +0 -0
  117. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/integration/docker-compose.yml +0 -0
  118. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/integration/test_server/Dockerfile +0 -0
  119. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/integration/test_server/requirements.txt +0 -0
  120. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/integration/test_server/test_server.py +0 -0
  121. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/nominal_time_without_end.json +0 -0
  122. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/serde_example_dataset_event.json +0 -0
  123. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/serde_example_job_event.json +0 -0
  124. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/serde_example_run_event.json +0 -0
  125. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_amazon_datazone.py +0 -0
  126. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_async_http.py +0 -0
  127. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_composite.py +0 -0
  128. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_datadog.py +0 -0
  129. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_dataset.py +0 -0
  130. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_events.py +0 -0
  131. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_http_integration.py +0 -0
  132. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_kafka.py +0 -0
  133. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_msk_iam.py +0 -0
  134. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_utils.py +0 -0
  135. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/test_uuid.py +0 -0
  136. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/transform/__init__.py +0 -0
  137. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/transform/transformers/__init__.py +0 -0
  138. {openlineage_python-1.37.0 → openlineage_python-1.38.0}/tests/transport.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,9 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openlineage-python
3
- Version: 1.37.0
3
+ Version: 1.38.0
4
4
  Summary: OpenLineage Python Client
5
5
  Author-email: OpenLineage <info@openlineage.io>
6
+ License-File: LICENSE
6
7
  Keywords: openlineage
8
+ Classifier: License :: OSI Approved :: Apache Software License
7
9
  Classifier: Operating System :: OS Independent
8
10
  Classifier: Programming Language :: Python
9
11
  Classifier: Programming Language :: Python :: 3 :: Only
@@ -27,9 +29,13 @@ Requires-Dist: beautifulsoup4>=4.12.0; extra == 'docs'
27
29
  Requires-Dist: pydata-sphinx-theme>=0.13; extra == 'docs'
28
30
  Requires-Dist: sphinx-autodoc-typehints>=2.0.0; extra == 'docs'
29
31
  Requires-Dist: sphinx>=7.0; extra == 'docs'
32
+ Provides-Extra: fsspec
33
+ Requires-Dist: fsspec>=2023.1.0; extra == 'fsspec'
34
+ Provides-Extra: gcplineage
35
+ Requires-Dist: google-cloud-datacatalog-lineage>=0.3.14; extra == 'gcplineage'
30
36
  Provides-Extra: generator
31
37
  Requires-Dist: click; extra == 'generator'
32
- Requires-Dist: datamodel-code-generator==0.25.4; extra == 'generator'
38
+ Requires-Dist: datamodel-code-generator==0.33.0; extra == 'generator'
33
39
  Requires-Dist: ruff; extra == 'generator'
34
40
  Provides-Extra: kafka
35
41
  Requires-Dist: confluent-kafka>=2.1.1; extra == 'kafka'
@@ -11,16 +11,10 @@ from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
11
11
 
12
12
  import attr
13
13
  import yaml
14
- from openlineage.client import event_v2
14
+ from openlineage.client import constants, event_v2
15
+ from openlineage.client.facet_v2 import environment_variables_run, tags_job, tags_run
15
16
  from openlineage.client.facets import FacetsConfig
16
17
  from openlineage.client.filter import Filter, FilterConfig, create_filter
17
- from openlineage.client.generated.environment_variables_run import (
18
- EnvironmentVariable,
19
- EnvironmentVariablesRunFacet,
20
- )
21
- from openlineage.client.generated.tags_job import TagsJobFacet, TagsJobFacetFields
22
- from openlineage.client.generated.tags_run import TagsRunFacet, TagsRunFacetFields
23
- from openlineage.client.run import DatasetEvent, JobEvent, RunEvent
24
18
  from openlineage.client.serde import Serde
25
19
  from openlineage.client.tags import TagsConfig
26
20
  from openlineage.client.transport import (
@@ -32,6 +26,10 @@ from openlineage.client.transport.http import HttpConfig, HttpTransport
32
26
  from openlineage.client.transport.noop import NoopConfig, NoopTransport
33
27
  from openlineage.client.utils import deep_merge_dicts
34
28
 
29
+ with warnings.catch_warnings():
30
+ warnings.simplefilter("ignore", DeprecationWarning)
31
+ from openlineage.client.run import DatasetEvent, JobEvent, RunEvent
32
+
35
33
  if TYPE_CHECKING:
36
34
  from requests import Session
37
35
  from requests.adapters import HTTPAdapter
@@ -161,6 +159,9 @@ class OpenLineageClient:
161
159
  msg = "`emit` only accepts RunEvent, DatasetEvent, JobEvent classes"
162
160
  raise ValueError(msg)
163
161
 
162
+ event = self.add_environment_facets(event)
163
+ event = self.update_event_tags_facets(event)
164
+
164
165
  if log.isEnabledFor(logging.DEBUG):
165
166
  val = Serde.to_json(event).encode("utf-8")
166
167
  log.debug("OpenLineageClient will *try* to emit event %s", val)
@@ -175,9 +176,6 @@ class OpenLineageClient:
175
176
  log.debug("OpenLineage event has been filtered out and will not be emitted.")
176
177
  return
177
178
 
178
- event = self.add_environment_facets(event)
179
- event = self.update_event_tags_facets(event)
180
-
181
179
  self.transport.emit(event)
182
180
  log.debug("OpenLineage event successfully emitted.")
183
181
 
@@ -310,15 +308,15 @@ class OpenLineageClient:
310
308
  """
311
309
  Create HTTP transport from legacy environment variables
312
310
  """
313
- # Start with basic config from legacy environment variables
314
- config_dict = {
311
+ config_dict: dict[str, Any] = {
315
312
  "url": os.environ["OPENLINEAGE_URL"],
316
- "auth": {
317
- "type": "api_key",
318
- "apiKey": os.environ.get("OPENLINEAGE_API_KEY", ""),
319
- },
320
313
  "endpoint": os.environ.get("OPENLINEAGE_ENDPOINT", "api/v1/lineage"),
321
314
  }
315
+ if api_key := os.environ.get("OPENLINEAGE_API_KEY"):
316
+ config_dict["auth"] = {
317
+ "type": "api_key",
318
+ "apiKey": api_key,
319
+ }
322
320
  return HttpTransport(HttpConfig.from_dict(config_dict))
323
321
 
324
322
  @staticmethod
@@ -424,9 +422,10 @@ class OpenLineageClient:
424
422
  env_vars := self._collect_environment_variables()
425
423
  ):
426
424
  event.run.facets = event.run.facets or {}
427
- event.run.facets["environmentVariables"] = EnvironmentVariablesRunFacet(
425
+ event.run.facets["environmentVariables"] = environment_variables_run.EnvironmentVariablesRunFacet(
428
426
  environmentVariables=[
429
- EnvironmentVariable(name=name, value=value) for name, value in env_vars.items()
427
+ environment_variables_run.EnvironmentVariable(name=name, value=value)
428
+ for name, value in env_vars.items()
430
429
  ]
431
430
  )
432
431
  return event
@@ -444,35 +443,54 @@ class OpenLineageClient:
444
443
  )
445
444
  return filtered_vars
446
445
 
446
+ @property
447
+ def _job_tags(self) -> list[tags_job.TagsJobFacetFields]:
448
+ _default_tags: dict[str, str] = {}
449
+ user_job_tags = [
450
+ tags_job.TagsJobFacetFields(key, value, "USER") for (key, value) in self.config.tags.job.items()
451
+ ]
452
+ default_job_tags = [
453
+ tags_job.TagsJobFacetFields(key, value, "OPENLINEAGE_CLIENT")
454
+ for (key, value) in _default_tags.items()
455
+ ]
456
+ return [*user_job_tags, *default_job_tags]
457
+
458
+ @property
459
+ def _run_tags(self) -> list[tags_run.TagsRunFacetFields]:
460
+ _default_tags: dict[str, str] = {"openlineage_client_version": constants.__version__}
461
+ user_run_tags = [
462
+ tags_run.TagsRunFacetFields(key, value, "USER") for (key, value) in self.config.tags.run.items()
463
+ ]
464
+ default_run_tags = [
465
+ tags_run.TagsRunFacetFields(key, value, "OPENLINEAGE_CLIENT")
466
+ for (key, value) in _default_tags.items()
467
+ ]
468
+ return [*user_run_tags, *default_run_tags]
469
+
447
470
  def update_event_tags_facets(self, event: Event) -> Event:
448
471
  """
449
472
  Creates or updates job and run tag facets based on user-supplied environment variables
450
473
  """
451
474
  run_event_types = (RunEvent, event_v2.RunEvent)
452
475
  run_and_job_event_types = (RunEvent, event_v2.RunEvent, JobEvent, event_v2.JobEvent)
453
- # tags_job = self.config.tags.job
454
- tags_job = [TagsJobFacetFields(key, value, "USER") for (key, value) in self.config.tags.job.items()]
455
- if isinstance(event, run_and_job_event_types) and tags_job:
456
- # Ensure facets exists
457
- event.job.facets = {} if not event.job.facets else event.job.facets
458
- tags_facet = event.job.facets.get("tags", TagsJobFacet())
459
- event.job.facets["tags"] = self._update_tag_facet(tags_facet, tags_job) # type: ignore [arg-type, assignment]
460
-
461
- # tags_run = self.config.tags.run
462
- tags_run = [TagsRunFacetFields(key, value, "USER") for (key, value) in self.config.tags.run.items()]
463
- if isinstance(event, run_event_types) and tags_run:
464
- # Ensure facets exists
465
- event.run.facets = {} if not event.run.facets else event.run.facets
466
- tags_facet = event.run.facets.get("tags", TagsRunFacet())
467
- event.run.facets["tags"] = self._update_tag_facet(tags_facet, tags_run) # type: ignore [arg-type, assignment]
476
+
477
+ if isinstance(event, run_and_job_event_types) and self._job_tags:
478
+ event.job.facets = {} if not event.job.facets else event.job.facets # Ensure facets exists
479
+ tags_facet = event.job.facets.get("tags", tags_job.TagsJobFacet())
480
+ event.job.facets["tags"] = self._update_tag_facet(tags_facet, self._job_tags) # type: ignore [arg-type, assignment]
481
+
482
+ if isinstance(event, run_event_types) and self._run_tags:
483
+ event.run.facets = {} if not event.run.facets else event.run.facets # Ensure facets exists
484
+ tags_facet = event.run.facets.get("tags", tags_run.TagsRunFacet())
485
+ event.run.facets["tags"] = self._update_tag_facet(tags_facet, self._run_tags) # type: ignore [arg-type, assignment]
468
486
 
469
487
  return event
470
488
 
471
489
  @staticmethod
472
490
  def _update_tag_facet(
473
- tags_facet: TagsJobFacet | TagsRunFacet,
474
- user_tags: list[TagsJobFacetFields | TagsRunFacetFields],
475
- ) -> TagsJobFacet | TagsRunFacet:
491
+ tags_facet: tags_job.TagsJobFacet | tags_run.TagsRunFacet,
492
+ user_tags: list[tags_job.TagsJobFacetFields | tags_run.TagsRunFacetFields],
493
+ ) -> tags_job.TagsJobFacet | tags_run.TagsRunFacet:
476
494
  """
477
495
  Handles updating tags in an existing tag facet
478
496
  """
@@ -492,7 +510,8 @@ class OpenLineageClient:
492
510
  for user_tag in user_tags:
493
511
  if user_tag.key in facet_tag_keys:
494
512
  facet_tag_key = facet_tag_keys[user_tag.key]
495
- log.info("Overriding integration-supplied tag `%s` with user-supplied tag", facet_tag_key)
513
+ if user_tag.source == "USER":
514
+ log.info("Overriding integration-supplied tag `%s` with user-supplied tag", facet_tag_key)
496
515
  user_tag.key = facet_tag_key
497
516
 
498
517
  all_tags = keep_tags + user_tags
@@ -2,7 +2,7 @@
2
2
  # SPDX-License-Identifier: Apache-2.0
3
3
  from __future__ import annotations
4
4
 
5
- __version__ = "1.37.0"
5
+ __version__ = "1.38.0"
6
6
 
7
7
  DEFAULT_TIMEOUT_MS = 5000
8
8
  DEFAULT_NAMESPACE_NAME = "default"
@@ -13,6 +13,7 @@ from openlineage.client.generated.base import (
13
13
  OutputDataset,
14
14
  Run,
15
15
  RunEvent,
16
+ StaticDataset,
16
17
  set_producer,
17
18
  )
18
19
  from openlineage.client.generated.base import (
@@ -31,5 +32,6 @@ __all__ = [
31
32
  "Run",
32
33
  "RunEvent",
33
34
  "RunState",
35
+ "StaticDataset",
34
36
  "set_producer",
35
37
  ]
@@ -2,9 +2,11 @@
2
2
  # SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  from openlineage.client.generated import (
5
+ base_subset_dataset,
5
6
  catalog_dataset,
6
7
  column_lineage_dataset,
7
8
  data_quality_assertions_dataset,
9
+ data_quality_metrics_dataset,
8
10
  data_quality_metrics_input_dataset,
9
11
  dataset_type_dataset,
10
12
  dataset_version_dataset,
@@ -54,9 +56,11 @@ __all__ = [
54
56
  "OutputDatasetFacet",
55
57
  "RunFacet",
56
58
  "set_producer",
59
+ "base_subset_dataset",
57
60
  "catalog_dataset",
58
61
  "column_lineage_dataset",
59
62
  "data_quality_assertions_dataset",
63
+ "data_quality_metrics_dataset",
60
64
  "data_quality_metrics_input_dataset",
61
65
  "dataset_type_dataset",
62
66
  "dataset_version_dataset",
@@ -0,0 +1,110 @@
1
+ # Copyright 2018-2025 contributors to the OpenLineage project
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ from __future__ import annotations
5
+
6
+ from typing import Any, Union
7
+
8
+ import attr
9
+ from openlineage.client.generated.base import InputDatasetFacet, OutputDatasetFacet
10
+ from openlineage.client.utils import RedactMixin
11
+
12
+ BaseSubsetCondition = Union[
13
+ "LocationSubsetCondition", "PartitionSubsetCondition", "BinarySubsetCondition", "CompareSubsetCondition"
14
+ ]
15
+
16
+
17
+ BaseSubsetDatasetFacet = Union["InputSubsetInputDatasetFacet", "OutputSubsetOutputDatasetFacet"]
18
+
19
+
20
+ @attr.define
21
+ class BinarySubsetCondition(RedactMixin):
22
+ left: BaseSubsetCondition
23
+ right: BaseSubsetCondition
24
+ operator: str
25
+ """Allowed values: 'AND' or 'OR'"""
26
+
27
+ type: str = "binary" # noqa: A003
28
+
29
+ @staticmethod
30
+ def _get_schema() -> str:
31
+ return "https://openlineage.io/spec/facets/1-0-0/BaseSubsetDatasetFacet.json#/$defs/BinarySubsetCondition"
32
+
33
+
34
+ @attr.define
35
+ class CompareSubsetCondition(RedactMixin):
36
+ left: FieldBaseCompareExpression | LiteralCompareExpression
37
+ right: FieldBaseCompareExpression | LiteralCompareExpression
38
+ comparison: str
39
+ """Allowed values: 'EQUAL', 'GREATER_THAN', 'GREATER_EQUAL_THAN', 'LESS_THAN', 'LESS_EQUAL_THAN'"""
40
+
41
+ type: str = "compare" # noqa: A003
42
+
43
+ @staticmethod
44
+ def _get_schema() -> str:
45
+ return "https://openlineage.io/spec/facets/1-0-0/BaseSubsetDatasetFacet.json#/$defs/CompareSubsetCondition"
46
+
47
+
48
+ @attr.define
49
+ class FieldBaseCompareExpression(RedactMixin):
50
+ field: str
51
+ type: str = "field" # noqa: A003
52
+
53
+ @staticmethod
54
+ def _get_schema() -> str:
55
+ return "https://openlineage.io/spec/facets/1-0-0/BaseSubsetDatasetFacet.json#/$defs/FieldBaseCompareExpression"
56
+
57
+
58
+ @attr.define
59
+ class InputSubsetInputDatasetFacet(InputDatasetFacet):
60
+ inputCondition: BaseSubsetCondition # noqa: N815
61
+
62
+ @staticmethod
63
+ def _get_schema() -> str:
64
+ return "https://openlineage.io/spec/facets/1-0-0/BaseSubsetDatasetFacet.json#/$defs/InputSubsetInputDatasetFacet"
65
+
66
+
67
+ @attr.define
68
+ class LiteralCompareExpression(RedactMixin):
69
+ value: str
70
+ type: str = "literal" # noqa: A003
71
+
72
+ @staticmethod
73
+ def _get_schema() -> str:
74
+ return "https://openlineage.io/spec/facets/1-0-0/BaseSubsetDatasetFacet.json#/$defs/LiteralCompareExpression"
75
+
76
+
77
+ @attr.define
78
+ class LocationSubsetCondition(RedactMixin):
79
+ locations: list[str]
80
+ type: str = "location" # noqa: A003
81
+
82
+ @staticmethod
83
+ def _get_schema() -> str:
84
+ return "https://openlineage.io/spec/facets/1-0-0/BaseSubsetDatasetFacet.json#/$defs/LocationSubsetCondition"
85
+
86
+
87
+ @attr.define
88
+ class OutputSubsetOutputDatasetFacet(OutputDatasetFacet):
89
+ outputCondition: BaseSubsetCondition # noqa: N815
90
+
91
+ @staticmethod
92
+ def _get_schema() -> str:
93
+ return "https://openlineage.io/spec/facets/1-0-0/BaseSubsetDatasetFacet.json#/$defs/OutputSubsetOutputDatasetFacet"
94
+
95
+
96
+ @attr.define
97
+ class Partition(RedactMixin):
98
+ dimensions: dict[str, Any]
99
+ identifier: str | None = attr.field(default=None)
100
+ """Optionally provided identifier of the partition specified"""
101
+
102
+
103
+ @attr.define
104
+ class PartitionSubsetCondition(RedactMixin):
105
+ partitions: list[Partition]
106
+ type: str = "partition" # noqa: A003
107
+
108
+ @staticmethod
109
+ def _get_schema() -> str:
110
+ return "https://openlineage.io/spec/facets/1-0-0/BaseSubsetDatasetFacet.json#/$defs/PartitionSubsetCondition"
@@ -27,6 +27,9 @@ class CatalogDatasetFacet(DatasetFacet):
27
27
  source: str | None = attr.field(default=None)
28
28
  """Source system where the catalog is configured."""
29
29
 
30
+ catalogProperties: dict[str, str] | None = attr.field(factory=dict) # noqa: N815
31
+ """Additional catalog properties"""
32
+
30
33
  @staticmethod
31
34
  def _get_schema() -> str:
32
- return "https://openlineage.io/spec/facets/1-0-0/CatalogDatasetFacet.json#/$defs/CatalogDatasetFacet"
35
+ return "https://openlineage.io/spec/facets/1-1-0/CatalogDatasetFacet.json#/$defs/CatalogDatasetFacet"
@@ -0,0 +1,62 @@
1
+ # Copyright 2018-2025 contributors to the OpenLineage project
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ from __future__ import annotations
5
+
6
+ import attr
7
+ from openlineage.client.generated.base import DatasetFacet
8
+ from openlineage.client.utils import RedactMixin
9
+
10
+
11
+ @attr.define
12
+ class ColumnMetrics(RedactMixin):
13
+ nullCount: int | None = attr.field(default=None) # noqa: N815
14
+ """The number of null values in this column for the rows evaluated"""
15
+
16
+ distinctCount: int | None = attr.field(default=None) # noqa: N815
17
+ """The number of distinct values in this column for the rows evaluated"""
18
+
19
+ sum: float | None = attr.field(default=None) # noqa: A003
20
+ """The total sum of values in this column for the rows evaluated"""
21
+
22
+ count: float | None = attr.field(default=None)
23
+ """The number of values in this column"""
24
+
25
+ min: float | None = attr.field(default=None) # noqa: A003
26
+ max: float | None = attr.field(default=None) # noqa: A003
27
+ quantiles: dict[str, float] | None = attr.field(factory=dict)
28
+ """The property key is the quantile. Examples: 0.1 0.25 0.5 0.75 1"""
29
+
30
+
31
+ @attr.define
32
+ class DataQualityMetricsDatasetFacet(DatasetFacet):
33
+ columnMetrics: dict[str, ColumnMetrics] # noqa: N815
34
+ """The property key is the column name"""
35
+
36
+ rowCount: int | None = attr.field(default=None) # noqa: N815
37
+ """The number of rows evaluated"""
38
+
39
+ bytes: int | None = attr.field(default=None) # noqa: A003
40
+ """The size in bytes"""
41
+
42
+ fileCount: int | None = attr.field(default=None) # noqa: N815
43
+ """The number of files evaluated"""
44
+
45
+ lastUpdated: str | None = attr.field(default=None) # noqa: N815
46
+ """The last time the dataset was changed"""
47
+
48
+ @staticmethod
49
+ def _get_schema() -> str:
50
+ return "https://openlineage.io/spec/facets/1-0-0/DataQualityMetricsDatasetFacet.json#/$defs/DataQualityMetricsDatasetFacet"
51
+
52
+ @lastUpdated.validator
53
+ def lastupdated_check(self, attribute: str, value: str) -> None: # noqa: ARG002
54
+ if value is None:
55
+ return
56
+ from dateutil import parser
57
+
58
+ parser.isoparse(value)
59
+ if "t" not in value.lower():
60
+ # make sure date-time contains time
61
+ msg = f"Parsed date-time has to contain time: {value}"
62
+ raise ValueError(msg)
@@ -42,6 +42,21 @@ class DataQualityMetricsInputDatasetFacet(InputDatasetFacet):
42
42
  fileCount: int | None = attr.field(default=None) # noqa: N815
43
43
  """The number of files evaluated"""
44
44
 
45
+ lastUpdated: str | None = attr.field(default=None) # noqa: N815
46
+ """The last time the dataset was changed"""
47
+
45
48
  @staticmethod
46
49
  def _get_schema() -> str:
47
- return "https://openlineage.io/spec/facets/1-0-2/DataQualityMetricsInputDatasetFacet.json#/$defs/DataQualityMetricsInputDatasetFacet"
50
+ return "https://openlineage.io/spec/facets/1-0-3/DataQualityMetricsInputDatasetFacet.json#/$defs/DataQualityMetricsInputDatasetFacet"
51
+
52
+ @lastUpdated.validator
53
+ def lastupdated_check(self, attribute: str, value: str) -> None: # noqa: ARG002
54
+ if value is None:
55
+ return
56
+ from dateutil import parser
57
+
58
+ parser.isoparse(value)
59
+ if "t" not in value.lower():
60
+ # make sure date-time contains time
61
+ msg = f"Parsed date-time has to contain time: {value}"
62
+ raise ValueError(msg)
@@ -32,7 +32,7 @@ def camel_to_snake(string: str) -> str:
32
32
 
33
33
  # import attrs instead of dataclass
34
34
  DATA_MODELS_TYPES = get_data_model_types(
35
- DataModelType.DataclassesDataclass, target_python_version=PythonVersion.PY_38
35
+ DataModelType.DataclassesDataclass, target_python_version=PythonVersion.PY_39
36
36
  )
37
37
  NEW_MODEL = DATA_MODELS_TYPES.data_model
38
38
  NEW_MODEL.DEFAULT_IMPORTS = (Import.from_full_path("attr"),)