structurize 3.0.0__py3-none-any.whl → 3.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
avrotize/_version.py CHANGED
@@ -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 = '3.0.0'
32
- __version_tuple__ = version_tuple = (3, 0, 0)
31
+ __version__ = version = '3.0.1'
32
+ __version_tuple__ = version_tuple = (3, 0, 1)
33
33
 
34
- __commit_id__ = commit_id = 'gb201f8a65'
34
+ __commit_id__ = commit_id = 'g62e6bb75a'
avrotize/avrotodb.py CHANGED
@@ -685,7 +685,10 @@ def convert_avro_to_nosql(avro_schema_path, nosql_file_path, nosql_dialect, emit
685
685
  file_name = os.path.join(
686
686
  nosql_file_path, get_file_name(schema_list, get_nosql_file_extension(nosql_dialect)))
687
687
  with open(file_name, "w", encoding="utf-8") as nosql_file:
688
- nosql_file.write(model)
688
+ if isinstance(model, list):
689
+ nosql_file.write("\n".join(model))
690
+ else:
691
+ nosql_file.write(model)
689
692
 
690
693
  def get_nosql_file_extension(nosql_dialect):
691
694
  """
avrotize/avrotogo.py CHANGED
@@ -466,8 +466,8 @@ def convert_avro_to_go(avro_schema_path, go_file_path, package_name='', avro_ann
466
466
  avrotogo = AvroToGo(package_name)
467
467
  avrotogo.avro_annotation = avro_annotation
468
468
  avrotogo.json_annotation = json_annotation
469
- avrotogo.package_site = package_site
470
- avrotogo.package_username = package_username
469
+ avrotogo.package_site = package_site if package_site else 'github.com'
470
+ avrotogo.package_username = package_username if package_username else 'username'
471
471
  avrotogo.convert(avro_schema_path, go_file_path)
472
472
 
473
473
 
@@ -484,6 +484,6 @@ def convert_avro_schema_to_go(avro_schema: JsonNode, output_dir: str, package_na
484
484
  avrotogo = AvroToGo(package_name)
485
485
  avrotogo.avro_annotation = avro_annotation
486
486
  avrotogo.json_annotation = json_annotation
487
- avrotogo.package_site = package_site
488
- avrotogo.package_username = package_username
487
+ avrotogo.package_site = package_site if package_site else 'github.com'
488
+ avrotogo.package_username = package_username if package_username else 'username'
489
489
  avrotogo.convert_schema(avro_schema, output_dir)
avrotize/structuretots.py CHANGED
@@ -32,7 +32,7 @@ class StructureToTypeScript:
32
32
  """ Converts JSON Structure schema to TypeScript classes """
33
33
 
34
34
  def __init__(self, base_package: str = '', typedjson_annotation=False, avro_annotation=False) -> None:
35
- self.base_package = base_package
35
+ self.base_package = base_package or ''
36
36
  self.typedjson_annotation = typedjson_annotation
37
37
  self.avro_annotation = avro_annotation
38
38
  self.output_dir = os.getcwd()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: structurize
3
- Version: 3.0.0
3
+ Version: 3.0.1
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
@@ -1,14 +1,14 @@
1
1
  avrotize/__init__.py,sha256=t5h5wkHXr6M0mmHAB5rhjZ3Gxy9xutGTGIfojfao9rI,3820
2
2
  avrotize/__main__.py,sha256=5pY8dYAURcOnFRvgb6fgaOIa_SOzPLIWbU8-ZTQ0jG4,88
3
- avrotize/_version.py,sha256=W-cwokhUzBb_YkyLsLDGHLup9GgiFHu3vD4v2z-lKlY,712
3
+ avrotize/_version.py,sha256=foNNhX2EoaURzi-8EmvzErmCqEYvYc4Nqj0NId3iQao,712
4
4
  avrotize/asn1toavro.py,sha256=QDNwfBfXMxSH-k487CA3CaGCGDzOLs4PpVbbENm5uF0,8386
5
5
  avrotize/avrotize.py,sha256=VHFpBltMVBpyt0ju3ZWW725BKjQ4Fk-nrAy8udW-X44,5713
6
6
  avrotize/avrotocpp.py,sha256=hRZV247_TDD7Sm6_8sFx-UH5SueLLx2Wg6TvAVUX0iE,25693
7
7
  avrotize/avrotocsharp.py,sha256=jOx9ctuUSsdpNDEXnNNfFHOb8zWWHclUvYTF5rInOaM,72339
8
8
  avrotize/avrotocsv.py,sha256=yqVbP4Ar8bZyEgOAmHuHAsQKfCVjIO5_pa5dtaKLZKE,4575
9
9
  avrotize/avrotodatapackage.py,sha256=zSCphLvCYiBKRAUCdccsr-4JysH3PyAS6fSgwa65Tss,7259
10
- avrotize/avrotodb.py,sha256=5fNJgz00VMimyOl7eI0lIxlcaN_JnN0mb2Q9lzCRecw,46989
11
- avrotize/avrotogo.py,sha256=H4jxdO7laRWKJuU6mytz2sgUa_20hZUlsBrUGrCe_UU,22405
10
+ avrotize/avrotodb.py,sha256=IXqH5nHNgIErEIosxxSE5DIGzKJGk2FU2HIzmSt5eIs,47102
11
+ avrotize/avrotogo.py,sha256=9URV0SG8vvjadiNhXW12x_uRplO-JoHEqjIgViWWb4w,22545
12
12
  avrotize/avrotographql.py,sha256=i6G7xWjH_Lsn_CLiM4BCPb8OyZuCCpsYjXwXNTRMwEE,7394
13
13
  avrotize/avrotoiceberg.py,sha256=plVHGWkED1YDLcMDxL7NMdJl2f8G32hwlNWFrBLcsD8,9057
14
14
  avrotize/avrotojava.py,sha256=NZZ7mUFVzvp7HBsU0XPiCwl4GVXE1RtS86pfNFJsIq8,135427
@@ -59,14 +59,14 @@ avrotize/structuretomd.py,sha256=exfCldYbieVdduhotSoLrxsbphmyJQyeQso9qv4qyUw,136
59
59
  avrotize/structuretoproto.py,sha256=Aq0-fwMXSjjAxgZ5mq1kpo_TauigMRrJK9LNyoN-YGs,42679
60
60
  avrotize/structuretopython.py,sha256=d9EZVDHq7r-x0ZYZIRYfCP6kub7MkEROuvzjTJfNVv0,43958
61
61
  avrotize/structuretorust.py,sha256=ChRmO7uzU-pMdDdS0Vtg-MVUaOaNhNUPwH-ZKKOHglU,35134
62
- avrotize/structuretots.py,sha256=zpdFlhYlwAcaQP4jX0r5tR5KpygXF-dPbuSbEm4O0-E,35283
62
+ avrotize/structuretots.py,sha256=zsN4ssX8rU4izOqXIiQcE0LQJ5wouydvCPoTWwSKXj4,35289
63
63
  avrotize/structuretoxsd.py,sha256=01VpasyWSMOx04sILHLP7H-WkhGdXAEGKohUUfgrNf0,32797
64
64
  avrotize/xsdtoavro.py,sha256=nQtNH_3pEZBp67oUCPqzhvItEExHTe-8obsIfNRXt8Y,19064
65
65
  avrotize/dependencies/cpp/vcpkg/vcpkg.json,sha256=se5qnUVQ1Q6wN_DqgIioqKg_y7ouh9oly2iBAJJXkgw,414
66
66
  avrotize/dependencies/typescript/node22/package.json,sha256=oAW_2X-b715kV7aajwuONZEMkyQUJGviG3GwnoUa7hU,387
67
- structurize-3.0.0.dist-info/licenses/LICENSE,sha256=xGtQGygTETTtDQJafZCUbpsed3GxO6grmqig-jGEuSk,11348
68
- structurize-3.0.0.dist-info/METADATA,sha256=yI3BQ6cxAHy8xyPO9FPP80T_aH3izDiJ4qbUjvlB9Fo,3669
69
- structurize-3.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
70
- structurize-3.0.0.dist-info/entry_points.txt,sha256=biIH7jA5auhVqfbwHVk2gmD_gvrPYKgjpCAn0JWZ-Rs,55
71
- structurize-3.0.0.dist-info/top_level.txt,sha256=yn-yQ0Cm1O9fbF8KJgv4IIvX4YRGelKgPqZF1wS5P50,9
72
- structurize-3.0.0.dist-info/RECORD,,
67
+ structurize-3.0.1.dist-info/licenses/LICENSE,sha256=xGtQGygTETTtDQJafZCUbpsed3GxO6grmqig-jGEuSk,11348
68
+ structurize-3.0.1.dist-info/METADATA,sha256=FtlA0hN5TPoQ57iJmXtVX8IhmriA8CHZ_60DMDbOd4I,3669
69
+ structurize-3.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
70
+ structurize-3.0.1.dist-info/entry_points.txt,sha256=biIH7jA5auhVqfbwHVk2gmD_gvrPYKgjpCAn0JWZ-Rs,55
71
+ structurize-3.0.1.dist-info/top_level.txt,sha256=yn-yQ0Cm1O9fbF8KJgv4IIvX4YRGelKgPqZF1wS5P50,9
72
+ structurize-3.0.1.dist-info/RECORD,,