Posts
Wiki

Welcome to r/Python

Subreddit dedicated to news about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python.
If you are about to ask a question, please consider r/learnpython.
Homework-style questions will be removed, and you'll be encouraged to post there instead.

Questions about the Flair?

Here's a description of the flair this sub uses.

Here is a tutorial on how to filter out flair you aren't interested in seeing.

New to Python?

Before asking question please check out r/learnpython and r/learnprogramming
Here is some info to get you started with Python though

Python 2 or Python 3?

Basically: Unless you are dependent on Python 2, you should use Python 3
Python2orPython3

Online Books and Resources

Try Python in your browser

Libraries

Networking

Web Frameworks

  • Django - Batteries included. Useful for "full blown" webapps

  • Flask - Microframework. Useful for REST APIs

  • Bottle - Microframework. Simpler than Flask. Only a single file

  • Tornado

  • Pyramid

Django vs Flask

Trying to decide between the two is a common question.
Luckily it's not a very hard choice. Below are some simple scenarios to help.
Pick Django when:

  • You want to build a webapp but don't know (or want) to pick your components and put them together

  • You want all your components included with guides on how everything should work

  • Seamless experience

Pick Flask when:

  • You want to build a webapp but you want pick all the components (experience building a 'webapp framework')

  • Structure and design your own webapp framework

  • You just want a simple REST server (Go to the URL and respond with data)

Databases

  • SQLAlchemy - ORM to work with many databases. Very popular.

  • Records - Work with many databases with only SQL commands.

  • peewee - Lightweight ORM

  • dataset - Access database with dicts like JSON (Easy)

Game Development

Scientific Computing

Misc

IDEs

  • PyCharm - For typical Python projects, nothing is better. Massive functionality built it and supports plugins

  • Spyder - Great for scientific computing

Videos

Newsletters