Python is a wonderful programming language that is being used more and more in many different industries. It is fast, flexible, and it comes with batteries included.

Most of the books you read about Python will teach you the language basics – but once you've learnt them, you’re on your own in designing your application and discovering best practice.

In this book, we'll see how you can leverage Python to efficiently tackle your problems and build great Python applications.

Ready to buy? Jump straight to the packages.

What you will learn

Best practice

Methods & advice you should follow when building your application. These will help you get the most out of Python, and build a future-proof program. If you're already working on something, you'll be able to apply the techniques discussed right away to enhance your current work.

Problem-solving

Real issues and real solutions to tackle problems such as testing, porting, or scaling Python applications and libraries. Great tips included will help you to avoid making the mistakes that others have made, thereby saving you time. We'll discuss strategies that will help you maintain your software in the long term.

Sample code

The sample code provided with the book is the code used on this Web site to send out sample chapters, and to sell the book using Coinbase. It's a complete Python package which applies some of the tips and methods described in the book. You can learn from it and use it as a reference or boilerplate template.

Language internals

This book will explain and introduce you to some of the Python internals so you will have a better understanding of how to write more efficient code, and gain a greater insight into the inner workings of the language.

Learn from the experts

Read advice, opinions and tips from great hackers in the Open-Source and Python communities. The Hacker’s Guide to Python features many interviews with experts on the various areas explored.

Paul Tagliamonte

Debian developer, Software Engineer at Sunlight Fondation.

Dimitri Fontaine

PostgreSQL Major Contributor, President at 2ndQuadrant France.

Doug Hellmann

Python developer, author of The Python Standard Library by Example, Senior Cloud Engineer at DreamHost.

I have also found that writing the documentation for a library before writing any code at all gives me a way to think through the features and workflows for using it without committing to the implementation details.

Doug Hellmann

Nick Coghlan

Python developer, Software Engineer at RedHat.

Victor Stinner

Python developer, Software Engineer at eNovance.

Robert Collins

Python developer, Distinguished Technologist at HP Cloud Services.

Christophe de Vienne

Python developer, CTO at UNLISH.

Table of contents

  1. Starting your project
  2. Modules and libraries
  3. Documentation
  4. Distribution
  5. Virtual environments
  6. Unit testing
  7. Methods and decorators
  8. Functional programming
  9. The AST
  10. Performances and optimizations
  11. Scaling and architecture
  12. RDBMS and ORM
  13. Python 3 support strategies
  14. Write less, code more
Download full table of contents

Get a free sample chapter




You'll never receive spam. Unsubscribe at any time.

About the author

Hi, I'm Julien Danjou, a Free Software hacker for more than 12 years. I wear multiple hats in the Free and Open Source community, among them: Debian developer, Freedesktop contributor, GNU Emacs committer, the awesome window manager creator, and more recently, Project Technical Leader for OpenStack Ceilometer.

For the last few years, I've been hacking using Python a lot, especially when working on OpenStack, a cloud-computing platform. During that time, I've had the chance to work with many fabulous Python hackers, and I've learned a lot from them and the surrounding community.

I live in Paris, France, and like to travel once in a while. You should follow me on Twitter so we can keep in touch!

What they say about it

I started reading the ebook the other day after ordering it and all I can say is that it is exactly what I would want coming to any new language. The details not normally covered in a standard programming book, the hard found lessons and idioms. Great job Julien! Can't wait to finish it!

Stephen Walker

Congratulations for your book. I've started reading it and it's already being useful to me. It's one of the best python books I've seen so far.

Miguel Expósito, responsible of the statistical computing area at the Statistical Office of Cantabria, Spain

I just started reading The Hacker Guide, (free) chapter on unit testing. I write tests every day, I thought that I knew everything (it turns out I don’t; testscenarios? Yes!). Thanks for the contribution.

Mike Waters, Software Engineering at Dealertrack

The Packages

  • The e-book $29

    • 260 pages book in PDF format.
    • The book in EPUB and MOBI format, to read on your e-book reader.
    • The book in a single page HTML format, for easy reference and searching while developing.
    • Future updates and editions of the book.

    Buy with USD

    Buy with Bitcoin

  • $39 The e-book
    + source code

    • 260 pages book in PDF format.
    • The book in EPUB and MOBI format, to read on your e-book reader.
    • The book in a single page HTML format, for easy reference and searching while developing.
    • Future updates and editions of the book.
    • The code source used to distribute this e-book.

    Buy with USD

    Buy with Bitcoin

  • $199 The e-book
    + source code
    + license

    • 260 pages book in PDF format.
    • The book in EPUB and MOBI format, to read on your e-book reader.
    • The book in a single page HTML format, for easy reference and searching while developing.
    • Future updates and editions of the book.
    • The code source used to distribute this e-book.
    • License to share with up to 50 members of your team.

    Buy with USD

    Buy with Bitcoin

$49 Paperback edition

Feeling old school, want to read the book on paper? You can buy the 278 pages paperback edition on Lulu and get it delivered at your door!



Questions?

Which package should I buy?
That depends on your budget. The book by itself is still 250+ pages packed with code samples and tips that will get you on the right path, right away.
Can I upgrade later on?
Absolutely! Just reply to your confirmation email that you'd like to upgrade and I'll set it up for you.
Can I pay with Paypal?
No problem. Just send the amount (depending on your choice of packages, see above) to julien@danjou.info.
Is there DRM on any material?
No way! No DRM at all. Read it when you want, where you want.
Will I get updates?
Yes! You'll get updates to the guide and associated materials via email notifications.
What if I hate the guide?
Well if you're not happy, I don't want your money. Just reply to your receipt email within 7 days and you'll get a full refund.
Can I have the electronic version if I buy the paperback edition?
No problem. Just send me an email with a proof of purchase and I will send you the electronic version..