Table of Contents for
Serious Python

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Serious Python by Julien Danjou Published by No Starch Press, 2018
  1. Cover Page
  2. Title Page
  3. Copyright Page
  4. About the Author
  5. About the Technical Reviewer
  6. BRIEF CONTENTS
  7. CONTENTS IN DETAIL
  8. ACKNOWLEDGMENTS
  9. INTRODUCTION
  10. 1 STARTING YOUR PROJECT
  11. 2 MODULES, LIBRARIES, AND FRAMEWORKS
  12. 3 DOCUMENTATION AND GOOD API PRACTICE
  13. 4 HANDLING TIMESTAMPS AND TIME ZONES
  14. 5 DISTRIBUTING YOUR SOFTWARE
  15. 6 UNIT TESTING
  16. 7 METHODS AND DECORATORS
  17. 8 FUNCTIONAL PROGRAMMING
  18. 9 THE ABSTRACT SYNTAX TREE, HY, AND LISP-LIKE ATTRIBUTES
  19. 10 PERFORMANCES AND OPTIMIZATIONS
  20. 11 SCALING AND ARCHITECTURE
  21. 12 MANAGING RELATIONAL DATABASES
  22. 13 WRITE LESS, CODE MORE
  23. INDEX
  24. Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More
  25. Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More
  26. Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More
  27. Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More
  28. Serious Python: Black-Belt Advice on Deployment, Scalability, Testing, and More

