Skip to Content
Hands-On Software Engineering with Python
book

Hands-On Software Engineering with Python

by Nimesh Verma, Brian Allbee
October 2018
Beginner to intermediate
736 pages
17h 39m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Python

hms_artisan.Product

Artisans have a similar data persistence need for Product object data:

  • As an Artisan, I need to be able to create, manage, and store Product data, so that I can keep product information current in the central office system

The hms_artisan..Product class, like the Artisan class of the package, leverages its corresponding hms_core base class (BaseProduct) and the JSONFileDataObject ABC to minimize the amount of actual code needed in the concrete implementation.

In fact, the only real differences are in the __init__ method (with different arguments, and calling a different parent initialization method set):

 def __init__(self, # - Required arguments from BaseProduct name:(str,), summary:(str,), available:(bool,), store_available:(bool,), ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architecture with Python

Software Architecture with Python

Anand Balachandran Pillai
Data Structures and Algorithms in Python

Data Structures and Algorithms in Python

Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser

Publisher Resources

ISBN: 9781788622011Supplemental Content