Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wj-mcat/code-generator
a templated code generator for all language, especially for boring code
https://github.com/wj-mcat/code-generator
code-generator crud flask go java jinja2 python
Last synced: 13 days ago
JSON representation
a templated code generator for all language, especially for boring code
- Host: GitHub
- URL: https://github.com/wj-mcat/code-generator
- Owner: wj-Mcat
- License: apache-2.0
- Created: 2020-06-24T13:17:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-08T21:38:23.000Z (11 months ago)
- Last Synced: 2024-10-04T12:57:42.556Z (about 1 month ago)
- Topics: code-generator, crud, flask, go, java, jinja2, python
- Language: Python
- Homepage:
- Size: 109 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# code-generator
![Upload Python Package](https://github.com/wj-Mcat/code-generator/workflows/Upload%20Python%20Package/badge.svg)
![](https://img.shields.io/badge/build-passing-brightgreen)
![](https://img.shields.io/badge/python-3.7+-brightgreen)![](./docs/logo.png)
## features
- can generate all-language code, eg: `python`, `vue`, `java`, `scala`, `go` and more
- generate code with powerful template(**jinja2**)
- template can contains control command, eg: `if`, `for`, `set variable`
- can **easily** run on other template repo.## quick start
1 . clone the repo
```shell script
git clone https://github.com/wj-Mcat/code-generator
# or
pip install code-generator
```2 . run the example generation
```shell script
./examples/generate.sh
```3 . [Optional] change the template to generate your own code
> you can change the code in `examples/config`, `examples/plugins`, `examples/templates`
## command description
> you don't need to write any code to run `code-generator`, only for configuration, templates, plugins
```shell script
```
## changelog
- version 0.0.3
- enable template & output dir
- add default python github project with CI testing toolkit- version 0.0.2
- complete the basic interface: `templates`, `plugins`, `config`
- can run well for template code generator- version 0.0.1
- deploy the pypi package
- complete a simple code-generator
## Author![[wj-Mcat](https://www.github.com/wj-Mcat)](https://avatars3.githubusercontent.com/u/10242208?s=260)
[wj-Mcat](https://www.github.com/wj-Mcat)