structurize 3.9.3__tar.gz → 3.9.5__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 (235) hide show
  1. {structurize-3.9.3/structurize.egg-info → structurize-3.9.5}/PKG-INFO +7 -7
  2. {structurize-3.9.3 → structurize-3.9.5}/avrotize/_version.py +3 -3
  3. structurize-3.9.5/avrotize/avrotocpp/CMakeLists.txt.jinja +77 -0
  4. structurize-3.9.5/avrotize/avrotocpp/build.bat.jinja +7 -0
  5. structurize-3.9.5/avrotize/avrotocpp/build.sh.jinja +7 -0
  6. structurize-3.9.5/avrotize/avrotocpp/dataclass_body.jinja +108 -0
  7. structurize-3.9.5/avrotize/avrotocpp/vcpkg.json.jinja +21 -0
  8. structurize-3.9.5/avrotize/avrotocsharp/README.md.jinja +166 -0
  9. structurize-3.9.5/avrotize/avrotocsharp/class_test.cs.jinja +297 -0
  10. structurize-3.9.5/avrotize/avrotocsharp/dataclass_core.jinja +361 -0
  11. structurize-3.9.5/avrotize/avrotocsharp/enum_test.cs.jinja +20 -0
  12. structurize-3.9.5/avrotize/avrotocsharp/project.csproj.jinja +34 -0
  13. structurize-3.9.5/avrotize/avrotocsharp/project.sln.jinja +34 -0
  14. structurize-3.9.5/avrotize/avrotocsharp/run_coverage.ps1.jinja +98 -0
  15. structurize-3.9.5/avrotize/avrotocsharp/run_coverage.sh.jinja +149 -0
  16. structurize-3.9.5/avrotize/avrotocsharp/testproject.csproj.jinja +29 -0
  17. structurize-3.9.5/avrotize/avrotogo/go_enum.jinja +65 -0
  18. structurize-3.9.5/avrotize/avrotogo/go_helpers.jinja +42 -0
  19. structurize-3.9.5/avrotize/avrotogo/go_struct.jinja +181 -0
  20. structurize-3.9.5/avrotize/avrotogo/go_test.jinja +35 -0
  21. structurize-3.9.5/avrotize/avrotogo/go_union.jinja +38 -0
  22. structurize-3.9.5/avrotize/avrotogo/xml_helpers.jinja +147 -0
  23. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotogo.py +4 -3
  24. structurize-3.9.5/avrotize/avrotojava/class_test.java.jinja +233 -0
  25. structurize-3.9.5/avrotize/avrotojava/enum_test.java.jinja +21 -0
  26. structurize-3.9.5/avrotize/avrotojava/testproject.pom.jinja +54 -0
  27. structurize-3.9.5/avrotize/avrotojs/package.json.jinja +11 -0
  28. structurize-3.9.5/avrotize/avrotomd/README.md.jinja +49 -0
  29. structurize-3.9.5/avrotize/avrotopython/dataclass_core.jinja +295 -0
  30. structurize-3.9.5/avrotize/avrotopython/enum_core.jinja +97 -0
  31. structurize-3.9.5/avrotize/avrotopython/pyproject_toml.jinja +21 -0
  32. structurize-3.9.5/avrotize/avrotopython/test_class.jinja +97 -0
  33. structurize-3.9.5/avrotize/avrotopython/test_enum.jinja +22 -0
  34. structurize-3.9.5/avrotize/avrotorust/dataclass_enum.rs.jinja +197 -0
  35. structurize-3.9.5/avrotize/avrotorust/dataclass_struct.rs.jinja +621 -0
  36. structurize-3.9.5/avrotize/avrotorust/dataclass_union.rs.jinja +541 -0
  37. structurize-3.9.5/avrotize/avrotots/class_core.ts.jinja +172 -0
  38. structurize-3.9.5/avrotize/avrotots/class_test.ts.jinja +77 -0
  39. structurize-3.9.5/avrotize/avrotots/enum_core.ts.jinja +46 -0
  40. structurize-3.9.5/avrotize/avrotots/gitignore.jinja +34 -0
  41. structurize-3.9.5/avrotize/avrotots/index.ts.jinja +0 -0
  42. structurize-3.9.5/avrotize/avrotots/package.json.jinja +24 -0
  43. structurize-3.9.5/avrotize/avrotots/tsconfig.json.jinja +21 -0
  44. structurize-3.9.5/avrotize/avrotots/xml_runtime.ts.jinja +314 -0
  45. structurize-3.9.5/avrotize/dependencies/cs/net100/dependencies.csproj +30 -0
  46. structurize-3.9.5/avrotize/dependencies/cs/net90/dependencies.csproj +30 -0
  47. structurize-3.9.5/avrotize/dependencies/go/go121/go.mod +6 -0
  48. structurize-3.9.5/avrotize/dependencies/java/jdk21/pom.xml +106 -0
  49. structurize-3.9.5/avrotize/dependencies/python/py312/requirements.txt +13 -0
  50. structurize-3.9.5/avrotize/dependencies/rust/stable/Cargo.toml +17 -0
  51. {structurize-3.9.3 → structurize-3.9.5}/avrotize/dependencies/typescript/node22/package.json +4 -0
  52. structurize-3.9.5/avrotize/generic/generic.avsc +57 -0
  53. structurize-3.9.5/avrotize/java/xml_support.java.jinja +389 -0
  54. structurize-3.9.5/avrotize/javascript/xml_runtime.js.jinja +452 -0
  55. structurize-3.9.5/avrotize/prototypes/any.avsc +19 -0
  56. structurize-3.9.5/avrotize/prototypes/api.avsc +106 -0
  57. structurize-3.9.5/avrotize/prototypes/duration.avsc +20 -0
  58. structurize-3.9.5/avrotize/prototypes/field_mask.avsc +18 -0
  59. structurize-3.9.5/avrotize/prototypes/struct.avsc +60 -0
  60. structurize-3.9.5/avrotize/prototypes/timestamp.avsc +20 -0
  61. structurize-3.9.5/avrotize/prototypes/type.avsc +253 -0
  62. structurize-3.9.5/avrotize/prototypes/wrappers.avsc +117 -0
  63. structurize-3.9.5/avrotize/python_xml_runtime.jinja +354 -0
  64. structurize-3.9.5/avrotize/rust/xml_support.rs.jinja +332 -0
  65. structurize-3.9.5/avrotize/structuretocpp/CMakeLists.txt.jinja +76 -0
  66. structurize-3.9.5/avrotize/structuretocpp/build.bat.jinja +3 -0
  67. structurize-3.9.5/avrotize/structuretocpp/build.sh.jinja +3 -0
  68. structurize-3.9.5/avrotize/structuretocpp/dataclass_body.jinja +50 -0
  69. structurize-3.9.5/avrotize/structuretocpp/vcpkg.json.jinja +11 -0
  70. structurize-3.9.5/avrotize/structuretocsharp/class_test.cs.jinja +180 -0
  71. structurize-3.9.5/avrotize/structuretocsharp/dataclass_core.jinja +310 -0
  72. structurize-3.9.5/avrotize/structuretocsharp/enum_test.cs.jinja +36 -0
  73. structurize-3.9.5/avrotize/structuretocsharp/json_structure_converters.cs.jinja +399 -0
  74. structurize-3.9.5/avrotize/structuretocsharp/program.cs.jinja +49 -0
  75. structurize-3.9.5/avrotize/structuretocsharp/project.csproj.jinja +26 -0
  76. structurize-3.9.5/avrotize/structuretocsharp/project.sln.jinja +34 -0
  77. structurize-3.9.5/avrotize/structuretocsharp/testproject.csproj.jinja +28 -0
  78. structurize-3.9.5/avrotize/structuretocsharp/tuple_converter.cs.jinja +121 -0
  79. structurize-3.9.5/avrotize/structuretogo/go_enum.jinja +56 -0
  80. structurize-3.9.5/avrotize/structuretogo/go_helpers.jinja +26 -0
  81. structurize-3.9.5/avrotize/structuretogo/go_interface.jinja +18 -0
  82. structurize-3.9.5/avrotize/structuretogo/go_struct.jinja +162 -0
  83. structurize-3.9.5/avrotize/structuretogo/go_test.jinja +89 -0
  84. structurize-3.9.5/avrotize/structuretogo/xml_helpers.jinja +147 -0
  85. structurize-3.9.5/avrotize/structuretojava/choice_core.jinja +34 -0
  86. structurize-3.9.5/avrotize/structuretojava/class_core.jinja +36 -0
  87. structurize-3.9.5/avrotize/structuretojava/enum_core.jinja +24 -0
  88. structurize-3.9.5/avrotize/structuretojava/equals_hashcode.jinja +30 -0
  89. structurize-3.9.5/avrotize/structuretojava/pom.xml.jinja +47 -0
  90. structurize-3.9.5/avrotize/structuretojava/tuple_core.jinja +49 -0
  91. structurize-3.9.5/avrotize/structuretojs/class_core.js.jinja +58 -0
  92. structurize-3.9.5/avrotize/structuretojs/enum_core.js.jinja +20 -0
  93. structurize-3.9.5/avrotize/structuretojs/package.json.jinja +15 -0
  94. structurize-3.9.5/avrotize/structuretojs/test_class.js.jinja +84 -0
  95. structurize-3.9.5/avrotize/structuretojs/test_enum.js.jinja +58 -0
  96. structurize-3.9.5/avrotize/structuretojs/test_runner.js.jinja +45 -0
  97. structurize-3.9.5/avrotize/structuretomd/README.md.jinja +204 -0
  98. structurize-3.9.5/avrotize/structuretopython/dataclass_core.jinja +773 -0
  99. structurize-3.9.5/avrotize/structuretopython/enum_core.jinja +55 -0
  100. structurize-3.9.5/avrotize/structuretopython/map_alias.jinja +21 -0
  101. structurize-3.9.5/avrotize/structuretopython/pyproject_toml.jinja +26 -0
  102. structurize-3.9.5/avrotize/structuretopython/test_class.jinja +103 -0
  103. structurize-3.9.5/avrotize/structuretopython/test_enum.jinja +34 -0
  104. structurize-3.9.5/avrotize/structuretorust/dataclass_enum.rs.jinja +83 -0
  105. structurize-3.9.5/avrotize/structuretorust/dataclass_struct.rs.jinja +379 -0
  106. structurize-3.9.5/avrotize/structuretorust/dataclass_union.rs.jinja +195 -0
  107. structurize-3.9.5/avrotize/structuretots/class_core.ts.jinja +149 -0
  108. structurize-3.9.5/avrotize/structuretots/enum_core.ts.jinja +6 -0
  109. structurize-3.9.5/avrotize/structuretots/gitignore.jinja +8 -0
  110. structurize-3.9.5/avrotize/structuretots/index.ts.jinja +1 -0
  111. structurize-3.9.5/avrotize/structuretots/package.json.jinja +42 -0
  112. structurize-3.9.5/avrotize/structuretots/test_class.ts.jinja +35 -0
  113. structurize-3.9.5/avrotize/structuretots/tsconfig.json.jinja +21 -0
  114. structurize-3.9.5/avrotize/structuretots/xml_runtime.ts.jinja +314 -0
  115. {structurize-3.9.3 → structurize-3.9.5}/pyproject.toml +18 -7
  116. {structurize-3.9.3 → structurize-3.9.5/structurize.egg-info}/PKG-INFO +7 -7
  117. {structurize-3.9.3 → structurize-3.9.5}/structurize.egg-info/SOURCES.txt +111 -0
  118. {structurize-3.9.3 → structurize-3.9.5}/structurize.egg-info/requires.txt +6 -6
  119. structurize-3.9.5/structurize.egg-info/scm_file_list.json +10 -0
  120. {structurize-3.9.3 → structurize-3.9.5}/.gitignore +0 -0
  121. {structurize-3.9.3 → structurize-3.9.5}/LICENSE +0 -0
  122. {structurize-3.9.3 → structurize-3.9.5}/MANIFEST.in +0 -0
  123. {structurize-3.9.3 → structurize-3.9.5}/README.md +0 -0
  124. {structurize-3.9.3 → structurize-3.9.5}/avrotize/__init__.py +0 -0
  125. {structurize-3.9.3 → structurize-3.9.5}/avrotize/__main__.py +0 -0
  126. {structurize-3.9.3 → structurize-3.9.5}/avrotize/asn1toavro.py +0 -0
  127. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotize.py +0 -0
  128. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotoasn1.py +0 -0
  129. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotocapnproto.py +0 -0
  130. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotocpp.py +0 -0
  131. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotocsharp.py +0 -0
  132. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotocsv.py +0 -0
  133. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotocue.py +0 -0
  134. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotodatapackage.py +0 -0
  135. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotodb.py +0 -0
  136. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotoflatbuffers.py +0 -0
  137. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotographql.py +0 -0
  138. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotoiceberg.py +0 -0
  139. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotojava.py +0 -0
  140. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotojs.py +0 -0
  141. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotojsons.py +0 -0
  142. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotojstruct.py +0 -0
  143. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotojtd.py +0 -0
  144. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotokusto.py +0 -0
  145. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotomd.py +0 -0
  146. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotools.py +0 -0
  147. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotoparquet.py +0 -0
  148. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotoproto.py +0 -0
  149. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotopython.py +0 -0
  150. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotoraml.py +0 -0
  151. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotorust.py +0 -0
  152. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotosmithy.py +0 -0
  153. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotosurreal.py +0 -0
  154. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotothrift.py +0 -0
  155. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotots.py +0 -0
  156. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrototsml.py +0 -0
  157. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrotoxsd.py +0 -0
  158. {structurize-3.9.3 → structurize-3.9.5}/avrotize/avrovalidator.py +0 -0
  159. {structurize-3.9.3 → structurize-3.9.5}/avrotize/capnprototoavro.py +0 -0
  160. {structurize-3.9.3 → structurize-3.9.5}/avrotize/cddltostructure.py +0 -0
  161. {structurize-3.9.3 → structurize-3.9.5}/avrotize/choice_inference.py +0 -0
  162. {structurize-3.9.3 → structurize-3.9.5}/avrotize/commands.json +0 -0
  163. {structurize-3.9.3 → structurize-3.9.5}/avrotize/common.py +0 -0
  164. {structurize-3.9.3 → structurize-3.9.5}/avrotize/constants.py +0 -0
  165. {structurize-3.9.3 → structurize-3.9.5}/avrotize/csvtoavro.py +0 -0
  166. {structurize-3.9.3 → structurize-3.9.5}/avrotize/cuetoavro.py +0 -0
  167. {structurize-3.9.3 → structurize-3.9.5}/avrotize/cuetostructure.py +0 -0
  168. {structurize-3.9.3 → structurize-3.9.5}/avrotize/datapackagetoavro.py +0 -0
  169. {structurize-3.9.3 → structurize-3.9.5}/avrotize/dependencies/cpp/vcpkg/vcpkg.json +0 -0
  170. {structurize-3.9.3 → structurize-3.9.5}/avrotize/dependency_resolver.py +0 -0
  171. {structurize-3.9.3 → structurize-3.9.5}/avrotize/dependency_version.py +0 -0
  172. {structurize-3.9.3 → structurize-3.9.5}/avrotize/flatbufferstoavro.py +0 -0
  173. {structurize-3.9.3 → structurize-3.9.5}/avrotize/flatbufferstojstruct.py +0 -0
  174. {structurize-3.9.3 → structurize-3.9.5}/avrotize/jsonstoavro.py +0 -0
  175. {structurize-3.9.3 → structurize-3.9.5}/avrotize/jsonstostructure.py +0 -0
  176. {structurize-3.9.3 → structurize-3.9.5}/avrotize/jsontoschema.py +0 -0
  177. {structurize-3.9.3 → structurize-3.9.5}/avrotize/jstructtoavro.py +0 -0
  178. {structurize-3.9.3 → structurize-3.9.5}/avrotize/jstructtoflatbuffers.py +0 -0
  179. {structurize-3.9.3 → structurize-3.9.5}/avrotize/jstructtoraml.py +0 -0
  180. {structurize-3.9.3 → structurize-3.9.5}/avrotize/jstructtosmithy.py +0 -0
  181. {structurize-3.9.3 → structurize-3.9.5}/avrotize/jtdtoavro.py +0 -0
  182. {structurize-3.9.3 → structurize-3.9.5}/avrotize/jtdtostructure.py +0 -0
  183. {structurize-3.9.3 → structurize-3.9.5}/avrotize/kstructtoavro.py +0 -0
  184. {structurize-3.9.3 → structurize-3.9.5}/avrotize/kustotoavro.py +0 -0
  185. {structurize-3.9.3 → structurize-3.9.5}/avrotize/kustotojstruct.py +0 -0
  186. {structurize-3.9.3 → structurize-3.9.5}/avrotize/mcp_server.py +0 -0
  187. {structurize-3.9.3 → structurize-3.9.5}/avrotize/openapitostructure.py +0 -0
  188. {structurize-3.9.3 → structurize-3.9.5}/avrotize/parquettoavro.py +0 -0
  189. {structurize-3.9.3 → structurize-3.9.5}/avrotize/proto2parser.py +0 -0
  190. {structurize-3.9.3 → structurize-3.9.5}/avrotize/proto3parser.py +0 -0
  191. {structurize-3.9.3 → structurize-3.9.5}/avrotize/prototoavro.py +0 -0
  192. {structurize-3.9.3 → structurize-3.9.5}/avrotize/ramltoavro.py +0 -0
  193. {structurize-3.9.3 → structurize-3.9.5}/avrotize/ramltojstruct.py +0 -0
  194. {structurize-3.9.3 → structurize-3.9.5}/avrotize/rust_xml.py +0 -0
  195. {structurize-3.9.3 → structurize-3.9.5}/avrotize/schema_inference.py +0 -0
  196. {structurize-3.9.3 → structurize-3.9.5}/avrotize/smithytoavro.py +0 -0
  197. {structurize-3.9.3 → structurize-3.9.5}/avrotize/smithytojstruct.py +0 -0
  198. {structurize-3.9.3 → structurize-3.9.5}/avrotize/sqltoavro.py +0 -0
  199. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretoasn1.py +0 -0
  200. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretocddl.py +0 -0
  201. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretocpp.py +0 -0
  202. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretocsharp.py +0 -0
  203. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretocsv.py +0 -0
  204. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretocue.py +0 -0
  205. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretodatapackage.py +0 -0
  206. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretodb.py +0 -0
  207. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretogo.py +0 -0
  208. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretographql.py +0 -0
  209. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretoiceberg.py +0 -0
  210. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretojava.py +0 -0
  211. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretojs.py +0 -0
  212. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretojsons.py +0 -0
  213. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretojtd.py +0 -0
  214. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretokusto.py +0 -0
  215. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretomd.py +0 -0
  216. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretoparquet.py +0 -0
  217. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretoproto.py +0 -0
  218. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretopython.py +0 -0
  219. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretorust.py +0 -0
  220. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretots.py +0 -0
  221. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretotsml.py +0 -0
  222. {structurize-3.9.3 → structurize-3.9.5}/avrotize/structuretoxsd.py +0 -0
  223. {structurize-3.9.3 → structurize-3.9.5}/avrotize/surrealtoavro.py +0 -0
  224. {structurize-3.9.3 → structurize-3.9.5}/avrotize/thriftstructure.py +0 -0
  225. {structurize-3.9.3 → structurize-3.9.5}/avrotize/thrifttoavro.py +0 -0
  226. {structurize-3.9.3 → structurize-3.9.5}/avrotize/tmslvalidate.py +0 -0
  227. {structurize-3.9.3 → structurize-3.9.5}/avrotize/validate.py +0 -0
  228. {structurize-3.9.3 → structurize-3.9.5}/avrotize/xmltoschema.py +0 -0
  229. {structurize-3.9.3 → structurize-3.9.5}/avrotize/xsdtoavro.py +0 -0
  230. {structurize-3.9.3 → structurize-3.9.5}/build.ps1 +0 -0
  231. {structurize-3.9.3 → structurize-3.9.5}/build.sh +0 -0
  232. {structurize-3.9.3 → structurize-3.9.5}/setup.cfg +0 -0
  233. {structurize-3.9.3 → structurize-3.9.5}/structurize.egg-info/dependency_links.txt +0 -0
  234. {structurize-3.9.3 → structurize-3.9.5}/structurize.egg-info/entry_points.txt +0 -0
  235. {structurize-3.9.3 → structurize-3.9.5}/structurize.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: structurize
