├── .bumpversion.cfg ├── .coveragerc ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── actions │ └── test │ │ └── action.yml ├── dependabot.yml └── workflows │ ├── test_and_release.yml │ └── test_every_week.yml ├── .github_changelog_generator ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── etc ├── convert.png └── logo.png ├── json_to_models ├── __init__.py ├── __main__.py ├── cli.py ├── dynamic_typing │ ├── __init__.py │ ├── base.py │ ├── complex.py │ ├── models_meta.py │ ├── string_datetime.py │ ├── string_serializable.py │ └── typing.py ├── generator.py ├── models │ ├── __init__.py │ ├── attr.py │ ├── base.py │ ├── dataclasses.py │ ├── pydantic.py │ ├── sqlmodel.py │ ├── string_converters.py │ ├── structure.py │ └── utils.py ├── registry.py └── utils.py ├── pyproject.toml ├── requirements.txt ├── setup.py.backup ├── test ├── __init__.py ├── conftest.py ├── test_cli │ ├── __init__.py │ ├── data │ │ ├── dummy_files │ │ │ ├── test1.csv │ │ │ ├── test1.txt │ │ │ ├── test2.csv │ │ │ ├── test2.txt │ │ │ └── test3.txt │ │ ├── file.ini │ │ ├── gists.json │ │ ├── photos.json │ │ ├── spotify-swagger.yaml │ │ ├── unicode.json │ │ └── users.json │ ├── test_argparser.py │ ├── test_script.py │ ├── test_self_validate_pydantic.py │ └── test_utils.py ├── test_code_generation │ ├── __init__.py │ ├── test_attrs_generation.py │ ├── test_dataclasses_generation.py │ ├── test_models_code_generator.py │ ├── test_models_composition.py │ ├── test_pydantic_generation.py │ ├── test_sqlmodel_generation.py │ ├── test_string_converters.py │ └── test_typing.py ├── test_dynamic_typing │ ├── __init__.py │ ├── test_dynamic_typing.py │ ├── test_string_datetime.py │ └── test_string_serializable_registry.py ├── test_etc.py ├── test_generator │ ├── __init__.py │ ├── test_detect_type.py │ ├── test_merge_field_sets.py │ └── test_optimize_type.py └── test_registry │ ├── __init__.py │ ├── test_models_names.py │ ├── test_registry_merge_models.py │ └── test_registry_process_meta_data.py ├── testing_tools ├── data.py ├── large_data_set.json ├── pprint_meta_data.py ├── print_open_files.py ├── real_apis │ ├── __init__.py │ ├── f1.py │ ├── large_data_set.py │ ├── large_data_set_github_online.py │ ├── openlibrary.py │ ├── pathofexile.py │ ├── randomapis.py │ ├── spotify-swagger.py │ └── swagger.py ├── spotify-swagger.yaml └── swagger.json └── touch /.bumpversion.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/.bumpversion.cfg -------------------------------------------------------------------------------- /.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/.coveragerc -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/actions/test/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/.github/actions/test/action.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/test_and_release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/.github/workflows/test_and_release.yml -------------------------------------------------------------------------------- /.github/workflows/test_every_week.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/.github/workflows/test_every_week.yml -------------------------------------------------------------------------------- /.github_changelog_generator: -------------------------------------------------------------------------------- 1 | project=json2python-models 2 | user=bogdandm -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/README.md -------------------------------------------------------------------------------- /etc/convert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/etc/convert.png -------------------------------------------------------------------------------- /etc/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/etc/logo.png -------------------------------------------------------------------------------- /json_to_models/__init__.py: -------------------------------------------------------------------------------- 1 | __version__ = "0.3.1" 2 | -------------------------------------------------------------------------------- /json_to_models/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/__main__.py -------------------------------------------------------------------------------- /json_to_models/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/cli.py -------------------------------------------------------------------------------- /json_to_models/dynamic_typing/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/dynamic_typing/__init__.py -------------------------------------------------------------------------------- /json_to_models/dynamic_typing/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/dynamic_typing/base.py -------------------------------------------------------------------------------- /json_to_models/dynamic_typing/complex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/dynamic_typing/complex.py -------------------------------------------------------------------------------- /json_to_models/dynamic_typing/models_meta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/dynamic_typing/models_meta.py -------------------------------------------------------------------------------- /json_to_models/dynamic_typing/string_datetime.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/dynamic_typing/string_datetime.py -------------------------------------------------------------------------------- /json_to_models/dynamic_typing/string_serializable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/dynamic_typing/string_serializable.py -------------------------------------------------------------------------------- /json_to_models/dynamic_typing/typing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/dynamic_typing/typing.py -------------------------------------------------------------------------------- /json_to_models/generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/generator.py -------------------------------------------------------------------------------- /json_to_models/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/models/__init__.py -------------------------------------------------------------------------------- /json_to_models/models/attr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/models/attr.py -------------------------------------------------------------------------------- /json_to_models/models/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/models/base.py -------------------------------------------------------------------------------- /json_to_models/models/dataclasses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/models/dataclasses.py -------------------------------------------------------------------------------- /json_to_models/models/pydantic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/models/pydantic.py -------------------------------------------------------------------------------- /json_to_models/models/sqlmodel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/models/sqlmodel.py -------------------------------------------------------------------------------- /json_to_models/models/string_converters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/models/string_converters.py -------------------------------------------------------------------------------- /json_to_models/models/structure.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/models/structure.py -------------------------------------------------------------------------------- /json_to_models/models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/models/utils.py -------------------------------------------------------------------------------- /json_to_models/registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/registry.py -------------------------------------------------------------------------------- /json_to_models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/json_to_models/utils.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.py.backup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/setup.py.backup -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/conftest.py -------------------------------------------------------------------------------- /test/test_cli/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_cli/data/dummy_files/test1.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_cli/data/dummy_files/test1.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_cli/data/dummy_files/test2.csv: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_cli/data/dummy_files/test2.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_cli/data/dummy_files/test3.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_cli/data/file.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/data/file.ini -------------------------------------------------------------------------------- /test/test_cli/data/gists.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/data/gists.json -------------------------------------------------------------------------------- /test/test_cli/data/photos.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/data/photos.json -------------------------------------------------------------------------------- /test/test_cli/data/spotify-swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/data/spotify-swagger.yaml -------------------------------------------------------------------------------- /test/test_cli/data/unicode.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/data/unicode.json -------------------------------------------------------------------------------- /test/test_cli/data/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/data/users.json -------------------------------------------------------------------------------- /test/test_cli/test_argparser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/test_argparser.py -------------------------------------------------------------------------------- /test/test_cli/test_script.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/test_script.py -------------------------------------------------------------------------------- /test/test_cli/test_self_validate_pydantic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/test_self_validate_pydantic.py -------------------------------------------------------------------------------- /test/test_cli/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_cli/test_utils.py -------------------------------------------------------------------------------- /test/test_code_generation/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_code_generation/test_attrs_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_code_generation/test_attrs_generation.py -------------------------------------------------------------------------------- /test/test_code_generation/test_dataclasses_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_code_generation/test_dataclasses_generation.py -------------------------------------------------------------------------------- /test/test_code_generation/test_models_code_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_code_generation/test_models_code_generator.py -------------------------------------------------------------------------------- /test/test_code_generation/test_models_composition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_code_generation/test_models_composition.py -------------------------------------------------------------------------------- /test/test_code_generation/test_pydantic_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_code_generation/test_pydantic_generation.py -------------------------------------------------------------------------------- /test/test_code_generation/test_sqlmodel_generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_code_generation/test_sqlmodel_generation.py -------------------------------------------------------------------------------- /test/test_code_generation/test_string_converters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_code_generation/test_string_converters.py -------------------------------------------------------------------------------- /test/test_code_generation/test_typing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_code_generation/test_typing.py -------------------------------------------------------------------------------- /test/test_dynamic_typing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_dynamic_typing/test_dynamic_typing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_dynamic_typing/test_dynamic_typing.py -------------------------------------------------------------------------------- /test/test_dynamic_typing/test_string_datetime.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_dynamic_typing/test_string_datetime.py -------------------------------------------------------------------------------- /test/test_dynamic_typing/test_string_serializable_registry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_dynamic_typing/test_string_serializable_registry.py -------------------------------------------------------------------------------- /test/test_etc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_etc.py -------------------------------------------------------------------------------- /test/test_generator/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_generator/test_detect_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_generator/test_detect_type.py -------------------------------------------------------------------------------- /test/test_generator/test_merge_field_sets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_generator/test_merge_field_sets.py -------------------------------------------------------------------------------- /test/test_generator/test_optimize_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_generator/test_optimize_type.py -------------------------------------------------------------------------------- /test/test_registry/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test_registry/test_models_names.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_registry/test_models_names.py -------------------------------------------------------------------------------- /test/test_registry/test_registry_merge_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_registry/test_registry_merge_models.py -------------------------------------------------------------------------------- /test/test_registry/test_registry_process_meta_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/test/test_registry/test_registry_process_meta_data.py -------------------------------------------------------------------------------- /testing_tools/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/data.py -------------------------------------------------------------------------------- /testing_tools/large_data_set.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/large_data_set.json -------------------------------------------------------------------------------- /testing_tools/pprint_meta_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/pprint_meta_data.py -------------------------------------------------------------------------------- /testing_tools/print_open_files.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/print_open_files.py -------------------------------------------------------------------------------- /testing_tools/real_apis/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/real_apis/__init__.py -------------------------------------------------------------------------------- /testing_tools/real_apis/f1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/real_apis/f1.py -------------------------------------------------------------------------------- /testing_tools/real_apis/large_data_set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/real_apis/large_data_set.py -------------------------------------------------------------------------------- /testing_tools/real_apis/large_data_set_github_online.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/real_apis/large_data_set_github_online.py -------------------------------------------------------------------------------- /testing_tools/real_apis/openlibrary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/real_apis/openlibrary.py -------------------------------------------------------------------------------- /testing_tools/real_apis/pathofexile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/real_apis/pathofexile.py -------------------------------------------------------------------------------- /testing_tools/real_apis/randomapis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/real_apis/randomapis.py -------------------------------------------------------------------------------- /testing_tools/real_apis/spotify-swagger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/real_apis/spotify-swagger.py -------------------------------------------------------------------------------- /testing_tools/real_apis/swagger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/real_apis/swagger.py -------------------------------------------------------------------------------- /testing_tools/spotify-swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/spotify-swagger.yaml -------------------------------------------------------------------------------- /testing_tools/swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bogdandm/json2python-models/HEAD/testing_tools/swagger.json -------------------------------------------------------------------------------- /touch: -------------------------------------------------------------------------------- 1 | Build trigger: 2 --------------------------------------------------------------------------------