Full Stack Python

DC Python June 2014



Matt Makai | @mattmakai | makaimc on GitHub | Twilio Developer Evangelist

Let's build it...

Web framework

  • URL routing
  • Database interaction
  • Authentication
  • Output templates
  • Code organization

Django

Batteries
included!

Flask

Extensible!

Calm down.

WSGI

Web
Server
Gateway
Interface

PEP 333 & 3333

Full Stack Python

WSGI servers

  • Green Unicorn
  • mod_wsgi
  • uWSGI
  • CherryPy

Servers & OS

Server options

  • Bare metal
  • Virtualized
  • IaaS
  • PaaS

Apache

Nginx

Missing?

Our app

Source control

Dependencies

Application dependencies

virtualenv

pip install -r requirements.txt

PyPI

Data

Relational

PostgreSQL

Configuration management

Automation

  • Chef
  • Puppet
  • SaltStack
  • Ansible

Web analytics

"Uhh.. anyone out there?"

Logging & Monitoring

ERROR

Task queues

Task queues

  • Celery
  • Taskmaster
  • RQ

We're live!

Basics

  • Web frameworks
  • WSGI
  • Servers & OS
  • Web servers
  • App dependencies
  • Databases

So much more...

  • Configuration management
  • Web analytics
  • Logging
  • Monitoring
  • Task queues

On Full Stack Python...

  • CSS & JavaScript
  • APIs
  • Web app security
  • NoSQL data stores
  • IaaS, PaaS
  • Static content

Resources

Resources

Matt Makai

Picture references