PostgreSQL allows you to write stored functions and procedures in many languages, including Python. New facilities will be available in PostgreSQL 11, so this is a good time for a wide ranging discussion around this.
YOU MAY ALSO LIKE:
Python Inside Your Database
Simon has architected various large and complex applications using database tech for companies across UK and Europe. He is now a Major Contributor to the PostgreSQL project and a strong proponent of non-relational approaches.