1.安装
pip3 install -U lesscode_tool
2.创建项目(目前仅支持创建lesscode-py,其他项目请用subcommand实现)
2.1创建lesscode-py项目
lesscodeTool new -d test
2.2创建django项目
lesscodeTool subcommand -c "pip install django;django-admin startproject mysite"
3.生成sqlalchemy表的model
lesscodeTool sqlacodegen -u mysql+pymysql://root:[email protected]:3306/test -t test
4.执行系统命令
lesscodeTool subcommand -c "echo 123"
5.lesscodeTool查看版本
lesscodeTool -v
6.lesscodeTool查看帮助
lesscodeTool -h
标签:lesscodeTool,lesscode,创建,代码,subcommand,django,test,工具 From: https://www.cnblogs.com/navysummer/p/17369771.html