从JSON模式生成Python类的源代码。
项目描述
jschema-to-python
从JSON模式生成Python类。
用法
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)
贡献
本项目欢迎贡献和建议。大多数贡献需要您同意贡献者许可协议(CLA),声明您有权并且实际上授予我们使用您贡献的权利。有关详细信息,请访问https://cla.opensource.microsoft.com。
当您提交拉取请求时,CLA机器人将自动确定您是否需要提供CLA,并相应地装饰PR(例如,状态检查,注释)。只需遵循机器人提供的说明即可。您在整个使用我们的CLA的仓库中只需这样做一次。
本项目已采用微软开源行为准则。有关更多信息,请参阅行为准则FAQ或联系opencode@microsoft.com以提出任何额外的问题或评论。
项目详情
关闭
jschema_to_python-1.2.3.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 76ff14fe5d304708ccad1284e4b11f96a658949a31ee7faed9e0995279549b91 |
|
MD5 | 6f9e312084eafe0f33fcb0cf768ab25e |
|
BLAKE2b-256 | 1d7f5ae3d97ddd86ec33323231d68453afd504041efcfd4f4dde993196606849 |
关闭
jschema_to_python-1.2.3-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 8a703ca7604d42d74b2815eecf99a33359a8dccbb80806cce386d5e2dd992b05 |
|
MD5 | 595d85b2744d055394e32915afd3a0c2 |
|
BLAKE2b-256 | 319e1b6819a87c3f59170406163ba17bc55b0abe18ae552f53d2b0a2025f9c63 |