jschema-to-python
=================
Generate Python classes from a JSON schema.
Usage
=====
::
python -m jschema_to_python [-h] -s SCHEMA_PATH -o OUTPUT_DIRECTORY [-m MODULE_NAME] -r ROOT_CLASS_NAME [-g HINTS_FILE_PATH] [-f] [-v]
Generate source code for a set of Python classes from a JSON schema.
optional arguments:
-h, --help show this help message and exit
-s SCHEMA_PATH, --schema-path SCHEMA_PATH
path to the JSON schema file
-o OUTPUT_DIRECTORY, --output-directory OUTPUT_DIRECTORY
directory in which the generated classes will be
created
-m MODULE_NAME, --module-name MODULE_NAME
name of the module containing the object model classes
-r ROOT_CLASS_NAME, --root-class-name ROOT_CLASS_NAME
the name of the class at the root of the object model
represented by the schema
-g HINTS_FILE_PATH, --hints-file-path HINTS_FILE_PATH
path to a file containing hints that control code
generation
-f, --force overwrite the output directory if it exists
-v, --verbose increase output verbosity (may be specified up to two
times)
Contributing
============
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the `Microsoft Open Source Code of Conduct <https://opensource.microsoft.com/codeofconduct/>`_.
For more information see the `Code of Conduct FAQ <https://opensource.microsoft.com/codeofconduct/faq/>`_ or
contact `opencode@microsoft.com <mailto:opencode@microsoft.com>`_ with any additional questions or comments.
Raw data
{
"_id": null,
"home_page": "https://github.com/microsoft/jschema-to-python",
"name": "jschema-to-python",
"maintainer": "",
"docs_url": null,
"requires_python": ">= 2.7",
"maintainer_email": "",
"keywords": "",
"author": "Microsoft Corporation",
"author_email": "v-lgold@microsoft.com",
"download_url": "https://files.pythonhosted.org/packages/1d/7f/5ae3d97ddd86ec33323231d68453afd504041efcfd4f4dde993196606849/jschema_to_python-1.2.3.tar.gz",
"platform": "",
"description": "jschema-to-python\n=================\n\nGenerate Python classes from a JSON schema.\n\nUsage\n=====\n::\n\n python -m jschema_to_python [-h] -s SCHEMA_PATH -o OUTPUT_DIRECTORY [-m MODULE_NAME] -r ROOT_CLASS_NAME [-g HINTS_FILE_PATH] [-f] [-v]\n\n Generate source code for a set of Python classes from a JSON schema.\n\n optional arguments:\n -h, --help show this help message and exit\n -s SCHEMA_PATH, --schema-path SCHEMA_PATH\n path to the JSON schema file\n -o OUTPUT_DIRECTORY, --output-directory OUTPUT_DIRECTORY\n directory in which the generated classes will be\n created\n -m MODULE_NAME, --module-name MODULE_NAME\n name of the module containing the object model classes\n -r ROOT_CLASS_NAME, --root-class-name ROOT_CLASS_NAME\n the name of the class at the root of the object model\n represented by the schema\n -g HINTS_FILE_PATH, --hints-file-path HINTS_FILE_PATH\n path to a file containing hints that control code\n generation\n -f, --force overwrite the output directory if it exists\n -v, --verbose increase output verbosity (may be specified up to two\n times)\n\nContributing\n============\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.\n\nWhen you submit a pull request, a CLA bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the `Microsoft Open Source Code of Conduct <https://opensource.microsoft.com/codeofconduct/>`_.\nFor more information see the `Code of Conduct FAQ <https://opensource.microsoft.com/codeofconduct/faq/>`_ or\ncontact `opencode@microsoft.com <mailto:opencode@microsoft.com>`_ with any additional questions or comments.\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Generate source code for Python classes from a JSON schema.",
"version": "1.2.3",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "319e1b6819a87c3f59170406163ba17bc55b0abe18ae552f53d2b0a2025f9c63",
"md5": "595d85b2744d055394e32915afd3a0c2",
"sha256": "8a703ca7604d42d74b2815eecf99a33359a8dccbb80806cce386d5e2dd992b05"
},
"downloads": -1,
"filename": "jschema_to_python-1.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "595d85b2744d055394e32915afd3a0c2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">= 2.7",
"size": 10400,
"upload_time": "2019-10-05T20:02:37",
"upload_time_iso_8601": "2019-10-05T20:02:37.948774Z",
"url": "https://files.pythonhosted.org/packages/31/9e/1b6819a87c3f59170406163ba17bc55b0abe18ae552f53d2b0a2025f9c63/jschema_to_python-1.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1d7f5ae3d97ddd86ec33323231d68453afd504041efcfd4f4dde993196606849",
"md5": "6f9e312084eafe0f33fcb0cf768ab25e",
"sha256": "76ff14fe5d304708ccad1284e4b11f96a658949a31ee7faed9e0995279549b91"
},
"downloads": -1,
"filename": "jschema_to_python-1.2.3.tar.gz",
"has_sig": false,
"md5_digest": "6f9e312084eafe0f33fcb0cf768ab25e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">= 2.7",
"size": 10061,
"upload_time": "2019-10-05T20:02:39",
"upload_time_iso_8601": "2019-10-05T20:02:39.657985Z",
"url": "https://files.pythonhosted.org/packages/1d/7f/5ae3d97ddd86ec33323231d68453afd504041efcfd4f4dde993196606849/jschema_to_python-1.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2019-10-05 20:02:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "microsoft",
"github_project": "jschema-to-python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "jschema-to-python"
}