All Projects → henryluki → acgt

henryluki / acgt

Licence: other
Auto Code Generation Tools (DSL)

Programming Languages

python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to acgt

linnea
Linnea is an experimental tool for the automatic generation of optimized code for linear algebra problems.
Stars: ✭ 60 (+233.33%)
Mutual labels:  code-generation
copydynamic
Prototype of generating `copyDynamic` extension functions for kotlin data classes
Stars: ✭ 57 (+216.67%)
Mutual labels:  code-generation
pyodesys
∫ Straightforward numerical integration of systems of ordinary differential equations
Stars: ✭ 85 (+372.22%)
Mutual labels:  code-generation
json2dart
A CLI tool to help generate dart classes from json returned from API
Stars: ✭ 38 (+111.11%)
Mutual labels:  code-generation
libjit
Unofficial libjit mirror.
Stars: ✭ 46 (+155.56%)
Mutual labels:  code-generation
WebApiToTypeScript
A tool for code generating TypeScript endpoints for your ASP.NET Web API controllers
Stars: ✭ 26 (+44.44%)
Mutual labels:  code-generation
brian2cuda
A brian2 extension to simulate spiking neural networks on GPUs
Stars: ✭ 46 (+155.56%)
Mutual labels:  code-generation
UI2CODE
A tidied repo for UI2CODE, a reverse engineering system convert UI design to code automatically and precisely.
Stars: ✭ 24 (+33.33%)
Mutual labels:  code-generation
celerio
Celerio is a code generator tool for data-driven application.
Stars: ✭ 73 (+305.56%)
Mutual labels:  code-generation
js.metaret
lightweight mutual tail recursion optimization without trampoline
Stars: ✭ 16 (-11.11%)
Mutual labels:  code-generation
lintpack
Build Go linters from lintpack-compatible packages. Also serves as a framework for writing checkers.
Stars: ✭ 28 (+55.56%)
Mutual labels:  code-generation
regen
Easy C++ reflection and code generation
Stars: ✭ 29 (+61.11%)
Mutual labels:  code-generation
mybatis-generator-gui-plus
基于MyBatis-Generator+SQLite+beautyeye_lnf开发的一款图形化代码生成器
Stars: ✭ 16 (-11.11%)
Mutual labels:  code-generation
flatorize
Generate fast implementations of mathematical expressions. Inclues a linear algebra library.
Stars: ✭ 18 (+0%)
Mutual labels:  code-generation
wb-toolbox
Simulink toolbox to rapidly prototype robot controllers
Stars: ✭ 20 (+11.11%)
Mutual labels:  code-generation
Templates
CodeSmith Generator Templates
Stars: ✭ 52 (+188.89%)
Mutual labels:  code-generation
fn
Functional library for PHP with proper currying
Stars: ✭ 22 (+22.22%)
Mutual labels:  code-generation
Friendly Code Editor
Try this Friendly Code Editor. You'll love it. I made it with a lot of effort. It has some great features. I will update it adequately later. Very helpful for developers. Enjoy and share.
Stars: ✭ 20 (+11.11%)
Mutual labels:  code-generation
oag
Idiomatic Go (Golang) client package generation from OpenAPI documents
Stars: ✭ 51 (+183.33%)
Mutual labels:  code-generation
jsish
Jsi is a small, C-embeddable javascript interpreter with tightly woven Web and DB support.
Stars: ✭ 32 (+77.78%)
Mutual labels:  code-generation

acgt

Auto Code Generation Tools

This is a tool for code generatation, define an api.json file, output api codes. Recently, this tool is used for flask app and js ajax codes.


Install

git clone https://github.com/henryluki/acgt.git

cd acgt

pip install -r requirement.text

python setup.py install

Require:

  • api.json :
{
  “api”: [ {
    "module":"module_name",
    "detail":[
      "method":"get(post)",
      "name":"method_name",
      "arguments":"",
      "result":""
    ]
  }]
}

Take a look at api.json for more detail.

Command

  • acgt

acgt usage

  • acgt init

acgt init [option] PROJECT_NAME

  • for flask

acgt init --flask=True PROJECT_NAME

  • for js

acgt init --js=True PROJECT_NAME

Run example

acgt init --flask=True "example"

acgt init --js=True "example"

Run as a script

it requires api.json at the same directory

from acgt.acgt import Acgt

def main():
  # project_name = "example"
  acgt = Acgt("example")
  # "api.json" relative path
  acgt.path = ""
  # feature = "flask"
  print "init flask app ..."
  acgt.parse_apis("flask")
  # feature = "js"
  print "init js ..."
  acgt.parse_apis("js")
  print "done!"

if __name__ == '__main__':
  main()

Take a look at scripts.py

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].