内容简介
准备好完成从新手到Python专家的历练了吗?
《Python漫游指南(影印版 英文版)》给出了来自Python社区的实践和第1选择工具的内行指南,可以帮助那些希望向开源社区贡献力量或是想基于Python技术创业的中级程序员更上一层楼,迈入Python高手的殿堂。
《Python漫游指南(影印版 英文版)》包括三个不同的部分,汇集了超过百名Python社区成员的成果。首先,你将学习到如何设置、使用Python编辑工具;然后,将深入研究具有Python风格的代表性代码样例;最后,将探索Python社区常用的代码库。
内页插图
目录
Preface
Part I. Getting Started
1. Picking an Interpreter
The State of Python 2 Versus Python 3
Recommendations
So...3?
Implementations
CPython
Stackless
PyPy
Jython
IronPython
PythonNet
Skulpt
MicroPython
2. Properly Installing Python
Installing Python on Mac OS X
Setuptools and pip
virtualenv
Installing Python on Linux
Setuptools and pip
Development Tools
virtualenv
Installing Python on Windows
Setuptools and pip
virtualenv
Commercial Python Redistributions
3. Your Development Environment
Text Editors
Sublime Text
Vim
Emacs
TextMate
Atom
Code
IDEs
PyCharm/Intellij IDEA
Aptana Studio 3/Eclipse + LiClipse + PyDev
WingIDE
Spyder
NIN]A-IDE
Komodo IDE
Eric (the Eric Python IDE)
Visual Studio
Enhanced Interactive Tools
IDLE
IPython
bpython
Isolation Tools
Virtual Environments
pyenv
Autoenv
virtualenvwrapper
Buildout
Conda
Docker
Part II. Getting Down to Business
4. Writing Great Code
Code Style
PEP 8
PEP 20 (a.k.a. The Zen of Python)
General Advice
Conventions
Idioms
Common Gotchas
Structuring Your Project
Modules
Packages
Object-Oriented Programming
Decorators
Dynamic Typing
Mutable and Immutable Types
Vendorizing Dependencies
Testing Your Code
Testing Basics
Examples
Other Popular Tools
Documentation
Project Documentation
Project Publication
Docstring Versus Block Comments
Logging
Logging in a Library
Logging in an Application
Choosing a License
Upstream Licenses
Options
Licensing Resources
5. Reading Great Code
Common Features
HowDoI
Reading a Single-File Script
Structure Examples from HowDoI
Style Examples from HowDoI
Diamond
Reading a Larger Application
Structure Examples from Diamond
Style Examples from Diamond
Tablib
Reading a Small Library
Structure Examples from Tablib
Style Examples from Tablib
Requests
Reading a Larger Library
Structure Examples from Requests
Style Examples from Requests
Werkzeug
Reading Code in a Toolkit
Style Examples from Werkzeug
Structure Examples from Werkzeug
Flask
Reading Code in a Framework
Style Examples from Flask
Structure Examples from Flask
6. Shipping Great Code
Useful Vocabulary and Concepts
Packaging Your Code
Conda
VyPI
Freezing Your Code
PyInstaller
cx_Freeze
py2app
py2exe
bbFreeze
Packaging for Linux-Built Distributions
Executable ZIP Files
PartIII. Scenario Guide
7. User Interaction
Iupyter Notebooks
Command-Line Applications
GUI Applications
Widget Libraries
Game Development
Web Applications
Web Frameworks/Microframeworks
Web Template Engines
Web Deployment
8. Code Management and Improvement
Continuous Integration
System Administration
Server Automation
System and Task Monitoring
Speed
Interfacing with C/C++/FORTRAN Libraries
9. Software interfaces
Web Clients
Web APIs
Data Serialization
Distributed Systems
Networking
Cryptography
10. Data Manipulation
Scientific Applications
Text Manipulation and Text Mining
String Tools in Pythons Standard Library
Image Manipulation
11. Data Persistence
Structured Files
Database Libraries
A. Additional Notes
Index
前言/序言
Python is big. Really big. You just won't believe how vastly hugely mind-bogglingly big it is.
This guide is not intended to teach you the Python language (we ate lots of great resources that do that) but is rather an (opinionated) insider's guide to our community's favorite tools and best practices. The primary audience is new to mid-level Python programmers who are interested in contributing to open source or in beginning a career or starting a company using Python, although casual Python users should also find Part I and Chapter 5 helpful.
The first part will help you choose the text editor or interactive development environment that fits your situation (for example, those using Java frequently may prefer Eclipse with a Python plug-in) and surveys options for other interpreters that may meet needs you don't yet know Python c7ould address (e.g., there's a MicroPython implementation based around the ARM Cortex-M4 chip). The second section demonstrates Pythonic style by highlighting exemplary code in the open source community that w~l hopefully encourage more in-depth reading and experimentation with open source code. The final section briefly surveys the vast galaxy oflibraries most commonly used in the Python community-providing an idea of the scope of what
Python can do right now. All of the royalties from the print version of this book will be directly donated to the Django GirlsY (https://djangogirls.org/), a giddily joyous global organization dedicated to organizing free Django and Python workshops, creating open-sourced online tutorials, and curating amazing first experiences with technology Those who wish to contribute to the online version can read more about how to do it at our website (http://docs.python-guide.org/en/latest/notes/contribute/).
Python漫游指南(影印版 英文版) 电子书 下载 mobi epub pdf txt