__init__.py, 8
__repr__, 211
abstract syntax tree (AST), 135–141, 147
walking through, 139
Advanced Message Queuing Protocol (AMQP), 184–186
aiohttp library, 183
all() function, 128
ambiguous times, 55
any() function, 128
API (application programming interface)
designing, 45
architecture
event-driven, 181
service-oriented, 184
AST (abstract syntax tree), 135–141, 147
bisect.bisect() function, 159
bisect.bisect_left() function, 160
bisect.insort() function, 160
C10K, 181
CLOS (Common Lisp Object System), 203–205
closure, 159
Coghlan, Nick, 74
collections module, 153
Counter() method, 154
defaultdict, 153
namedtuple class, 165
Common Lisp Object System (CLOS), 203–205
context management protocol, 207–210
copy.deepcopy(), 176
Counter(), 154
CPython, 163, 169, 176, 178–179
backends, 190
existing time zones, 52
relational database management system (RDBMS), 187, 195–197
class decorators, 103
defaultdict, 153
dis.dis() function, 156
format, 61
packaging with setup.cfg, 60–61
distutils library, 58
doctest module, 38
entry points, 67
visualization, 68
enumerate() function, 127
event-driven architecture, 181–182
filter() function, 127
functional programming, 119–121
functools module, 105
update_wrapper() function, 105
wraps, 106
generic methods, 205
GitHub, 35
global interpreter lock (GIL), 13, 169, 176, 178
hierarchy, 7
import hook, 18
interprocess communication, 185–186
just-in-time (JIT) compilation, 14, 169
Jython, 178
lambda() function, 131
layout, 7
least recently used (LRU) cache, 167–168
libraries, 15
API, 46
list comprehension (listcomp), 125–126
map() method, 127
memoryview, 171
method resolution order (MRO), 115
modernize module, 203
modules included in the standard library, 21
multiple inheritance, 114
object relational mapping (ORM), 188, 197–198
OpenStack, 1, 13–14, 22, 29, 97
ordered lists, 159
packaging solutions, 74
pbr (Python Build Reasonableness), 60
PEP (Python Enhancement Proposal)
pep8, 10
plugins, 71
poll() function, 181
PostgreSQL, 190–194, 195–196, 198–199
profiling, 154
psycopg2 library, 192
pure functions, 120
pyflakes, 12
pylint, 12
pyprof2calltree, 155
PyPy, 169
coverage, 88
fixtures, 81
mark, 80
pattern, 79
scenarios, 83
PYTHONPATH, 18
Python versions, 5–6, 30, 201–203
relational database management system (RDBMS), 187, 195–197
REpresentational State Transfer (REST), 184
reStructured Text (reST), 34–36
scenarios, 83
semantic versioning, 9
service-oriented architecture, 184
singledispatch() function, 205–207
Single Responsibility Principle (SRP), 30
sorted() function, 128
SQL, 187–190, 197–198. See also PostgreSQL
streaming, 190
strings, 202
sys module, 17
sys.path variable, 18
taskflow, 14
testing
skipping, 78
threads, 178
timeit module, 175
tox-travis, 97
Travis CI, 96
Unicode, 202
update_wrapper() function, 105
versions
API, 41
re-creating, 94
Web Server Gateway Interface (WSGI), 29
universal, 63
with, 207
wraps decorator, 106
zero copy, 170
zip() function, 129
3.142.212.160