lowcode-cli
简介
lowcode是通过jinja2语法将jsonschema渲染在模板上的代码生成工具, 支持渲染单个文件或者渲染整个目录。未来可能作为低代码生态的底层工具使用。
代码结构
.
└── src
└── lowcode_cli
├── common
│ ├── jinja2
│ │ ├── filters
│ │ └── handles
│ └── jsonschema
│ └── validators.py
├── conf
│ └── settings.py
├── core
│ ├── commands
│ │ └── render.py
│ ├── formater.py
│ └── renderer.py
├── manage.py
├── settings.default.yaml
├── tools
│ └── doc
│ └── markdown_to_schema.py
└── utils
└── path.py
帮助
python lowcode_cli/manage.py --help
Usage: manage.py [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
render-dir 遍历tpl_dir目录, **/*.tpl和**/*.json配对渲染
render-file 根据schema_file渲染单个模板文件