Production

Database helpers for sqlalchemy

Backend-agnostic database creation (CREATE IF NOT EXISTS):

1
2
if not database_exists('postgres://postgres@localhost/name'):
    create_database('postgres://postgres@localhost/name')

Possible with SQLAlchemy-Utils library. See docs

Infrastructure with Python

http://dustinrcollins.com/infrastructure-with-python – list of tools for python development

Retry libraries for python

tenacity - a fork of retrying. Seems alive and powerful.

retrying - abandoned but popular project.

backoff

Language

Cheat Sheet: Writing Python 2-3 compatible code http://python-future.org/compatible_idioms.html

Google Python Guidelines https://google.github.io/styleguide/pyguide.html

Inheritance https://rhettinger.wordpress.com/2011/05/26/super-considered-super/

Other

How to Install Python 3.6 on Ubuntu 16.04

apt-get install zlib1g-dev
wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz
tar -xvf Python-3.6.3.tgz
cd Python-3.6.3
./configure
make 
make install

Now it should be fine:

# python3.6 -V
Python 3.6.3

Dismissing Python Garbage Collection at Instagram