Learn to design and implement reliable Python applications on the Raspberry Pi using a range of external libraries, the Raspberry Pis GPIO port, and the camera module
About This Book
- Learn the fundamentals of Python scripting and application programming
- Design user-friendly command-line and graphical user interfaces
- A step-by-step guide to learning Python programming with the Pi
Who This Book Is For
This book is designed for those who are unfamiliar with the art of Python development and want to get to know their way round the language and the many additional libraries that allow you to get a full application up and running in no time.
What You Will Learn
- Fundamentals of Python applications
- Designing applications for multi-threading
- Interacting with electronics and physical devices
- Debugging applications when they go wrong
- Packaging and installing Python modules
- User interface design using Qt
- Building easy to use command-line interfaces
- Connecting applications to the Internet
The Raspberry Pi is one of the smallest and most affordable single board computers that has taken over the world of hobby electronics and programming, and the Python programming language makes this the perfect platform to start coding with.
The book will start with a brief introduction to Raspberry Pi and Python. We will direct you to the official documentation that helps you set up your Raspberry Pi with the necessary equipment such as the monitor, keyboard, mouse, power supply, and so on. It will then dive right into the basics of Python programming. Later, it will focus on other Python tasks, for instance, interfacing with hardware, GUI programming, and more. Once you get well versed with the basic programming, the book will then teach you to develop Python/Raspberry Pi applications.
By the end of this book, you will be able to develop Raspberry Pi applications with Python and will have good understanding of Python programming for Raspberry Pi.
Style and approach
An easy-to-follow introduction to Python scripting and application development through clear conceptual explanations backed up by real-world examples on the Raspberry Pi.
Table of Contents
Chapter 1. Your First Steps with Python on the Pi
Chapter 2. Understanding Control Flow and Data Types
Chapter 3. Working with Data Structures and I/O
Chapter 4. Understanding Object-oriented Programming and Threading
Chapter 5. Packaging Code with setuptools
Chapter 6. Accessing the GPIO Pins
Chapter 7. Using the Camera Module
Chapter 8. Extracting Data from the Internet
Chapter 9. Creating Command-line Interfaces
Chapter 10. Debugging Applications with PDB and Log Files
Chapter 11. Designing Your GUI with Qt