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.)

LEGO Space: Building the Future
LEGO Space: Building the Future

"An incredible fantasy universe." —Space.com

"Nothing could be more awesome." —Wired Science

Come explore an incredible LEGO® universe in LEGO Space: Building the Future. Spaceships, orbital outposts, and new worlds come to life in
...

Taming the Money Sharks: 8 Super-Easy Stock Investment Maxims
Taming the Money Sharks: 8 Super-Easy Stock Investment Maxims

Easy-to-follow guidelines from a pro for simplifying your investments, protecting yourself from the investment sharks and achieving financial freedom Drawing on his years as an investor for leading banks in the U.S. and Asia, Philip Cheng delivers down-to-earth strategies guaranteed to make you "shark-proof" while you optimize...

Small Signal Audio Design
Small Signal Audio Design

Small Signal Audio Design is a unique guide to the design of high-quality circuitry for preamplifiers, mixing consoles, and a host of other signal-processing devices. Learn to use inexpensive and readily available parts to obtain state-of-the-art performance in all the vital parameters of noise, distortion, crosstalk and so on....


NetBeans Enterprise Pack: Building SOA Applications
NetBeans Enterprise Pack: Building SOA Applications
Composite applications aid businesses by stitching together various componented business capabilities. In the current enterprise scenario, empowering business users to react quickly to the rapidly changing business environment is the top most priority. With the advent of composite applications the 'reuse' paradigm has moved from the technical...
Foundation Silverlight 2 Animation
Foundation Silverlight 2 Animation
Silverlight is a phenomenally powerful animation tool, but few people know how to unlock its potential. Foundation Silverlight 2 Animation gives you the keys to all of that power.

It covers the basics of animation—that is, Silverlight's storyboards and animations, which are used to provide interactivity to Silverlight...

MCSE Designing a Microsoft Windows Server 2003 Active Directory and Network Infrastructure Exam Cram 2 (Exam Cram 70-297)
MCSE Designing a Microsoft Windows Server 2003 Active Directory and Network Infrastructure Exam Cram 2 (Exam Cram 70-297)

Leave nothing to chance, Exam Cram 2 provides the information needed to pass Exam 70-297!

  • Known for its concise and focused instruction on what readers need to know to pass the 70-297 exam.

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