Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Table of Contents
Learning Python Application Development
Learning Python Application Development
Credits
Disclaimers
About the Author
About the Reviewer
www.PacktPub.com
Preface
Very important note for e-book readers
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
1. Developing Simple Applications
Installation prerequisites
The theme of the book
Simple script – Attack of the Orcs v0.0.1
Using functions – Attack of the Orcs v0.0.5
Using OOP – Attack of the Orcs v1.0.0
Abstract base classes in Python
Summary
2. Dealing with Exceptions
Exceptions
Back to the game – Attack of the Orcs v1.1.0
Defining custom exceptions
Exercise
Summary
3. Modularize, Package, Deploy!
Modularizing the code
Creating a package
Releasing the package on PyPI
Using a private PyPI repository
Making an incremental release
Version controlling the code
Using GUI clients for Git
Exercise
Summary
4. Documentation and Best Practices
Python coding standards
Code analysis – How well are we doing?
Exercise
Summary
5. Unit Testing and Refactoring
Why test?
Unit testing
Writing unit tests for the application
Unit tests using mock library
Is your code covered?
Other unit testing tools
Refactoring preamble
Refactoring
Unit testing revisited
Exercise
Summary
6. Design Patterns
Python language and design patterns
Structure of the rest of the chapter
Fast forward – Attack of the Orcs v6.0.0
Strategy pattern
Simple factory
Abstract factory pattern
Adapter pattern
Summary
7. Performance – Identifying Bottlenecks
Scenario – The Gold Hunt
The problem
Identifying the bottlenecks
Memory profiling
Algorithm efficiency and complexity
Big O notation
Summary
8. Improving Performance – Part One
This is how the chapter is organized
Revisiting the Gold Hunt scenario
Optimizing Gold Hunt – Part one
Performance improvement goodies
Exercises
Summary
9. Improving Performance – Part Two, NumPy and Parallelization
This is how the chapter is organized
Introduction to NumPy
Optimizing Gold Hunt – Part two
Parallelization with the multiprocessing module
Parallelizing the Gold Hunt program
Further reading
Summary
10. Simple GUI Applications
GUI programming design considerations
Event-driven programming
GUI programming with Tkinter
Project-1 – Attack of the Orcs V10.0.0
MVC architecture
Project 2 – Attack of the Orcs v10.1.0
Testing GUI applications
Exercises
Further reading
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →