You are previewing Python Projects.
O'Reilly logo
Python Projects

Book Description

A guide to completing Python projects for those ready to take their skills to the next level

Python Projects is the ultimate resource for the Python programmer with basic skills who is ready to move beyond tutorials and start building projects.

The preeminent guide to bridge the gap between learning and doing, this book walks readers through the "where" and "how" of real-world Python programming with practical, actionable instruction. With a focus on real-world functionality, Python Projects details the ways that Python can be used to complete daily tasks and bring efficiency to businesses and individuals alike.

Python Projects is written specifically for those who know the Python syntax and lay of the land, but may still be intimidated by larger, more complex projects. The book provides a walk-through of the basic set-up for an application and the building and packaging for a library, and explains in detail the functionalities related to the projects. Topics include:

  • How to maximize the power of the standard library modules

  • Where to get third party libraries, and the best practices for utilization

  • Creating, packaging, and reusing libraries within and across projects

  • Building multi-layered functionality including networks, data, and user interfaces

  • Setting up development environments and using virtualenv, pip, and more

  • Written by veteran Python trainers, the book is structured for easy navigation and logical progression that makes it ideal for individual, classroom, or corporate training.

    For Python developers looking to apply their skills to real-world challenges, Python Projects is a goldmine of information and expert insight.

    Table of Contents

    1. Introduction
      1. Why We Wrote This Book
      2. Who This Book For
      3. What You Will Learn
      4. What You Need to Use This Book
      5. Conventions
      6. Source Code
      7. Errata
    2. Chapter 1: Reviewing Core Python
      1. Exploring the Python Language and the Interpreter
      2. Reviewing the Python Data Types
      3. Using Python Control Structures
      4. Getting Data In and Out of Python
      5. Extending Python
      6. Creating and Using Modules and Packages
      7. Creating an Example Package
      8. Using Third-Party Packages
      9. Summary
    3. Chapter 2: Scripting with Python
      1. Accessing the Operating System
      2. Working with Dates and Times
      3. Handling Common File Formats
      4. Accessing Native APIs with ctypes and pywin32
      5. Automating Tasks Involving Multiple Applications
      6. Summary
    4. Chapter 3: Managing Data
      1. Storing Data Using Python
      2. Analyzing Data with Python
      3. Managing Data Using SQL
      4. Migrating LendyDB to an SQL Database
      5. Exploring Other Data Management Options
      6. Summary
    5. Chapter 4: Building Desktop Applications
      1. Structuring Applications
      2. Building Command-Line Interfaces
      3. Using the cmd Module to Build a Command-Line Interface
      4. Reading Command-Line Arguments
      5. Jazzing Up the Command-Line Interface with Some Dialogs
      6. Programming GUIs with Tkinter
      7. Storing Local Data
      8. Understanding Localization
      9. Summary
    6. Chapter 5: Python on the Web
      1. Python on the Web
      2. Web Programming with Python
      3. More on Python and the Web
      4. Using Python Across the Wire
      5. More Networking Fun in Python
      6. Summary
      7. Exercises
    7. Chapter 6: Python in Bigger Projects
      1. Testing with the Doctest Module
      2. Testing with the Unittest Module
      3. Test-Driven Development in Python
      4. Debugging Your Python Code
      5. Working on Larger Python Projects
      6. Releasing Python Packages
      7. Summary
    8. Chapter 7: Exploring Python’s Frontiers
      1. Drawing Pictures with Python
      2. Doing Science with Python
      3. Playing Games with Python
      4. Going to the Movies
      5. Integrating with Other Languages
      6. Getting Physical
      7. Building Python
      8. Summary
    9. Appendix A: Answers to Exercises
    10. Appendix B: Python Standard Modules
    11. Appendix C: Useful Python Resources
      1. Asking Questions: Mailing Lists and More
      2. Reading Blogs
      3. Studying Tutorials and References
      4. Watching Videos
      5. And Now for Something Completely Different…
    12. References
    13. Title Page
    14. Copyright
    15. Dedication
    16. About the Authors
    17. About the Technical Editors
    18. Credits
    19. Acknowledgments
    20. Advert
    21. Wiley End User License Agreement