_db suffix to variables for single entities. For example:
user_db = User.query().get()
_dbs suffix to variables for list of entities. For example:
user_dbs = User.query().fetch()
_qry suffix to variables for queries. For example:
user_qry = User.query()
Specify the UTF-8 encoding in every file:
# coding: utf-8.
Use trailing commas in multi-line array lists.
Use single quotes
', but avoid escaping.
Every import should be on separate line.
Imports should be grouped in the following order:
- standard library imports
- related third party imports
- local application/library specific imports
You should put a blank line between each group of imports.