avrotize 2.20.0__tar.gz → 2.20.2__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 (159) hide show
  1. {avrotize-2.20.0 → avrotize-2.20.2}/PKG-INFO +1 -1
  2. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/_version.py +3 -3
  3. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotots/class_core.ts.jinja +4 -2
  4. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotots.py +1 -8
  5. {avrotize-2.20.0 → avrotize-2.20.2}/LICENSE +0 -0
  6. {avrotize-2.20.0 → avrotize-2.20.2}/README.md +0 -0
  7. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/__init__.py +0 -0
  8. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/__main__.py +0 -0
  9. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/asn1toavro.py +0 -0
  10. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotize.py +0 -0
  11. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocpp/CMakeLists.txt.jinja +0 -0
  12. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocpp/build.bat.jinja +0 -0
  13. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocpp/build.sh.jinja +0 -0
  14. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocpp/dataclass_body.jinja +0 -0
  15. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocpp/vcpkg.json.jinja +0 -0
  16. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocpp.py +0 -0
  17. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocsharp/class_test.cs.jinja +0 -0
  18. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocsharp/dataclass_core.jinja +0 -0
  19. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocsharp/enum_test.cs.jinja +0 -0
  20. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocsharp/project.csproj.jinja +0 -0
  21. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocsharp/project.sln.jinja +0 -0
  22. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocsharp/testproject.csproj.jinja +0 -0
  23. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocsharp.py +0 -0
  24. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotocsv.py +0 -0
  25. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotodatapackage.py +0 -0
  26. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotodb.py +0 -0
  27. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotogo/go_enum.jinja +0 -0
  28. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotogo/go_helpers.jinja +0 -0
  29. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotogo/go_struct.jinja +0 -0
  30. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotogo/go_test.jinja +0 -0
  31. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotogo/go_union.jinja +0 -0
  32. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotogo.py +0 -0
  33. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotographql.py +0 -0
  34. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotoiceberg.py +0 -0
  35. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotojava/class_test.java.jinja +0 -0
  36. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotojava/enum_test.java.jinja +0 -0
  37. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotojava/testproject.pom.jinja +0 -0
  38. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotojava.py +0 -0
  39. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotojs.py +0 -0
  40. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotojsons.py +0 -0
  41. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotojstruct.py +0 -0
  42. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotokusto.py +0 -0
  43. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotomd/README.md.jinja +0 -0
  44. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotomd.py +0 -0
  45. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotools.py +0 -0
  46. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotoparquet.py +0 -0
  47. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotoproto.py +0 -0
  48. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotopython/dataclass_core.jinja +0 -0
  49. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotopython/enum_core.jinja +0 -0
  50. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotopython/pyproject_toml.jinja +0 -0
  51. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotopython/test_class.jinja +0 -0
  52. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotopython/test_enum.jinja +0 -0
  53. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotopython.py +0 -0
  54. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotorust/dataclass_enum.rs.jinja +0 -0
  55. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotorust/dataclass_struct.rs.jinja +0 -0
  56. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotorust/dataclass_union.rs.jinja +0 -0
  57. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotorust.py +0 -0
  58. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotots/class_test.ts.jinja +0 -0
  59. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotots/enum_core.ts.jinja +0 -0
  60. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotots/gitignore.jinja +0 -0
  61. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotots/index.ts.jinja +0 -0
  62. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotots/package.json.jinja +0 -0
  63. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotots/tsconfig.json.jinja +0 -0
  64. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/avrotoxsd.py +0 -0
  65. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/cddltostructure.py +0 -0
  66. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/commands.json +0 -0
  67. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/common.py +0 -0
  68. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/constants.py +0 -0
  69. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/csvtoavro.py +0 -0
  70. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/datapackagetoavro.py +0 -0
  71. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/dependencies/cpp/vcpkg/vcpkg.json +0 -0
  72. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/dependencies/cs/net90/dependencies.csproj +0 -0
  73. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/dependencies/go/go121/go.mod +0 -0
  74. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/dependencies/java/jdk21/pom.xml +0 -0
  75. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/dependencies/python/py312/requirements.txt +0 -0
  76. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/dependencies/rust/stable/Cargo.toml +0 -0
  77. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/dependencies/typescript/node22/package.json +0 -0
  78. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/dependency_resolver.py +0 -0
  79. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/dependency_version.py +0 -0
  80. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/generic/generic.avsc +0 -0
  81. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/jsonstoavro.py +0 -0
  82. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/jsonstostructure.py +0 -0
  83. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/jstructtoavro.py +0 -0
  84. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/kstructtoavro.py +0 -0
  85. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/kustotoavro.py +0 -0
  86. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/parquettoavro.py +0 -0
  87. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/proto2parser.py +0 -0
  88. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/proto3parser.py +0 -0
  89. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/prototoavro.py +0 -0
  90. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/prototypes/any.avsc +0 -0
  91. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/prototypes/api.avsc +0 -0
  92. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/prototypes/duration.avsc +0 -0
  93. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/prototypes/field_mask.avsc +0 -0
  94. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/prototypes/struct.avsc +0 -0
  95. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/prototypes/timestamp.avsc +0 -0
  96. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/prototypes/type.avsc +0 -0
  97. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/prototypes/wrappers.avsc +0 -0
  98. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocddl.py +0 -0
  99. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocpp/CMakeLists.txt.jinja +0 -0
  100. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocpp/build.bat.jinja +0 -0
  101. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocpp/build.sh.jinja +0 -0
  102. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocpp/dataclass_body.jinja +0 -0
  103. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocpp/vcpkg.json.jinja +0 -0
  104. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocpp.py +0 -0
  105. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp/class_test.cs.jinja +0 -0
  106. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp/dataclass_core.jinja +0 -0
  107. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp/enum_test.cs.jinja +0 -0
  108. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp/json_structure_converters.cs.jinja +0 -0
  109. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp/program.cs.jinja +0 -0
  110. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp/project.csproj.jinja +0 -0
  111. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp/project.sln.jinja +0 -0
  112. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp/testproject.csproj.jinja +0 -0
  113. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp/tuple_converter.cs.jinja +0 -0
  114. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsharp.py +0 -0
  115. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretocsv.py +0 -0
  116. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretodatapackage.py +0 -0
  117. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretodb.py +0 -0
  118. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretogo/go_enum.jinja +0 -0
  119. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretogo/go_helpers.jinja +0 -0
  120. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretogo/go_interface.jinja +0 -0
  121. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretogo/go_struct.jinja +0 -0
  122. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretogo/go_test.jinja +0 -0
  123. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretogo.py +0 -0
  124. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretographql.py +0 -0
  125. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretoiceberg.py +0 -0
  126. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretojava/choice_core.jinja +0 -0
  127. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretojava/class_core.jinja +0 -0
  128. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretojava/enum_core.jinja +0 -0
  129. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretojava/equals_hashcode.jinja +0 -0
  130. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretojava/pom.xml.jinja +0 -0
  131. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretojava/tuple_core.jinja +0 -0
  132. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretojava.py +0 -0
  133. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretojsons.py +0 -0
  134. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretokusto.py +0 -0
  135. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretomd/README.md.jinja +0 -0
  136. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretomd.py +0 -0
  137. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretoproto.py +0 -0
  138. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretopython/dataclass_core.jinja +0 -0
  139. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretopython/enum_core.jinja +0 -0
  140. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretopython/map_alias.jinja +0 -0
  141. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretopython/pyproject_toml.jinja +0 -0
  142. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretopython/test_class.jinja +0 -0
  143. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretopython/test_enum.jinja +0 -0
  144. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretopython.py +0 -0
  145. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretorust/dataclass_enum.rs.jinja +0 -0
  146. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretorust/dataclass_struct.rs.jinja +0 -0
  147. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretorust/dataclass_union.rs.jinja +0 -0
  148. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretorust.py +0 -0
  149. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretots/class_core.ts.jinja +0 -0
  150. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretots/enum_core.ts.jinja +0 -0
  151. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretots/gitignore.jinja +0 -0
  152. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretots/index.ts.jinja +0 -0
  153. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretots/package.json.jinja +0 -0
  154. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretots/test_class.ts.jinja +0 -0
  155. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretots/tsconfig.json.jinja +0 -0
  156. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretots.py +0 -0
  157. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/structuretoxsd.py +0 -0
  158. {avrotize-2.20.0 → avrotize-2.20.2}/avrotize/xsdtoavro.py +0 -0
  159. {avrotize-2.20.0 → avrotize-2.20.2}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: avrotize
