# pybuilder-demo **Repository Path**: loyalty-code/pybuilder-demo ## Basic Information - **Project Name**: pybuilder-demo - **Description**: pybuilder-demo - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-02 - **Last Updated**: 2024-10-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### pip install pybuilder - pip freeze > requirements.txt - pip install -r requirements.txt ```shell pip install pybuilder mkdir sample && cd sample # 项目目录需手工创建 pyb --start--project # 回答一些问题后创建所需的目录和文件 ``` #### Python 项目管理与构建工具 https://blog.51cto.com/u_15465080/4859390 #### flask 生成数据库实体及接口例子 ```shell pip install loguru pip install Flask pip install pymysql pip install Flask-SQLAlchemy pip install flask-sqlacodegen flask-sqlacodegen --help pip install sqlacodegen pip install cryptography # AttributeError: 'NoneType' object has no attribute 'encoding' flask-sqlacodegen mysql+pymysql://root:123456@localhost:3306/web?charset=utf-8 --tables tb_soft --outfile "../entity/soft_entity.py" # AttributeError: module 'sqlalchemy' has no attribute '__all__'. Did you mean: '__file__'? flask-sqlacodegen mysql+pymysql://root:123456@localhost:3306/web --tables tb_soft --outfile "soft.py" ``` flask-sqlalchemy ORM 操作数据库增删改查: https://blog.csdn.net/qq_39147299/article/details/109495792 ```shell pip install -i https://pypi.doubanio.com/simple requests # 豆瓣镜像源 pip install -i https://mirrors.aliyun.com/pypi/simple # 阿里云镜像 ``` #### flask 获取GET和POST请求参数 https://blog.csdn.net/ling620/article/details/107562294 https://blog.csdn.net/weixin_43790276/article/details/101390889 #### flask 蓝图 https://dormousehole.readthedocs.io/en/latest/blueprints.html #### github https://api.github.com/rate_limit "repository_search_url": "https://api.github.com/search/repositories?q={query}{&page,per_page,sort,order}" https://api.github.com/search/repositories?q=java&page=1&per_page=50&sort&order "label_search_url": "https://api.github.com/search/labels?q={query}&repository_id={repository_id}{&page,per_page}", "emojis_url": "https://api.github.com/emojis", "commit_search_url": "https://api.github.com/search/commits?q={query}{&page,per_page,sort,order}", "code_search_url": "https://api.github.com/search/code?q={query}{&page,per_page,sort,order}", 需要权限 https://api.github.com/repos/{repo_name}/releases/latest - 得到版本的sha https://api.github.com/repos/{repo_name}/{tagsOrBranches}?per_page=100&page=1 - 得到文件目录树 https://api.github.com/repos/{repo_name}/git/trees/{sha}?recursive=true - 得到目录里的文件内容 https://raw.githubbusercontent.com/{repo_name}/{sha}/{fileOrDir} #### github & gitee API https://gitee.com/api/v5/swagger https://docs.github.com/en/rest #### java 依赖查询 https://jarcasting.com/artifacts/{groupId}/{artifactId}/{version} https://mvnrepository.com/artifacts/{groupId}/{artifactId}/{version} #### gorm + gorm-gen https://pkg.go.dev/ ```shell 设置: go11xxx=on GOPATH 是go安装的目录 ROOTPATH go 包位置 go mod init go mod tidy go get -u gorm.io/gorm go get -u gorm.io/driver/mysql ``` - go proxy: https://goproxy.cn/ ```shell go install gorm.io/gen/tools/gentool@latest ``` - go 语言,ORM 生成工具: https://gorm.io/gen/gen_tool.html #### go web 框架 https://www.topgoer.com/%E5%BC%80%E6%BA%90/Web%E6%A1%86%E6%9E%B6.html #### jetbrains http://license.jetbrains.oa.com