Building Serverless Python Web Services with Zappa
上QQ阅读APP看书,第一时间看更新

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in the text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Zappa deployment requires the zappa_settings.json file, which generates the zappa init command."

A block of code is set as follows:

client = boto3.client('lambda')
response = client.invoke(
FunctionName='MyFunction',
InvocationType='Event'
)

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

$ curl https://quote-api.abdulwahid.info/daily
{"quote": "May the Force be with you.", "author": "Star Wars", "category": "Movies"}

Any command-line input or output is written as follows:

$ pip install awscli

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialogue boxes appear in the text like this. Here is an example: "Click on the Create a function button."

Warnings or important notes appear like this.
Tips and tricks appear like this.