Что нового?

Скачать [Michael Herman] Разработка через тестирование с помощью FastAPI и Docker (2021

Aleks

VIP
Регистрация
Июл 2, 2020
Сообщения
83,471
Автор: Michael Herman
Название: Разработка через тестирование с помощью FastAPI и Docker (2021)

1.jpg



Описание:

Язык: Английский

Автор: Michael Herman

В первой части, вы научитесь разрабатывать асинхронное RESTful API с помощью Python, FastAPI и Postgres. Вы создадите контейнер с FastAPI and Postgres для запуска в Docker и настроите pytest для практики Test-Driven Development (TDD).

1. Develop an asynchronous RESTful API with Python and FastAPI
2. Practice Test-Driven Development
3. Test a FastAPI app with pytest
4. Interact with a Postgres database asynchronously
5. Containerize FastAPI and Postgres inside a Docker container
6. Run unit and integration tests with code coverage
7. Check your code for any code quality issues via a linter

Во второй части, вы задеплоите FastAPI, Gunicorn, Uvicorn и Postgres на Heroku с помощью Docker. Затем вы продолжите создание RESTful API по мере написания unit и integration тестов.

1. Configure GitHub Actions for continuous integration and deployment
2. Use GitHub Packages to store Docker Images
3. Speed up a Docker-based CI build with Docker Cache
4. Deploy FastAPI, Uvicorn, and Postgres to Heroku with Docker
5. Parameterize test functions and mock functionality in tests with pytest
6. Run tests in parallel with pytest-xdist
7. Document a RESTful API with Swagger/OpenAPI
8. Run a background process outside the request/response flow

Используемые технологии и сервисы

Python, FastAPI, Docker, Postgres, Tortoise ORM, Uvicorn, Gunicorn, Swagger/OpenAPI, pytest, Coverage.py, Flake8, Black, isort, HTTPie, GitHub Actions, GitHub Packages, Heroku.

Скачать:
 
Сверху