Getting started with Python and Raspberry Pi : learn to design and implement reliable Python applications on Raspberry Pi, using a range of external libraries, the Raspberry Pi's GPIO port, and the camera module /
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2015.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Your First Steps with Python on the Pi; Installing and setting up Raspbian; Writing to the SD card; Windows; Linux and Mac; Booting the Pi for the first time; The Python development tools; Python 2 versus Python 3; Running some simple Python scripts; Summary; Chapter 2: Understanding Control Flow and Data Types; Data in Python; Numerical types; Operations on numerical types; String manipulation; String functions; String formatting; String templates.
- Control flow operatorsUsing functions; Summary; Chapter 3: Working with Data Structures and I/O; Data structures; Lists; Creating lists; List operations; Dictionaries; Creating dictionaries; Dictionary operations; Sets; Set operations; Frozen sets; Tuples; Input/output; The os.path module; Reading and writing files; Summary; Chapter 4: Understanding Object-oriented Programming and Threading; Object-oriented programming; Classes in Python; Operation.py; Calculator.py; Using the module; Inheritance; Threading; Locks; Summary; Chapter 5: Packaging Code with setuptools.
- Using packages in your Python codeImporting modules; Installing modules manually; Installing modules using pip; Installing modules using apt; Packaging your own Python modules; Packaging a library; Adding an entry point; Summary; Chapter 6: Accessing the GPIO pins; Digital electronics; The GPIO library; Single LED output; PWM output; Multiple outputs; Basic switch; Switch using interrupt; Universal Asynchronous Receiver/Transmitter (UART); Setting up the serial port; Using pySerial; Additional libraries; Summary; Chapter 7: Using the Camera Module; Setting up the camera module.
- Installing and testing the Python libraryWriting applications for the camera; A time lapse recorder; A point-and-shoot camera; An image effect randomizer; Summary; Chapter 8: Extracting Data from the Internet; Using urllib2 to download data; Parsing JSON APIs; Parsing XML APIs; The DOM method; The SAX method; Parsing a web page using BeautifulSoup; Summary; Chapter 9: Creating Command-line Interfaces; Unit conversion application; Command-line interface; Summary; Chapter 10: Debugging Applications with PDB and Log Files; The Python debugger; Writing log files; Unit testing; Summary.
- Chapter 11: Designing Your GUI with QtSetting up the codebase; Building the UI with Qt Designer; Writing the UI code; Launching the UI; Packaging the code; Summary; Index.