Sqlalchemy,研究生,Connexion Utility
connexion_sql_utils的Python项目详细描述
“连接”
SalalChany,PASGRESs,连接效用
功能
- 使用Connexion,Sqlalchemy,帮助快速创建rest api, 以及Postgresql
在Docker中运行示例API
通过克隆回购协议:
git clone https://github.com/m-housh/connexion_sql_utils.git
cd ./connexion_sql_utils
docker-compose up
不克隆回购协议:
docker pull mhoush/connexion_sql_utils docker pull postgres/alpine docker run -d --name some_postgres \ -e POSTGRES_PASSWORD=postgres \ postgres:alpine docker run --rm -it --link some_postgres:postgres \ -e DB_HOST=postgres \ -e DB_PASSWORD=postgres \ -p "8080:8080"\ mhoush/connexion_sql_utils
查看位于http://localhost:8080/ui
的示例api学分
这个包是用Cookiecutter和audreyr/cookiecutter-pypackage项目模板创建的。
历史记录
0.1.0(2017-03-08)
- pypi上的第一个版本。
0.1.3
- 增加了将会话传递到BaseMIXE数据库方法的能力。
- 添加了dump_methoddecorator以允许在 创建json表示。
0.1.4
- 添加了转储为dict而不是始终作为json字符串的功能。