clx_IT 4885564143 提交 | 1 rok pred | |
---|---|---|
.idea | 1 rok pred | |
app | 1 rok pred | |
config | 1 rok pred | |
models | 1 rok pred | |
routers | 1 rok pred | |
test | 1 rok pred | |
utils | 1 rok pred | |
Dockerfile | 1 rok pred | |
README.md | 1 rok pred | |
Return.md | 1 rok pred | |
docker-compose.yml | 1 rok pred | |
requirements.txt | 1 rok pred | |
test_main.http | 1 rok pred |
A simple example of using Fast API in Python.
git clone git@gitee.com:cao-lixu/fastap_minio.git
pip install -r requirements.txt
docker run -p 9000:9000 minio/minio:RELEASE.2021-06-17T00-10-46Z server /data
uvicorn app.main:app --reload
pytest test/test.py
docker-compose up -d --build
docker-compose exec app pytest test/test.py
http://127.0.0.1:8000/docs
docker-compose exec --username=fastapi