Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “However, to fully use this feature, install the flask[async]
module using the following pip
command:”
A block of code is set as follows:
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session DB_URL = "postgresql://<username>:<password>@localhost:5433/sms"
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
engine = create_engine(DB_URL) db_session = scoped_session(sessionmaker(autocommit=False, autoflush=False, bind=engine)) Base = declarative_base() def init_db(): import modules.model.db
Any command-line input or output is written as follows:
pip install flask[async]
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Clicking this option will lead you to the Enter interpreter path… menu command and, eventually, to the Find… option.”
Tips or important notes
Appear like this.