3
- Version: 2.20.0
3
+ Version: 2.20.2
4
4
  Summary: Tools to convert from and to Avro Schema from various other schema languages.
5
5
  Author-email: Clemens Vasters <clemensv@microsoft.com>
6
6
  Requires-Python: >=3.10
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '2.20.0'
32
- __version_tuple__ = version_tuple = (2, 20, 0)
31
+ __version__ = version = '2.20.2'
32
+ __version_tuple__ = version_tuple = (2, 20, 2)
33
33
 
34
- __commit_id__ = commit_id = 'gd4e6f7652'
34
+ __commit_id__ = commit_id = 'g1d3ea7c00'
@@ -8,7 +8,7 @@ import { jsonObject, jsonMember, TypedJSON } from 'typedjson';
8
8
  {%- endif %}
9
9
  {%- endif %}
10
10
  {%- if avro_annotation %}
11
- import { Type } from 'avro-js';
11
+ import avro from 'avro-js';
12
12
  {%- endif %}
13
13
  {%- for import_type, import_path in imports.items() %}
14
14
  import { {{ import_type }} } from '{{ import_path }}';
@@ -17,10 +17,12 @@ import { {{ import_type }} } from '{{ import_path }}';
17
17
  import pako from 'pako';
18
18
  {%- endif %}
19
19
 
20
+ {%- if typed_json_annotation %}
20
21
  @jsonObject
22
+ {%- endif %}
21
23
  export class {{ class_name }} {
22
24
  {%- if avro_annotation %}
23
- public static AvroType: Type = Type.forSchema({{ avro_schema_json }});
25
+ public static AvroType: avro.Type = avro.parse({{ avro_schema_json }});
24
26
  {%- endif %}
25
27
 
26
28
  {%- for field in fields %}
@@ -504,13 +504,6 @@ class AvroToTypeScript:
504
504
  * Provides methods for encoding, decoding, and validating Avro data.
505
505
  */
506
506
  export class Type {
507
- /**
508
- * Create a Type instance from an Avro schema.
509
- * @param schema - Avro schema object or JSON string
510
- * @returns Type instance
511
- */
512
- static forSchema(schema: any): Type;
513
-
514
507
  /**
515
508
  * Encode a value to a Buffer.
516
509
  * @param obj - Value to encode
@@ -582,7 +575,7 @@ class AvroToTypeScript:
582
575
  }
583
576
 
584
577
  /**
585
- * Parse an Avro schema.
578
+ * Parse an Avro schema and return a Type instance.
586
579
  * @param schema - Schema as string or object
587
580
  * @param options - Parse options
588
581
  * @returns Type instance
File without changes
File without changes
File without changes
File without changes