$29.99

From PHP to Python: A Straight-to-the-Point Guide

4 ratings
Buy this

From PHP to Python: A Straight-to-the-Point Guide

$29.99
4 ratings

The shortcut you need to quickly master Python.

You've been there already: you want to start a new language and you go back to the basics again and again. Honestly, it's frustrating and demotivating. I've been there too. That's why I wrote this book. I want you to become a serious Python developer in the minimum of time and with almost no friction. My take is: As a PHP developer, you already know most of Python.


The Approach of the Book

  • No bullshit. You know what a variable, a for loop, or an object is. We will only focus on what's different. The book is written in a concise and straight-to-the-point style.
  • The book shows PHP and Python code side-by-side to help you quickly understand what's going on (PHP code and Python code are highlighted differently to keep things clear).
  • It is built to be read in order, and to give you all you need to master Python in a web-oriented approach.

Who Is This Book For?

This book is suited for PHP developers who want to learn and master Python. This book is only for you if you are a confirmed PHP developer (if not, there are already many other amazing resources out there for you!).

The content is web-oriented and does not talk about data science, but once you master the foundation of Python you could tackle this other topic if you'd like.

We focus on Python itself: even though we talk about some famous web frameworks, we only cover the language itself. It's a great start to then learn Django or Flask through other dedicated courses.


What Readers Have to Say

The book is amazing. I wanted to get a feel for Python and reading your book has made the entire process super comfortable. It is so well written, but the real gold is how you've made the right assumptions about what an experienced PHP dev will already know. The balance is very well calculated.

Ben Roberts


It is brilliant.
I think you've done a stellar job.
No criticisms.

Christian Coyle


FAQ

Who are you?

I'm Yann Rabiller, a French professional backend developer. I have been working in this industry for 10 years. I mostly work with Symfony but also with Laravel and Django. You can find my blog here.

Can I read a sample chapter before buying the book?

Sure. You can even have two of them.

What's included?

You get a 405 pages PDF, watermarked with your email address and an ePub file. The book contains 49 chapters, will be regularly updated for every PHP and Python version, and all the next updates of the book are free.

NB: If you are using an e-reader and experience some indentation issues with code blocks, use "left" as your text alignment instead of "justify".

Every update will come with a changelog to know exactly what you should look for.

What's wrong with PHP?

I still work a lot with PHP and enjoy it. I am not saying Python is a better language. They both have their pros and cons. The goal of the book is to make you a proficient Python developer and to widen your professional opportunities: not to criticize PHP.

Is Purchasing Power Parity enabled?

Yes. If you live in a country with a different cost of living, Gumroad should reflect this on the price. More information about this feature here.

What if I am not satisfied?

Perfection is out of this world, and this book is no exception. If you think this book has not delivered what you expected from it, just send me an email explaining why you are not satisfied so that I can improve it, and I will fully refund you.

Which versions of PHP and Python are covered in the current book version?

The current version of the book (1.3) covers up to PHP 8.2 and Python 3.11.

I have some feedback!

I'm absolutely interested in your feedback. A specific chapter was not clear? A typo somewhere? Something missing according to you? Please email me at fromphptopython@einenlum.com.Thanks!


Table of Contents

  • Introduction
  • Before we start
  • Language Syntax
  • Data Types
  • Positional and keyword arguments
  • Unpacking
  • Comprehensions
  • Local and global variables
  • Classes and Objects
  • Objects, objects… objects everywhere!
  • == and is explained
  • Imports, Modules and Packages
  • Exceptions
  • Working with strings
  • Datetimes
  • Match case
  • Working with regexes
  • Magic methods
  • Lamdbas
  • Documenting and Debugging Your Code
  • Decorators
  • Context Manager
  • Generators
  • Managing dependencies with pip
  • Let's add some poetry
  • Monkey patching
  • Testing with unittest
  • Testing with Pytest
  • Typehints
  • Enums
  • Interacting with the filesystem
  • Working with environment variables
  • Logging
  • Interacting with CLI
  • Walrus operator
  • DTOs in Python
  • Mixins
  • Interfaces
  • Serializing
  • Standard lib and interesting modules
  • Publishing a package
  • Interacting with databases
  • Async
  • PEP ?
  • Web frameworks
  • WSGI and Servers
  • Tooling and Linting
  • Python Culture
  • Lexicon
Buy this

60-day money back guarantee

Perfection is out of this world, and this book is no exception. If you think this book has not delivered what you expected from it, just send me an email explaining why you are not satisfied so that I can improve it, and I will fully refund you.

Last updated Jun 1, 2023

Pages
405
Copy product URL

Ratings

5
(4 ratings)
5 stars
100%
4 stars
0%
3 stars
0%
2 stars
0%
1 star
0%