Contents in Detail

  1. Cover Page
  2. Title Page
  3. Copyright Page
  4. About the Author
  5. About the Technical Reviewer
  6. BRIEF CONTENTS
  7. CONTENTS IN DETAIL
  8. ACKNOWLEDGMENTS
  9. INTRODUCTION
    1. Who Should Read This Book and Why
    2. About This Book
  10. 1 STARTING YOUR PROJECT
    1. Versions of Python
    2. Laying Out Your Project
    3. Version Numbering
    4. Coding Style and Automated Checks
    5. Joshua Harlow on Python
  11. 2 MODULES, LIBRARIES, AND FRAMEWORKS
    1. The Import System
    2. Useful Standard Libraries
    3. External Libraries
    4. Package Installation: Getting More from pip
    5. Using and Choosing Frameworks
    6. Doug Hellmann, Python Core Developer, on Python Libraries
  12. 3 DOCUMENTATION AND GOOD API PRACTICE
    1. Documenting with Sphinx
    2. Summary
    3. Christophe de Vienne on Developing APIs
  13. 4 HANDLING TIMESTAMPS AND TIME ZONES
    1. The Problem of Missing Time Zones
    2. Building Default datetime Objects
    3. Time Zone–Aware Timestamps with dateutil
    4. Serializing Time Zone–Aware datetime Objects
    5. Solving Ambiguous Times
    6. Summary
  14. 5 DISTRIBUTING YOUR SOFTWARE
    1. A Bit of setup.py History
    2. Packaging with setup.cfg
    3. The Wheel Format Distribution Standard
    4. Sharing Your Work with the World
    5. Entry Points
    6. Summary
    7. Nick Coghlan on Packaging
  15. 6 UNIT TESTING
    1. The Basics of Testing
    2. Virtual Environments
    3. Testing Policy
    4. Robert Collins on Testing
  16. 7 METHODS AND DECORATORS
    1. Decorators and When to Use Them
    2. How Methods Work in Python
    3. Static Methods
    4. Class Methods
    5. Abstract Methods
    6. Mixing Static, Class, and Abstract Methods
    7. Summary
  17. 8 FUNCTIONAL PROGRAMMING
    1. Creating Pure Functions
    2. Generators
    3. List Comprehensions
    4. Functional Functions Functioning
    5. Summary
  18. 9 THE ABSTRACT SYNTAX TREE, HY, AND LISP-LIKE ATTRIBUTES
    1. Looking at the AST
    2. Extending flake8 with AST Checks
    3. A Quick Introduction to Hy
    4. Summary
    5. Paul Tagliamonte on the AST and Hy
  19. 10 PERFORMANCES AND OPTIMIZATIONS
    1. Data Structures
    2. Understanding Behavior Through Profiling
    3. Defining Functions Efficiently
    4. Ordered Lists and bisect
    5. namedtuple and Slots
    6. Memoization
    7. Faster Python with PyPy
    8. Achieving Zero Copy with the Buffer Protocol
    9. Summary
    10. Victor Stinner on Optimization
  20. 11 SCALING AND ARCHITECTURE
    1. Multithreading in Python and Its Limitations
    2. Multiprocessing vs. Multithreading
    3. Event-Driven Architecture
    4. Other Options and asyncio
    5. Service-Oriented Architecture
    6. Interprocess Communication with ZeroMQ
    7. Summary
  21. 12 MANAGING RELATIONAL DATABASES
    1. RDBMSs, ORMs, and When to Use Them
    2. Database Backends
    3. Streaming Data with Flask and PostgreSQL
    4. Dimitri Fontaine on Databases
  22. 13 WRITE LESS, CODE MORE
    1. Using six for Python 2 and 3 Support
    2. Using Python Like Lisp to Make a Single Dispatcher
    3. Context Managers
    4. Less Boilerplate with attr
    5. Summary
  23. INDEX
  1. iii
  2. iv
  3. vii
  4. ix
  5. xi
  6. xii
  7. xiii
  8. xiv
  9. xv
  10. xvi
  11. 1
  12. 2
  13. 3
  14. 5
  15. 6
  16. 7
  17. 8
  18. 9
  19. 10
  20. 11
  21. 12
  22. 13
  23. 14
  24. 15
  25. 16
  26. 17
  27. 18
  28. 19
  29. 20
  30. 21
  31. 22
  32. 23
  33. 24
  34. 25
  35. 26
  36. 27
  37. 28
  38. 29
  39. 30
  40. 31
  41. 33
  42. 34
  43. 35
  44. 36
  45. 37
  46. 38
  47. 39
  48. 40
  49. 41
  50. 42
  51. 43
  52. 44
  53. 45
  54. 46
  55. 47
  56. 49
  57. 50
  58. 51
  59. 52
  60. 53
  61. 54
  62. 55
  63. 56
  64. 57
  65. 58
  66. 59
  67. 60
  68. 61
  69. 62
  70. 63
  71. 64
  72. 65
  73. 66
  74. 67
  75. 68
  76. 69
  77. 70
  78. 71
  79. 72
  80. 73
  81. 74
  82. 75
  83. 76
  84. 77
  85. 78
  86. 79
  87. 80
  88. 81
  89. 82
  90. 83
  91. 84
  92. 85
  93. 86
  94. 87
  95. 88
  96. 89
  97. 90
  98. 91
  99. 92
  100. 93
  101. 94
  102. 95
  103. 96
  104. 97
  105. 98
  106. 99
  107. 100
  108. 101
  109. 102
  110. 103
  111. 104
  112. 105
  113. 106
  114. 107
  115. 108
  116. 109
  117. 110
  118. 111
  119. 112
  120. 113
  121. 114
  122. 115
  123. 116
  124. 117
  125. 119
  126. 120
  127. 121
  128. 122
  129. 123
  130. 124
  131. 125
  132. 126
  133. 127
  134. 128
  135. 129
  136. 130
  137. 131
  138. 132
  139. 133
  140. 134
  141. 135
  142. 136
  143. 137
  144. 138
  145. 139
  146. 140
  147. 141
  148. 142
  149. 143
  150. 144
  151. 145
  152. 146
  153. 147
  154. 148
  155. 149
  156. 151
  157. 152
  158. 153
  159. 154
  160. 155
  161. 156
  162. 157
  163. 158
  164. 159
  165. 160
  166. 161
  167. 162
  168. 163
  169. 164
  170. 165
  171. 166
  172. 167
  173. 168
  174. 169
  175. 170
  176. 171
  177. 172
  178. 173
  179. 174
  180. 175
  181. 176
  182. 177
  183. 178
  184. 179
  185. 180
  186. 181
  187. 182
  188. 183
  189. 184
  190. 185
  191. 186
  192. 187
  193. 188
  194. 189
  195. 190
  196. 191
  197. 192
  198. 193
  199. 194
  200. 195
  201. 196
  202. 197
  203. 198
  204. 199
  205. 201
  206. 202
  207. 203
  208. 204
  209. 205
  210. 206
  211. 207
  212. 208
  213. 209
  214. 210
  215. 211
  216. 212
  217. 213
  218. 215
  219. 216
  220. 217
  221. 218
  222. 219
  223. 221
  224. 223
  225. 224
Back to top