Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)