3
- Version: 3.9.3
3
+ Version: 3.9.5
4
4
  Summary: Tools to convert from and to JSON Structure from various other schema languages.
5
5
  Author-email: Clemens Vasters <clemensv@microsoft.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -11,25 +11,25 @@ Description-Content-Type: text/markdown
11
11
  License-File: LICENSE
12
12
  Requires-Dist: jsonschema>=4.23.0
13
13
  Requires-Dist: lark>=1.1.9
14
- Requires-Dist: pyarrow>=22.0.0
14
+ Requires-Dist: pyarrow>=25.0.1
15
15
  Requires-Dist: asn1tools>=0.167.0
16
16
  Requires-Dist: jsonpointer>=3.0.0
17
17
  Requires-Dist: jsonpath-ng>=1.6.1
18
18
  Requires-Dist: jsoncomparison>=1.1.0
19
- Requires-Dist: requests>=2.32.3
19
+ Requires-Dist: requests>=2.33.0
20
20
  Requires-Dist: azure-kusto-data>=5.0.5
21
21
  Requires-Dist: azure-identity>=1.17.1
22
22
  Requires-Dist: datapackage>=1.15.4
23
- Requires-Dist: jinja2>=3.1.4
23
+ Requires-Dist: jinja2>=3.1.6
24
24
  Requires-Dist: pyiceberg>=0.10.0
