Technical requirements
See the requirements presented in Chapter 1. The additional technical requirements for the code discussed in this chapter are the following:
- For the Microservices pattern section, install the following:
- gRPC, using the following command:
python -m pip
install grpcio
- gRPC-tools, using the following command:
python -m pip
install grpcio-tools
- Lanarky and its dependencies, using the following command:
python -m pip install "lanarky[openai]"==0.8.6 uvicorn==0.29.0
(Note that this is not compatible with Python 3.12, at the time of writing. In this case, you may reproduce the related example using Python 3.11 instead.)
- gRPC, using the following command:
- For the Serverless pattern section, install the following:
- Docker
- LocalStack, for testing AWS Lambda locally, using the following command:
python –m pip install localstack
(Note that this is not compatible with Python 3.12, at the time of writing. You may use Python 3.11 instead for this case.) - awscli-local, using the command:...