Python

The Right Way

Hi

This is a guide intended to introduce new developers to Python and help developers structure it's knowledge and use this site as reference point.

Despite the name, this guide doesn't necessarily mean "the only way" to do Python..

We just gather all the articles, tips, and tricks from top developers and put it here.

This website is inspired and hugly based on the work of https://jstherightway.org by Wiliam Oliviera

Choose your path

GETTING STARTED

ABOUT

Python is an interpreted high-level programming language for general-purpose programming. Created by Guido van Rossum and first released in 1991, Python has a design philosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that enable clear programming on both small and large scales.Source: wikipedia

CURRENT VERSION

Python 3

3.9 will receive bugfix updates approximately every 2 months for approximately 18 months.
Some time after the release of 3.10.0 final, the ninth and final 3.9 bugfix update will be released.
After that, it is expected that security updates (source only) will be released until 5 years after the release of 3.9 final,
so until approximately October 2025.
See: PEP537
Python 2.7
Although present by default on multiple flavours of Linux, Python27 reach it's end-of-life.
Use python3 See: PEP-373

Python Code Style

Style Guide

PEP 8 -- Style Guide for Python Code

Linters

Zen of Python

  • Beautiful is better than ugly.
  • Explicit is better than implicit.
  • Simple is better than complex.
  • Complex is better than complicated.
  • Flat is better than nested.
  • Sparse is better than dense.
  • Readability counts.
  • Special cases aren't special enough to break the rules.
  • Although practicality beats purity.
  • Errors should never pass silently.
  • Unless explicitly silenced.
  • In the face of ambiguity, refuse the temptation to guess.
  • There should be one-- and preferably only one --obvious way to do it.
  • Although that way may not be obvious at first unless you're Dutch.
  • Now is better than never.
  • Although never is often better than *right* now.
  • If the implementation is hard to explain, it's a bad idea.
  • If the implementation is easy to explain, it may be a good idea.
  • Namespaces are one honking great idea -- let's do more of those!

Source: PEP20

Learning

Online

Join the Millions Learning to Code with Codecademy .

Lorem.

Lorem .

Lorem .

Reading

A Minimalist Python Web Framework. Maintained by Dolor sit amet.

Videos

TESTING TOOLS

Various libraries and frameworks to do tests in Python. Only still maintained and actual

Frameworks

bottle.py is a fast and simple micro-framework for python web-applications.

A Minimalist Python Web Framework.

Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions. And before you ask: It's BSD licensed! Maintained by Armin Ronacher.

Klein is a micro-framework for developing production-ready web services with Python.

Morepath is a Python web framework. An application consists of models. Each type of model is published on a URL path. Content is exposed to the web using views.

The Start Small, Finish Big
Stay Finished Framework

web.py is a web framework for python that is as simple as it is powerful.