25
25
  Requires-Dist: pandas>=2.2.2
26
26
  Requires-Dist: docker>=7.1.0
27
27
  Provides-Extra: dev
28
- Requires-Dist: pytest>=8.3.2; extra == "dev"
28
+ Requires-Dist: pytest>=9.0.3; extra == "dev"
29
29
  Requires-Dist: fastavro>=1.9.5; extra == "dev"
30
30
  Requires-Dist: xmlschema>=3.3.2; extra == "dev"
31
31
  Requires-Dist: xmlunittest>=1.0.1; extra == "dev"
32
- Requires-Dist: pylint>=3.2.6; extra == "dev"
32
+ Requires-Dist: pylint>=4.0.9; extra == "dev"
33
33
  Requires-Dist: dataclasses_json>=0.6.7; extra == "dev"
34
34
  Requires-Dist: dataclasses>=0.8; extra == "dev"
35
35
  Requires-Dist: pydantic>=2.8.2; extra == "dev"
@@ -38,7 +38,7 @@ Requires-Dist: testcontainers>=4.7.2; extra == "dev"
38
38
  Requires-Dist: pymysql>=1.1.1; extra == "dev"
39
39
  Requires-Dist: psycopg2-binary>=2.9.9; extra == "dev"
40
40
  Requires-Dist: pyodbc>=5.1.0; extra == "dev"
