Skip to content

a templated code generator for all language, especially for boring code

License

Notifications You must be signed in to change notification settings

wj-Mcat/code-generator

Repository files navigation

code-generator

Upload Python Package

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

git clone https://github.com/wj-Mcat/code-generator
# or
pip install code-generator

2 . run the example generation

./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

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

wj-Mcat

About

a templated code generator for all language, especially for boring code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published