mongodb-with-starlette:将MongoDB与Starlette结合使用的示例

时间:2021-03-16 21:12:21
【文件属性】:
文件名称:mongodb-with-starlette:将MongoDB与Starlette结合使用的示例
文件大小:2KB
文件格式:ZIP
更新时间:2021-03-16 21:12:21
Python 具有Starlette的MongoDB 这是一个小示例项目,展示了如何使用和构建API。 它是写在-您应该阅读它! TL; DR 如果您确实不想阅读该并且想要启动并运行,请激活您的Python virtualenv,然后从终端运行以下命令(首先编辑DB_URL !): # Install the requirements: pip install -r requirements.txt # Configure the location of your MongoDB database: export MONGODB_URL= " mongodb+srv://:@/?retryWrites=true&w=majority " # Start the service: uvicorn app:app --reload (如果需要
【文件预览】:
mongodb-with-starlette-master
----app.py(2KB)
----requirements.txt(311B)
----README.md(1KB)

网友评论