Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Python and Raspberry Pi (Redirected from Learning Python By Developing Raspberry Pi Applications)

You're reading from   Getting Started with Python and Raspberry Pi (Redirected from Learning Python By Developing Raspberry Pi Applications) 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

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781783551590
Length 200 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Dan Nixon Dan Nixon
Author Profile Icon Dan Nixon
Dan Nixon
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Your First Steps with Python on the Pi FREE CHAPTER 2. Understanding Control Flow and Data Types 3. Working with Data Structures and I/O 4. Understanding Object-oriented Programming and Threading 5. Packaging Code with setuptools 6. Accessing the GPIO Pins 7. Using the Camera Module 8. Extracting Data from the Internet 9. Creating Command-line Interfaces 10. Debugging Applications with PDB and Log Files 11. Designing Your GUI with Qt Index

What this book covers

Chapter 1, Your First Steps with Python on the Pi, introduces the Python development tools as you install and set them up on the Raspberry Pi after installing the Raspbian operating system.

Chapter 2, Understanding Control Flow and Data Types, introduces you to the control flow and conditional execution operations. Also, the basic data types and the operations that can be performed on them will be covered in this chapter.

Chapter 3, Working with Data Structures and I/O, gives you an overview of the standard Python data structures (for example, list, dict, and tuple) and how they can be used within an application. Also, this chapter will provide an introduction to reading and writing files on the Raspberry Pi's filesystem, including reading from the sysfs to get data such as the current temperature of the processor.

Chapter 4, Understanding Object-oriented Programming and Threading, introduces the concept of object-oriented programming and compares it to the functional programming that has been done up to this point in this book.

Chapter 5, Packaging Code with setuptools, introduces you to the setup tools in the Python package, which are used to package Python applications and libraries for easier installation. This will also include an introduction to the pip utility and PyPi package repository.

Chapter 6, Accessing the GPIO Pins, gives you an overview of the Python library for accessing the GPIO pins on the Raspberry Pi and a brief introduction to some basic electronics needed for the tutorials in the chapter.

Chapter 7, Using the Camera Module, covers using the picamera Python library to interact with the camera module, the options that can be configured using the library, and writing a simple application to record a section of video in several different modes.

Chapter 8, Extracting Data from the Internet, covers the use of several libraries (including requests and urllib2) to connect to webservers and request data, and will include obtaining weather forecasts from an online API. Also, you will be introduced to several third-party libraries that access data from specific sources.

Chapter 9, Creating Command-line Interfaces, covers interaction with applications via the command line using the argparse Python module.

Chapter 10, Debugging Applications with PDB and Log Files, introduces you to the PDB (Python debugger) tool, discusses how it can be used to diagnose and fix issues in Python programs, and covers how the logging Python module can be used to capture information from an application to be used later for debugging. This includes a tutorial in which code with several issues placed into it will be debugged and corrected.

Chapter 11, Designing Your GUI with Qt, provides an introduction to GUI design with Qt using Qt Designer and the Python Qt package.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image