41
- Requires-Dist: pymongo>=4.8.0; extra == "dev"
41
+ Requires-Dist: pymongo>=4.18.3; extra == "dev"
42
42
  Requires-Dist: oracledb>=2.3.0; extra == "dev"
43
43
  Requires-Dist: cassandra-driver>=3.29.1; extra == "dev"
44
44
  Requires-Dist: sqlalchemy>=2.0.32; extra == "dev"
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '3.9.3'
22
- __version_tuple__ = version_tuple = (3, 9, 3)
21
+ __version__ = version = '3.9.5'
22
+ __version_tuple__ = version_tuple = (3, 9, 5)
23
23
 
24
- __commit_id__ = commit_id = 'g0848ff37a'
24
+ __commit_id__ = commit_id = 'ga266ff240'
@@ -0,0 +1,77 @@
1
+ cmake_minimum_required(VERSION 3.10)
2
+
3
+ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
4
+ IF (NOT DEFINED VCPKG_ROOT)
5
+ message(STATUS "Setting up vcpkg...")
6
+ SET(VCPKG_ROOT ${CMAKE_SOURCE_DIR}/vcpkg CACHE STRING "" FORCE)
7
+
8
+ if(WIN32)
9
+ set(BOOTSTRAP_COMMAND ${VCPKG_ROOT}/bootstrap-vcpkg.bat)
10
+ set(VCPKG_EXECUTABLE ${VCPKG_ROOT}/vcpkg.exe)
11
+ else()
12
+ set(BOOTSTRAP_COMMAND ${VCPKG_ROOT}/bootstrap-vcpkg.sh)
13
+ set(VCPKG_EXECUTABLE ${VCPKG_ROOT}/vcpkg)
14
+ endif()
15
+
16
+ if(NOT EXISTS "${BOOTSTRAP_COMMAND}")
17
+ execute_process(
18
+ COMMAND git clone https://github.com/Microsoft/vcpkg.git ${VCPKG_ROOT}
19
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
20
+ )
21
+ endif()
22
+
23
+ if(NOT EXISTS ${VCPKG_EXECUTABLE})
24
+ execute_process(
25
+ COMMAND ${BOOTSTRAP_COMMAND}
26
+ WORKING_DIRECTORY ${VCPKG_ROOT}
27
+ )
28
+ endif()
29
+ endif()
30
+ set(CMAKE_TOOLCHAIN_FILE "{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
31
+ CACHE STRING "")
32
+ endif()
33
+
34
+ # Set output directory for executables and libraries
35
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Build/${CMAKE_BUILD_TYPE}/bin)
36
+ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Build/${CMAKE_BUILD_TYPE}/lib)
37
+ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/Build/${CMAKE_BUILD_TYPE}/lib)
38
+
39
+ # Set intermediate directory
40
+ set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/Build/${CMAKE_BUILD_TYPE}/intermediate)
41
+
42
+ project({{project_name}})
43
+
44
+ set(CMAKE_CXX_STANDARD 17)
45
+
46
+ # Specify dependencies
47
+ find_package(Boost REQUIRED COMPONENTS uuid {'iostreams' if self.avro_annotation or self.json_annotation else ''})
48
+ find_package(GTest REQUIRED)
49
+ {{-'find_package(ZLIB REQUIRED)' if self.avro_annotation or self.json_annotation else ''}}
50
+ {{-'find_package(nlohmann_json REQUIRED)' if self.json_annotation else ''}}
51
+ {{-'find_package(avro-cpp REQUIRED)' if self.avro_annotation else ''}}
52
+
53
+ include_directories(${Boost_INCLUDE_DIRS})
54
+ link_directories(${Boost_LIBRARY_DIRS})
55
+
56
+ add_library(${PROJECT_NAME} INTERFACE)
57
+ target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_SOURCE_DIR}/include)
58
+ target_link_libraries(${PROJECT_NAME} INTERFACE Boost::boost Boost::uuid
59
+ {{- ' ZLIB::ZLIB' if self.avro_annotation or self.json_annotation else ''-}}
60
+ {{- ' nlohmann_json::nlohmann_json' if self.json_annotation else ''-}}
61
+ {{- ' avro::avro ' if self.avro_annotation else ''-}})
62
+
63
+ # Set properties for each target if needed
64
+ set_target_properties(${PROJECT_NAME} PROPERTIES
65
+ RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
66
+ LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
67
+ ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}
68
+ )
69
+
70
+ # Add unit tests
71
+ file(GLOB TEST_SOURCES "tests/*.cpp")
72
+ add_executable(runUnitTests ${TEST_SOURCES})
73
+ target_link_libraries(runUnitTests GTest::GTest GTest::Main ${PROJECT_NAME})
74
+
75
+ # Enable testing
76
+ enable_testing()
77
+ add_test(NAME runUnitTests COMMAND runUnitTests)
@@ -0,0 +1,7 @@
1
+ {% raw %}
2
+ @echo off
3
+ mkdir build
4
+ cd build
5
+ cmake ..
6
+ cmake --build . --config Release
7
+ {% endraw %}
@@ -0,0 +1,7 @@
1
+ {% raw %}
2
+ #!/bin/bash
3
+ mkdir -p build
4
+ cd build
5
+ cmake ..
6
+ make
7
+ {% endraw %}
@@ -0,0 +1,108 @@
1
+ {%- if json_annotation or avro_annotation %}
2
+ static {{ class_name }} from_data(const std::vector<uint8_t>& data, const std::string& content_type) {
3
+ {{ class_name }} result;
4
+ std::string media_type = content_type.substr(0, content_type.find(';'));
5
+ std::vector<uint8_t> decompressed_data = data;
6
+ if (media_type.find("+gzip") != std::string::npos) {
7
+ std::stringstream compressed;
8
+ compressed.write(reinterpret_cast<const char*>(data.data()), data.size());
9
+ std::stringstream decompressed;
10
+ boost::iostreams::filtering_streambuf<boost::iostreams::input> in;
11
+ in.push(boost::iostreams::gzip_decompressor());
12
+ in.push(compressed);
13
+ boost::iostreams::copy(in, decompressed);
14
+ std::string decompressed_str = decompressed.str();
15
+ decompressed_data.assign(decompressed_str.begin(), decompressed_str.end());
16
+ media_type = media_type.substr(0, media_type.find("+gzip"));
17
+ }
18
+ {%- if json_annotation %}
19
+ if (media_type == "application/json") {
20
+ std::string json_str(decompressed_data.begin(), decompressed_data.end());
21
+ return nlohmann::json::parse(json_str).get<{{ class_name }}>();
22
+ }
23
+ {%- endif %}
24
+ {%- if avro_annotation %}
25
+ if (media_type == "avro/binary" || media_type == "application/vnd.apache.avro+avro") {
26
+ return deserialize_avro<{{ class_name }}>(decompressed_data);
27
+ }
28
+ {%- endif %}
29
+ else {
30
+ throw std::invalid_argument("Unsupported media type: " + media_type);
31
+ }
32
+ }
33
+
34
+
35
+ std::vector<uint8_t> to_byte_array(const std::string& content_type) const {
36
+ std::vector<uint8_t> result;
37
+ std::string media_type = content_type.substr(0, content_type.find(';'));
38
+ {%- if json_annotation %}
39
+ if (media_type == "application/json") {
40
+ std::string json_str = nlohmann::json(*this).dump();
41
+ result.assign(json_str.begin(), json_str.end());
42
+ }
43
+ {%- endif %}
44
+ {%- if avro_annotation %}
45
+ if (media_type == "avro/binary" || media_type == "application/vnd.apache.avro+avro") {
46
+ result = serialize_avro(*this);
47
+ }
48
+ {%- endif %}
49
+ if (result.empty()) {
50
+ throw std::invalid_argument("Unsupported media type: " + media_type);
51
+ }
52
+ if (content_type.find("+gzip") != std::string::npos) {
53
+ std::stringstream compressed;
54
+ std::stringstream origin;
55
+ origin.write(reinterpret_cast<const char*>(result.data()), result.size());
56
+ boost::iostreams::filtering_streambuf<boost::iostreams::output> out;
57
+ out.push(boost::iostreams::gzip_compressor());
58
+ out.push(compressed);
59
+ boost::iostreams::copy(origin, out);
60
+ std::string compressed_str = compressed.str();
61
+ result.assign(compressed_str.begin(), compressed_str.end());
62
+ }
63
+ return result;
64
+ }
65
+ {%- endif %}
66
+
67
+ {%- if avro_annotation %}
68
+ template<typename T>
69
+ static T deserialize_avro(const std::vector<uint8_t>& data) {
70
+ T deserialized_data;
71
+ avro::DecoderPtr decoder = avro::binaryDecoder();
72
+ avro::InputStreamPtr in = avro::memoryInputStream(data.data(), data.size());
73
+ decoder->init(*in);
74
+ avro::decode(*decoder, deserialized_data);
75
+ return deserialized_data;
76
+ }
77
+
78
+ std::vector<uint8_t> serialize_avro(const {{ class_name }}& rec) const {
79
+ std::vector<uint8_t> serialized_data;
80
+ avro::EncoderPtr encoder = avro::binaryEncoder();
81
+ avro::OutputStreamPtr out = avro::memoryOutputStream();
82
+ encoder->init(*out);
83
+ avro::encode(*encoder, rec);
84
+ encoder->flush();
85
+ auto input = avro::memoryInputStream(*out);
86
+ const uint8_t* buffer;
87
+ size_t len;
88
+ while (input->next(&buffer, &len)) {
89
+ serialized_data.insert(serialized_data.end(), buffer, buffer + len);
90
+ }
91
+ return serialized_data;
92
+ }
93
+
94
+ static const std::string AVRO_SCHEMA_STR;
95
+ static avro::ValidSchema AVRO_SCHEMA;
96
+ static void initialize_avro_schema() {
97
+ avro::compileJsonSchemaFromString(AVRO_SCHEMA_STR, AVRO_SCHEMA);
98
+ }
99
+ static avro::ValidSchema get_avro_schema() {
100
+ return AVRO_SCHEMA;
101
+ }
102
+ static const std::string AVRO_SCHEMA_STR = R"({{ schema_json }})";
103
+ avro::ValidSchema {{ class_name }}::AVRO_SCHEMA = [] {
104
+ avro::ValidSchema schema;
105
+ {{ class_name }}::initialize_avro_schema();
106
+ return schema;
107
+ }();
108
+ {%- endif %}
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "{{project_name}}",
3
+ "version-string": "0.1.0",
4
+ "description": "C++ classes generated from Avro schema",
5
+ "dependencies": [
6
+ {%- if json_annotation %}
7
+ "nlohmann-json",
8
+ {%- endif %}
9
+ {%- if avro_annotation or json_annotation %}
10
+ "zlib",
11
+ "boost-iostreams",
12
+ {%- endif %}
13
+ "gtest",
14
+ {%- if avro_annotation %}
15
+ "avro-cpp",
16
+ {%- endif %}
17
+ "boost",
18
+ "boost-uuid",
19
+ "boost-filesystem"
20
+ ]
21
+ }
@@ -0,0 +1,166 @@
1
+ # {{ project_name }}
2
+
3
+ This is a generated C# project from an Avro schema using [avrotize](https://github.com/clemensv/avrotize).
4
+
5
+ ## Project Structure
6
+
7
+ ```
8
+ {{ project_name }}/
9
+ ├── src/ # Generated C# classes from Avro schema
10
+ │ └── {{ project_name | pascal }}.csproj
11
+ ├── test/ # Generated unit tests
12
+ │ └── {{ project_name | pascal }}.Test.csproj
13
+ ├── run_coverage.ps1 # PowerShell coverage script
14
+ ├── run_coverage.sh # Bash coverage script (Linux/macOS)
15
+ └── {{ project_name }}.sln # Visual Studio solution file
16
+ ```
17
+
18
+ ## Building and Running
19
+
20
+ ### Quick Start
21
+ ```bash
22
+ # Build the project
23
+ dotnet build
24
+
25
+ # Run tests
26
+ dotnet test
27
+
28
+ # Run tests with coverage
29
+ dotnet test --collect:"XPlat Code Coverage"
30
+ ```
31
+
32
+ ### Code Coverage
33
+
34
+ This project includes automated code coverage collection and reporting.
35
+
36
+ #### Using the Coverage Scripts
37
+
38
+ **PowerShell (Windows):**
39
+ ```powershell
40
+ # Run tests with default 85% coverage threshold
41
+ .\run_coverage.ps1
42
+
43
+ # Set custom coverage threshold
44
+ .\run_coverage.ps1 -Threshold 90
45
+
46
+ # Generate HTML coverage report
47
+ .\run_coverage.ps1 -HtmlReport
48
+
49
+ # Generate and open HTML report in browser
50
+ .\run_coverage.ps1 -HtmlReport -OpenReport
51
+
52
+ # Run without failing on low coverage
53
+ .\run_coverage.ps1 -FailOnLowCoverage:$false
54
+ ```
55
+
56
+ **Bash (Linux/macOS):**
57
+ ```bash
58
+ # Run tests with default 85% coverage threshold
59
+ ./run_coverage.sh
60
+
61
+ # Set custom coverage threshold
62
+ ./run_coverage.sh --threshold 90
63
+
64
+ # Generate HTML coverage report
65
+ ./run_coverage.sh --html-report
66
+
67
+ # Generate and open HTML report in browser
68
+ ./run_coverage.sh --open-report
69
+
70
+ # Run without failing on low coverage
71
+ ./run_coverage.sh --no-fail
72
+ ```
73
+
74
+ #### Coverage Configuration
75
+
76
+ The test project is configured with the following coverage settings in `test/{{ project_name | pascal }}.Test.csproj`:
77
+
78
+ - **Default Threshold**: 85% line coverage
79
+ - **Output Format**: Cobertura XML
80
+ - **Coverage Output**: `./coverage/` directory
81
+ - **Includes**: All `{{ project_name | pascal }}` namespace code
82
+ - **Excludes**: Test projects
83
+
84
+ #### Coverage Reports
85
+
86
+ Coverage reports are generated in the following formats:
87
+
88
+ 1. **Cobertura XML**: `./coverage/[guid]/coverage.cobertura.xml`
89
+ 2. **HTML Report** (when requested): `./coverage/html/index.html`
90
+
91
+ #### Continuous Integration
92
+
93
+ For CI/CD pipelines, use:
94
+
95
+ ```yaml
96
+ # Example GitHub Actions step
97
+ - name: Run tests with coverage
98
+ run: |
99
+ dotnet test --collect:"XPlat Code Coverage" --results-directory:"./coverage"
100
+
101
+ # Or use the coverage script for threshold enforcement
102
+ - name: Run tests with coverage threshold
103
+ run: ./run_coverage.sh --threshold 85
104
+ ```
105
+
106
+ ## Generated Code Features
107
+
108
+ This project includes generated C# classes with the following features:
109
+
110
+ - **Value Equality**: Generated `Equals()` and `GetHashCode()` methods
111
+ - **Comprehensive Unit Tests**: Property tests, equality tests, and serialization tests
112
+ - **Multiple Serialization Support**: JSON, XML, and Avro serialization (if enabled)
113
+ - **Nullable Reference Types**: Full C# nullable reference type support
114
+
115
+ ## Test Coverage Goals
116
+
117
+ The generated tests aim to provide comprehensive coverage of:
118
+
119
+ - ✅ **Property Access**: All public properties
120
+ - ✅ **Equality Methods**: `Equals()` and `GetHashCode()`
121
+ - ✅ **Constructors**: Default and parameterized constructors
122
+ - ✅ **Serialization**: JSON/XML/Avro serialization (when enabled)
123
+ - ✅ **Edge Cases**: Null handling and type conversion
124
+
125
+ ### Typical Coverage Results
126
+
127
+ The generated tests typically achieve:
128
+ - **Line Coverage**: 95%+
129
+ - **Branch Coverage**: 90%+
130
+
131
+ ## Customizing Coverage
132
+
133
+ To modify coverage settings, edit the `test/{{ project_name | pascal }}.Test.csproj` file:
134
+
135
+ ```xml
136
+ <PropertyGroup>
137
+ <!-- Modify these values -->
138
+ <Threshold>85</Threshold> <!-- Minimum coverage % -->
139
+ <ThresholdType>line</ThresholdType> <!-- line, branch, or method -->
140
+ <ThresholdStat>minimum</ThresholdStat> <!-- minimum, average, or total -->
141
+ </PropertyGroup>
142
+ ```
143
+
144
+ ## Dependencies
145
+
146
+ ### Runtime
147
+ - .NET 9.0
148
+ - Newtonsoft.Json (if JSON serialization enabled)
149
+ - Apache.Avro (if Avro serialization enabled)
150
+
151
+ ### Testing
152
+ - NUnit 4.3.2
153
+ - NUnit3TestAdapter 5.0.0
154
+ - Microsoft.NET.Test.Sdk 17.13.0
155
+ - coverlet.collector 6.0.4
156
+ - coverlet.msbuild 6.0.4
157
+
158
+ ## Additional Tools
159
+
160
+ For enhanced coverage reporting, install ReportGenerator globally:
161
+
162
+ ```bash
163
+ dotnet tool install -g dotnet-reportgenerator-globaltool
164
+ ```
165
+
166
+ This enables HTML report generation with the `-HtmlReport` option.