The Hacker's Guide to Python

The Hacker's Guide to Python

Learn everything you need to build a successful Python project


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.

Buy the book

What will you 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 source code

The source 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.

Whatever your plan is – writing a new open source software or the next killer SaaS application – you need to do it now, do it fast and iterate from that.

But starting a Python application is hard. You have absolutely no clue where to begin and no idea where to look for help. Sure, you could look on a search engine for hours and compile your own set of resources. Or you could spend that time writing your actual application.

I know it because I started a few Python applications and libraries already, and like many of the people featured in this book, I started from nothing and then ending up maintaing Python projects at large scale. This is a costly process that one have to learn by experience.

Let's be clear, this book is not going to teach you Python if you never wrote a line with it. There are plenty of resources out there to do that.
And despite all thebenefits of this book I wouldn't want you to get the wrong idea and think that this book is going to write your application for you. Nothing could be further from the truth. And a book cannot cover all the fields an application can apply to. But honestly, that wouldn't be fun, right?

But with some hints, leads and advice, it's going to be much easier for you to develop and enhance your application and reach your goal, following battlefield-tested guidelines and using state of the art tools from the Python ecosystem.

Interested?

What they say about it

  • Gonéri Le Bouder

    “I bought this book some month ago and already recommended it to some friends. The book share the experience of some long-time Python developers and introduce modern programming advices. Useful for anyone who already know Python and is interested by large Python project like OpenStack.”

    Gonéri Le Bouder
    Software Engineer at Red Hat
  • Sylvestre Ledru

    “Great book. Usually, Python books just explain the basic of the language. This book goes way further and explain what are the good guidelines in current and state of the art projects. Of course, this is not for Python beginners but every intermediate or experienced Python developers are going to learn something.”

    Sylvestre Ledru
    Firefox release manager at Mozilla
  • “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
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

Paul Tagliamonte

Debian developer, Software Engineer at Sunlight Fondation.

Explore the internals of Python and its AST and learn about the Hy project.

Dimitri Fontaine

Dimitri Fontaine

PostgreSQL Major Contributor, President at 2ndQuadrant France.

Learn what mistakes you should not make when using a RDBMS and an ORM, and how you can levarage your database to write less and more efficient code.

Doug Hellmann

Doug Hellmann

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

Read about how Doug starts new projects and how you can leverage Python standard library.

Nick Coghlan

Nick Coghlan

Python core developer, Software Engineer at Red Hat.

Know more about the Python packaging process, workflow, tools and future.

Victor Stinner

Victor Stinner

Python core developer, Software Engineer at Red Hat.

Learn how Victor optimizes its Python programs from top to bottom.

Robert Collins

Robert Collins

Python developer, Distinguished Technologist at HP Cloud Services.

Robert write test frameworks for Python so he has some clues about how you should test your application.

Christophe de Vienne

Christophe de Vienne

Python developer, CTO at UNLISH.

As the author of a few Python modules, Christophe explains how you should design your API.

Julien Danjou

Julien Danjou

Debian developer, Python developer, OpenStack core developer, Software Engineer at Red Hat.

Well, I wrote the rest of the book!



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

Eco

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

Most Popular

Standard

39$

  • 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 of the application used to distribute this e-book.

Buy with USD

Buy with Bitcoin

Business

199$

  • 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 of the application used to distribute this e-book.
  • License to share with up to 50 members of your team.

Buy with USD

Buy with Bitcoin

Old school

49$

  • 278 pages book in paperback format delivered to your door in a few days.
  • 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 (only for the e-book version).

  • Buy on Lulu

Julien Danjou

Who's behind this?

“Hi, I'm Julien Danjou! I've been a Free Software hacker for more than 14 years now. 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!”

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