从JSON模式生成Python类的源代码。

jschema-to-python的Python项目详细描述


jschema到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 bot将自动确定您是否需要提供 一个CLA并适当地装饰PR(例如状态检查、评论)。只需按照说明操作即可 由bot提供。您只需使用我们的CLA在所有回购中执行一次。在

本项目采用了Microsoft Open Source Code of Conduct。 有关详细信息,请参阅Code of Conduct FAQ或 如有任何其他问题或意见,请联系opencode@microsoft.com。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java中硬件令牌的证书访问私钥   java SQLite数据库在何处不能正确使用?   java在编辑器中显示IntelliJidea中的编译错误   java将atributes放到X500 NameBuilder Bouncy Castle,生成PKCS10   java顺序ant条件不会停止   spring如何发送请求并上传带有java对象的文件,比如@RequestParam CommonsMultipartFile file、@RequestBody User userDetailsId?   java如何在Spring中根据配置创建多个相同类型的bean?   java我需要一个框架来使用依赖注入吗?   如何使用java在excel中插入换行符?   java从安卓文件加载数组   安卓 Dateformat不返回实时Java   java如何将基本int传递给AsyncTask?   java音频相似性库   Spark:OutOfMemoryError:Java堆空间   java My代码未按预期工作。十进制输出不是它应该的样子   财务Java编译器告诉我,我并没有启动变量“interest”或“pmt”