Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
Mastering Object-oriented Python

Buy

For those who know the basics of object-oriented Python this book is a must-have. With 750 code samples and a relaxed tutorial approach, it’s the seamless route to more sophisticated programming.

Overview

  • Create applications with flexible logging, powerful configuration and command-line options, automated unit tests, and good documentation.
  • Use the Python special methods to integrate seamlessly with built-in features and the standard library
  • Design classes to support object persistence in JSON, YAML, Pickle, CSV, XML, Shelve, and SQL

In Detail

This practical example-oriented guide will teach you advanced concepts of object-oriented programming in Python. This book will present detailed examples of almost all of the special method names that support creating classes that integrate seamlessly with Python's built-in features. It will show you how to use JSON, YAML, Pickle, CSV, XML, Shelve, and SQL to create persistent objects and transmit objects between processes. The book also covers logging, warnings, unit testing, configuration files, and how to work with the command line.

This book is broken into three major parts: Pythonic Classes via Special Methods; Persistence and Serialization; Testing, Debugging, Deploying, and Maintaining. The special methods are broken down into several focus areas: initialization, basics, attribute access, callables, contexts, containers, collections, numbers, and more advanced techniques such as decorators and mixin classes.

What you will learn from this book

  • Understand the different design patterns for the __init__() method
  • Discover the essential features of Python 3's abstract base classes and how you can use them for your own applications
  • Design callable objects and context managers that leverage the with statement
  • Perform object serialization in formats such as JSON, YAML, Pickle, CSV, and XML
  • Employ the Shelve module as a sophisticated local database
  • Map Python objects to a SQL database using the built-in SQLite module
  • Transmit Python objects via RESTful web services
  • Devise strategies for automated unit testing, including how to use the doctest and the unittest.mock module
  • Parse command-line arguments and integrate this with configuration files and environment variables

Approach

This book follows a standard tutorial approach with approximately 750 code samples spread through the 19 chapters. This amounts to over 5,900 lines of code that illustrate each concept.

(HTML tags aren't allowed.)

Project Risk Management Guidelines : Managing Risk in Large Projects and Complex Procurements
Project Risk Management Guidelines : Managing Risk in Large Projects and Complex Procurements
This book describes the philosophy, principles, practices and techniques for managing risk
in projects and procurements, with a particular focus on complex or large-scale project
activities. The approaches contained here may also be applied to simple purchases of goods
and services, although with considerable simplification.
...
Practical Packet Analysis: Using Wireshark to Solve Real-World Network Problems
Practical Packet Analysis: Using Wireshark to Solve Real-World Network Problems
It's easy enough to install Wireshark and begin capturing packets off the wire--or from the air. But how do you interpret those packets once you've captured them? And how can those packets help you to better understand what's going on under the hood of your network? Practical Packet Analysis shows how to use Wireshark to capture and then...
Web Application Design and Implementation: Apache 2, PHP5, MySQL, JavaScript, and Linux/UNIX
Web Application Design and Implementation: Apache 2, PHP5, MySQL, JavaScript, and Linux/UNIX
Web Application Design and Implementation uses a hands-on approach of the major technologies and programming languages to teach readers web development. Providing an understanding of all major aspects of web programming in order to achieve the construction of a database-driven website, the book features state-of-the-art programming...

Foundations of XML Processing: The Tree-Automata Approach
Foundations of XML Processing: The Tree-Automata Approach

Computer science, like other mathematical fields, cannot live without a tight relationship with reality. However, such a relationship is, frankly, not very common. This is probably why people so enthusiastically welcome a true meeting of theory and practice. In that sense, the coming together of XML and tree automata theory was a...

From Active Data Management to Event-Based Systems and More: Papers in Honor of Alejandro Buchmann on the Occasion of His 60th Birthday
From Active Data Management to Event-Based Systems and More: Papers in Honor of Alejandro Buchmann on the Occasion of His 60th Birthday

Data management has evolved over the years from being strictly associated with database systems, through active databases, to being a topic that has grown beyond the scope of a single field encompassing multiple aspects: distributed systems, event-driven systems, and peer-to-peer and streaming systems. The present collection of works,...

Commitments of Traders : Strategies for Tracking the Market and Trading Profitably
Commitments of Traders : Strategies for Tracking the Market and Trading Profitably

"Floyd has answered for many in this book a way to both understand and use the Commitment of Traders reports. In my thirty-five years as a registered broker and author of my own book, I find that at times someone takes a complex subject and makes it easier to understand. Floyd has done this with his book. Not only does he make...

©2019 LearnIT (support@pdfchm.net) - Privacy Policy