Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Python Real-World Projects

You're reading from  Python Real-World Projects

Product type Book
Published in Sep 2023
Publisher Packt
ISBN-13 9781803246765
Pages 478 pages
Edition 1st Edition
Languages
Author (1):
Steven F. Lott Steven F. Lott
Profile icon Steven F. Lott

Table of Contents (20) Chapters

Preface Chapter 1: Project Zero: A Template for Other Projects Chapter 2: Overview of the Projects Chapter 3: Project 1.1: Data Acquisition Base Application Chapter 4: Data Acquisition Features: Web APIs and Scraping Chapter 5: Data Acquisition Features: SQL Database Chapter 6: Project 2.1: Data Inspection Notebook Chapter 7: Data Inspection Features Chapter 8: Project 2.5: Schema and Metadata Chapter 9: Project 3.1: Data Cleaning Base Application Chapter 10: Data Cleaning Features Chapter 11: Project 3.7: Interim Data Persistence Chapter 12: Project 3.8: Integrated Data Acquisition Web Service Chapter 13: Project 4.1: Visual Analysis Techniques Chapter 14: Project 4.2: Creating Reports Chapter 15: Project 5.1: Modeling Base Application Chapter 16: Project 5.2: Simple Multivariate Statistics Chapter 17: Next Steps Other Books You Might Enjoy Index

3.5 Extras

Here are some ideas for you to add to this project.

3.5.1 Logging enhancements

We skimmed over logging, suggesting only that it’s important and that the initialization for logging should be kept separate from the processing within the main() function.

The logging module has a great deal of sophistication, however, and it can help to explore this. We’ll start with logging ”levels”.

Many of our logging messages will be created with the INFO level of logging. For example:

logger.info("%d rows processed", input_count)

This application has a number of possible error situations that are best reflected with error-level logging.

Additionally, there is a tree of named loggers. The root logger, named "", has settings that apply to all the lower-level loggers. This tree tends to parallel the way object inheritance is often used to create classes and subclasses. This can make it advantageous to create loggers for each class...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}