In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The only hint we're using async is the async keyword, which marks the handle function as being a coroutine."
A block of code is set as follows:
import time
def application(environ, start_response):
headers = [('Content-type', 'application/json')]
start_response('200 OK', headers)
return bytes(json.dumps({'time': time.time()}), 'utf8')
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
from greenlet import greenlet
def test1(x, y):
z = gr2.switch(x+y)
print(z)
Any command-line input or output is written as follows:
docker-compose up
New terms and important words are shown in bold.
Warnings or important notes appear like this.
Tips and tricks appear like this.