معرفی کتاب «Core Python Applications Programming (3rd Edition) (Core Series)» نوشتهٔ Wesley J. Chun در سال 2012. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Core Python Applications Programming (3rd Edition) (Core Series)» در دستهٔ بدون دستهبندی قرار دارد.
Already know Python but want to learn more? A lot more? Dive into a variety of topics used in practice for real-world applications. Covers regular expressions, Internet/network programming, GUIs, SQL/databases/ORMs, threading, and Web development. Learn about contemporary development trends such as Google+, Twitter, MongoDB, OAuth, Python 3 migration, and Java/Jython. Presents brand new material on Django, Google Read more... Abstract: Already know Python but want to learn more? A lot more? Dive into a variety of topics used in practice for real-world applications. Covers regular expressions, Internet/network programming, GUIs, SQL/databases/ORMs, threading, and Web development. Learn about contemporary development trends such as Google+, Twitter, MongoDB, OAuth, Python 3 migration, and Java/Jython. Presents brand new material on Django, Google App Engine, CSV/JSON/XML, and Microsoft Office. Includes Python 2 and 3 code samples to get you started right away! Provides code snippets, interactive examples, and practical exercises to help build your Python skills. The Complete Developer's Guide to Python Python is an agile, robust, and expressive programming language that continues to build momentum. It combines the power of compiled languages with the simplicity and rapid development of scripting languages. In Core Python Applications Programming, Third Edition , leading Python developer and corporate trainer Wesley Chun helps you take your Python knowledge to the next level. This book has everything you need to become a versatile Python developer. You will be introduced to multiple areas of application development and gain knowledge that can be immediately applied to projects, and you will find code samples in both Python 2 and 3, including migration tips if that's on your roadmap too. Some snippets will even run unmodified on 2.x or 3.x. Learn professional Python style, best practices, and good programming habits Build clients and servers using TCP, UDP, XML-RPC, and be exposed to higher-level libraries like SocketServer and Twisted Develop GUI applications using Tkinter and other available toolkits Improve application performance by writing extensions in C/C++, or enhance I/O-bound code with multithreading Discover SQL and relational databases, ORMs, and even non-relational (NonSQL) databases like MongoDB Learn the basics of Web programming, including Web clients and servers, plus CGI and WSGI Expose yourself to regular expressions and powerful text processing tools for creating and parsing CSV, JSON, and XML data Interface with popular Microsoft Office applications such as Excel, PowerPoint, and Outlook using COM client programming Dive deeper into Web development with the Django framework and cloud computing with Google App Engine Explore Java programming with Jython, the way to run Python code on the JVM Connect to Web services Yahoo! Finance to get stock quotes, or Yahoo Contents 10 Preface 16 Acknowledgments 28 About the Author 32 Part I: General Application Topics 34 Chapter 1 Regular Expressions 35 1.1 Introduction/Motivation 36 1.2 Special Symbols and Characters 39 1.3 Regexes and Python 49 1.4 Some Regex Examples 69 1.5 A Longer Regex Example 74 1.6 Exercises 81 Chapter 2 Network Programming 86 2.1 Introduction 87 2.2 What Is Client/Server Architecture? 87 2.3 Sockets: Communication Endpoints 91 2.4 Network Programming in Python 94 2.5 *The SocketServer Module 112 2.6 *Introduction to the Twisted Framework 117 2.7 Related Modules 121 2.8 Exercises 122 Chapter 3 Internet Client Programming 127 3.1 What Are Internet Clients? 128 3.2 Transferring Files 129 3.3 Network News 137 3.4 E-Mail 147 3.5 Related Modules 179 3.6 Exercises 181 Chapter 4 Multithreaded Programming 189 4.1 Introduction/Motivation 190 4.2 Threads and Processes 191 4.3 Threads and Python 193 4.4 The thread Module 197 4.5 The threading Module 202 4.6 Comparing Single vs. Multithreaded Execution 213 4.7 Multithreading in Practice 215 4.8 Producer-Consumer Problem and the Queue/queue Module 235 4.9 Alternative Considerations to Threads 239 4.10 Related Modules 242 4.11 Exercises 243 Chapter 5 GUI Programming 246 5.1 Introduction 247 5.2 Tkinter and Python Programming 249 5.3 Tkinter Examples 254 5.4 A Brief Tour of Other GUIs 269 5.5 Related Modules and Other GUIs 280 5.6 Exercises 283 Chapter 6 Database Programming 286 6.1 Introduction 287 6.2 The Python DB-API 292 6.3 ORMs 322 6.4 Non-Relational Databases 342 6.5 Related References 349 6.6 Exercises 352 Chapter 7 *Programming Microsoft Office 357 7.1 Introduction 358 7.2 COM Client Programming with Python 359 7.3 Introductory Examples 361 7.4 Intermediate Examples 371 7.5 Related Modules/Packages 390 7.6 Exercises 390 Chapter 8 Extending Python 397 8.1 Introduction/Motivation 398 8.2 Extending Python by Writing Extensions 401 8.3 Related Topics 417 8.4 Exercises 421 Part II: Web Development 422 Chapter 9 Web Clients and Servers 423 9.1 Introduction 424 9.2 Python Web Client Tools 429 9.3 Web Clients 443 9.4 Web (HTTP) Servers 461 9.5 Related Modules 466 9.6 Exercises 469 Chapter 10 Web Programming: CGI and WSGI 474 10.1 Introduction 475 10.2 Helping Web Servers Process Client Data 475 10.3 Building CGI Applications 479 10.4 Using Unicode with CGI 497 10.5 Advanced CGI 499 10.6 Introduction to WSGI 511 10.7 Real-World Web Development 520 10.8 Related Modules 521 10.9 Exercises 523 Chapter 11 Web Frameworks: Django 526 11.1 Introduction 527 11.2 Web Frameworks 527 11.3 Introduction to Django 529 11.4 Projects and Apps 534 11.5 Your "Hello World" Application (A Blog) 540 11.6 Creating a Model to Add Database Service 542 11.7 The Python Application Shell 547 11.8 The Django Administration App 551 11.9 Creating the Blog's User Interface 560 11.10 Improving the Output 570 11.11 Working with User Input 575 11.12 Forms and Model Forms 579 11.13 More About Views 584 11.14 *Look-and-Feel Improvements 586 11.15 *Unit Testing 587 11.16 *An Intermediate Django App: The TweetApprover 597 11.17 Resources 630 11.18 Conclusion 630 11.19 Exercises 631 Chapter 12 Cloud Computing: Google App Engine 637 12.1 Introduction 638 12.2 What Is Cloud Computing? 638 12.3 The Sandbox and the App Engine SDK 645 12.4 Choosing an App Engine Framework 650 12.5 Python 2.7 Support 659 12.6 Comparisons to Django 661 12.7 Morphing "Hello World" into a Simple Blog 664 12.8 Adding Memcache Service 680 12.9 Static Files 684 12.10 Adding Users Service 685 12.11 Remote API Shell 687 12.12 Lightning Round (with Python Code) 689 12.13 Sending Instant Messages by Using XMPP 693 12.14 Processing Images 695 12.15 Task Queues (Unscheduled Tasks) 696 12.16 Profiling with Appstats 703 12.17 The URLfetch Service 705 12.18 Lightning Round (without Python Code) 706 12.19 Vendor Lock-In 708 12.20 Resources 709 12.21 Conclusion 712 12.22 Exercises 713 Chapter 13 Web Services 717 13.1 Introduction 718 13.2 The Yahoo! Finance Stock Quote Server 718 13.3 Microblogging with Twitter 723 13.4 Exercises 740 Part III: Supplemental/Experimental 746 Chapter 14 Text Processing 747 14.1 Comma-Separated Values 748 14.2 JavaScript Object Notation 752 14.3 Extensible Markup Language 757 14.4 References 771 14.5 Related Modules 773 14.6 Exercises 773 Chapter 15 Miscellaneous 776 15.1 Jython 777 15.2 Google+ 781 15.3 Exercises 792 Appendix A: Answers to Selected Exercises 796 Appendix B: Reference Tables 801 Appendix C: Python 3: The Evolution of a Programming Language 831 C.1 Why Is Python Changing? 832 C.2 What Has Changed? 832 C.3 Migration Tools 838 C.4 Conclusion 839 C.5 References 839 Appendix D: Python 3 Migration with 2.6+ 840 D.1 Python 3: The Next Generation 840 D.2 Integers 842 D.3 Built-In Functions 845 D.4 Object-Oriented Programming: Two Different Class Objects 847 D.5 Strings 848 D.6 Exceptions 849 D.7 Other Transition Tools and Tips 850 D.8 Writing Code That is Compatible in Both Versions 2.x and 3.x 851 D.9 Conclusion 855 Index 856 A 856 B 857 C 858 D 861 E 863 F 864 G 865 H 867 I 868 J 869 K 869 L 869 M 870 N 871 O 872 P 872 Q 875 R 875 S 876 T 879 U 882 V 883 W 883 X 885 Y 885 Z 885
- Already know Python but want to learn more? A lot more? Dive into a variety of topics used in practice for real-world applications.
- Covers regular expressions, Internet/network programming, GUIs, SQL/databases/ORMs, threading, and Web development.
- Learn about contemporary development trends such as Google+, Twitter, MongoDB, OAuth, Python 3 migration, and Java/Jython. Presents brand new material on Django, Google App Engine, CSV/JSON/XML, and Microsoft Office. Includes Python 2 and 3 code samples to get you started right away!
- Provides code snippets, interactive examples, and practical exercises to help build your Python skills.
The Complete Developer’s Guide to Python Python is an agile, robust, and expressive programming language that continues to build momentum. It combines the power of compiled languages with the simplicity and rapid development of scripting languages. In Core Python Applications Programming, Third Edition , leading Python developer and corporate trainer Wesley Chun helps you take your Python knowledge to the next level.
This book has everything you need to become a versatile Python developer. You will be introduced to multiple areas of application development and gain knowledge that can be immediately applied to projects, and you will find code samples in both Python 2 and 3, including migration tips if that’s on your roadmap too. Some snippets will even run unmodified on 2.x or 3.x.
- Learn professional Python style, best practices, and good programming habits
- Build clients and servers using TCP, UDP, XML-RPC, and be exposed to higher-level libraries like SocketServer and Twisted
- Develop GUI applications using Tkinter and other available toolkits
- Improve application performance by writing extensions in C/C++, or enhance I/O-bound code with multithreading
- Discover SQL and relational databases, ORMs, and even non-relational (NonSQL) databases like MongoDB
- Learn the basics of Web programming, including Web clients and servers, plus CGI and WSGI
- Expose yourself to regular expressions and powerful text processing tools for creating and parsing CSV, JSON, and XML data
- Interface with popular Microsoft Office applications such as Excel, PowerPoint, and Outlook using COM client programming
- Dive deeper into Web development with the Django framework and cloud computing with Google App Engine
- Explore Java programming with Jython, the way to run Python code on the JVM
- Connect to Web services Yahoo! Finance to get stock quotes, or Yahoo! Mail, Gmail, and others to download or send e-mail
- Jump into the social media craze by learning how to connect to the Twitter and Google+ networks
Core Python Applications Programming, Third Edition, delivers
- Broad coverage of a variety of areas of development used in real-world applications today
- Powerful insights into current and best practices for the intermediate Python programmer
- Dozens of code examples, from quick snippets to full-fledged applications
- A variety of exercises at the end of every chapter to help hammer the concepts home