内容简介

  准备好完成从新手到Python专家的历练了吗?
  《Python漫游指南(影印版英文版)》给出了来自Python社区的实践和第1选择工具的内行指南,可以帮助那些希望向开源社区贡献力量或是想基于Python技术创业的中级程序员更上一层楼,迈入Python高手的殿堂。
  《Python漫游指南(影印版英文版)》包括三个不同的部分,汇集了超过百名Python社区成员的成果。首先,你将学习到如何设置、使用Python编辑工具;然后,将深入研究具有Python风格的代表性代码样例;最后,将探索Python社区常用的代码库。

目录

Preface

PartI.GettingStarted
1.PickinganInterpreter
TheStateofPython2VersusPython3
Recommendations
So...3?
Implementations
CPython
Stackless
PyPy
Jython
IronPython
PythonNet
Skulpt
MicroPython
2.ProperlyInstallingPython
InstallingPythononMacOSX
Setuptoolsandpip
virtualenv
InstallingPythononLinux
Setuptoolsandpip
DevelopmentTools
virtualenv
InstallingPythononWindows
Setuptoolsandpip
virtualenv
CommercialPythonRedistributions
3.YourDevelopmentEnvironment
TextEditors
SublimeText
Vim
Emacs
TextMate
Atom
Code
IDEs
PyCharm/IntellijIDEA
AptanaStudio3/Eclipse+LiClipse+PyDev
WingIDE
Spyder
NIN]A-IDE
KomodoIDE
Eric(theEricPythonIDE)
VisualStudio
EnhancedInteractiveTools
IDLE
IPython
bpython
IsolationTools
VirtualEnvironments
pyenv
Autoenv
virtualenvwrapper
Buildout
Conda
Docker

PartII.GettingDowntoBusiness
4.WritingGreatCode
CodeStyle
PEP8
PEP20(a.k.a.TheZenofPython)
GeneralAdvice
Conventions
Idioms
CommonGotchas
StructuringYourProject
Modules
Packages
Object-OrientedProgramming
Decorators
DynamicTyping
MutableandImmutableTypes
VendorizingDependencies
TestingYourCode
TestingBasics
Examples
OtherPopularTools
Documentation
ProjectDocumentation
ProjectPublication
DocstringVersusBlockComments
Logging
LogginginaLibrary
LogginginanApplication
ChoosingaLicense
UpstreamLicenses
Options
LicensingResources
5.ReadingGreatCode
CommonFeatures
HowDoI
ReadingaSingle-FileScript
StructureExamplesfromHowDoI
StyleExamplesfromHowDoI
Diamond
ReadingaLargerApplication
StructureExamplesfromDiamond
StyleExamplesfromDiamond
Tablib
ReadingaSmallLibrary
StructureExamplesfromTablib
StyleExamplesfromTablib
Requests
ReadingaLargerLibrary
StructureExamplesfromRequests
StyleExamplesfromRequests
Werkzeug
ReadingCodeinaToolkit
StyleExamplesfromWerkzeug
StructureExamplesfromWerkzeug
Flask
ReadingCodeinaFramework
StyleExamplesfromFlask
StructureExamplesfromFlask
6.ShippingGreatCode
UsefulVocabularyandConcepts
PackagingYourCode
Conda
VyPI
FreezingYourCode
PyInstaller
cx_Freeze
py2app
py2exe
bbFreeze
PackagingforLinux-BuiltDistributions
ExecutableZIPFiles

PartIII.ScenarioGuide
7.UserInteraction
IupyterNotebooks
Command-LineApplications
GUIApplications
WidgetLibraries
GameDevelopment
WebApplications
WebFrameworks/Microframeworks
WebTemplateEngines
WebDeployment
8.CodeManagementandImprovement
ContinuousIntegration
SystemAdministration
ServerAutomation
SystemandTaskMonitoring
Speed
InterfacingwithC/C++/FORTRANLibraries
9.Softwareinterfaces
WebClients
WebAPIs
DataSerialization
DistributedSystems
Networking
Cryptography
10.DataManipulation
ScientificApplications
TextManipulationandTextMining
StringToolsinPythonsStandardLibrary
ImageManipulation
11.DataPersistence
StructuredFiles
DatabaseLibraries
A.AdditionalNotes

Index

前言/序言

  Pythonisbig.Reallybig.Youjustwon'tbelievehowvastlyhugelymind-bogglinglybigitis.
  ThisguideisnotintendedtoteachyouthePythonlanguage(weatelotsofgreatresourcesthatdothat)butisratheran(opinionated)insider'sguidetoourcommunity'sfavoritetoolsandbestpractices.Theprimaryaudienceisnewtomid-levelPythonprogrammerswhoareinterestedincontributingtoopensourceorinbeginningacareerorstartingacompanyusingPython,althoughcasualPythonusersshouldalsofindPartIandChapter5helpful.
  Thefirstpartwillhelpyouchoosethetexteditororinteractivedevelopmentenvironmentthatfitsyoursituation(forexample,thoseusingJavafrequentlymaypreferEclipsewithaPythonplug-in)andsurveysoptionsforotherinterpretersthatmaymeetneedsyoudon'tyetknowPythonc7ouldaddress(e.g.,there'saMicroPythonimplementationbasedaroundtheARMCortex-M4chip).ThesecondsectiondemonstratesPythonicstylebyhighlightingexemplarycodeintheopensourcecommunitythatw~lhopefullyencouragemorein-depthreadingandexperimentationwithopensourcecode.ThefinalsectionbrieflysurveysthevastgalaxyoflibrariesmostcommonlyusedinthePythoncommunity-providinganideaofthescopeofwhat
  Pythoncandorightnow.AlloftheroyaltiesfromtheprintversionofthisbookwillbedirectlydonatedtotheDjangoGirlsY(https://djangogirls.org/),agiddilyjoyousglobalorganizationdedicatedtoorganizingfreeDjangoandPythonworkshops,creatingopen-sourcedonlinetutorials,andcuratingamazingfirstexperienceswithtechnologyThosewhowishtocontributetotheonlineversioncanreadmoreabouthowtodoitatourwebsite(http://docs.python-guide.org/en/latest/notes/contribute/).

其他推荐