structurize 3.0.0__tar.gz → 3.0.1__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.
- {structurize-3.0.0/structurize.egg-info → structurize-3.0.1}/PKG-INFO +1 -1
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/_version.py +3 -3
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotodb.py +4 -1
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotogo.py +4 -4
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretots.py +1 -1
- {structurize-3.0.0 → structurize-3.0.1/structurize.egg-info}/PKG-INFO +1 -1
- {structurize-3.0.0 → structurize-3.0.1}/.gitignore +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/LICENSE +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/MANIFEST.in +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/README.md +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/__init__.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/__main__.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/asn1toavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotize.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotocpp.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotocsharp.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotocsv.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotodatapackage.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotographql.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotoiceberg.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotojava.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotojs.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotojsons.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotojstruct.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotokusto.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotomd.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotools.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotoparquet.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotoproto.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotopython.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotorust.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotots.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/avrotoxsd.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/cddltostructure.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/commands.json +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/common.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/constants.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/csvtoavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/datapackagetoavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/dependencies/cpp/vcpkg/vcpkg.json +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/dependencies/typescript/node22/package.json +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/dependency_resolver.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/dependency_version.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/jsonstoavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/jsonstostructure.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/jstructtoavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/kstructtoavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/kustotoavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/openapitostructure.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/parquettoavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/proto2parser.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/proto3parser.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/prototoavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretocddl.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretocpp.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretocsharp.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretocsv.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretodatapackage.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretodb.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretogo.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretographql.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretoiceberg.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretojava.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretojs.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretojsons.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretokusto.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretomd.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretoproto.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretopython.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretorust.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/structuretoxsd.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/avrotize/xsdtoavro.py +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/build.ps1 +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/build.sh +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/pyproject.toml +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/setup.cfg +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/structurize.egg-info/SOURCES.txt +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/structurize.egg-info/dependency_links.txt +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/structurize.egg-info/entry_points.txt +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/structurize.egg-info/requires.txt +0 -0
- {structurize-3.0.0 → structurize-3.0.1}/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.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
|
|
@@ -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.
|
|
32
|
-
__version_tuple__ = version_tuple = (3, 0,
|
|
31
|
+
__version__ = version = '3.0.1'
|
|
32
|
+
__version_tuple__ = version_tuple = (3, 0, 1)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g62e6bb75a'
|
|
@@ -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
|
-
|
|
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
|
"""
|
|
@@ -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)
|
|
@@ -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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{structurize-3.0.0 → structurize-3.0.1}/avrotize/dependencies/typescript/node22/package.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|