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

The New World of Wireless: How to Compete in the 4G Revolution
The New World of Wireless: How to Compete in the 4G Revolution

“The New World of Wireless is an impressive, thoughtful journey that helps business leaders see over the horizon to our unwired future, where we belong.”

John Chen, Chairman, CEO, and President, Sybase, Inc.

 

...
Ludic Proof: Greek Mathematics and the Alexandrian Aesthetic
Ludic Proof: Greek Mathematics and the Alexandrian Aesthetic
This book represents a new departure in science studies: an analysis of a scientific style of writing, situating it within the context of the contemporary style of literature. Its philosophical significance is that it provides a novel way of making sense of the notion of a scientific style. For the first time, the Hellenistic mathematical corpus -...
Couchbase Essentials
Couchbase Essentials

Harness the power of Couchbase to build flexible and scalable applications

About This Book

  • Learn how to install and configure Couchbase Server.
  • Explore Couchbase Servers' extensive key/value API with examples from several popular programming languages.
  • Apply Map/Reduce...

Sketching the Moon: An Astronomical Artist's Guide (The Patrick Moore Practical Astronomy Series)
Sketching the Moon: An Astronomical Artist's Guide (The Patrick Moore Practical Astronomy Series)

For anyone artistically inclined, observing the Moon and attempting to sketch or paint it can easily become a passion. The Moon presents a broad array of tone, texture, and form. Capturing this in a painting or sketch at the eyepiece of a telescope or even with binoculars develops observational skills, leaves a record of the observation, and...

Identifying and Managing Project Risk: Essential Tools for Failure-Proofing Your Project
Identifying and Managing Project Risk: Essential Tools for Failure-Proofing Your Project

There’s a good reason project risk management is one of the most vital of the nine content areas of the Project Management Body of Knowledge®. Important projects tend to be time constrained, pose huge technical challenges, and suffer from a lack of adequate resources. It’s no wonder that project managers are increasingly focusing...

The Elements of MATLAB Style
The Elements of MATLAB Style

In 2002, I wrote a brief set of observations and thoughts on MATLAB style for my coworkers. Other programmers found it useful, so I posted the “MATLAB Programming Style Guidelines” document on my website datatool.com. It has since been downloaded more than 40,000 times.

This book responds to that encouraging...

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