Code + Product

Custom Jinja template filters in Flask

Oct 30th, 2016 in Python

A short snippet for creating a template filter, to present datetime objects in Jinja templates.

JSON field type in SQLAlchemy (Flask / Python)

Sep 8th, 2016 in Python

Want to store JSON-serialized data in your database? But sick of calling `json.loads()` and `json.dumps()` when dealing with this data in your Flask app? Read on!

Resolving alembic merge branch conflicts

May 23rd, 2016 in Python

How to fix alembic's "Multiple head revisions are present for given argument 'head'" error.

Using Python's Watchdog to monitor changes to a directory

Feb 22nd, 2016 in PythonServers and Scaling

A small Python script to take action whenever a new file is uploaded to a directory or its contents change.

Data Pipelines - Airflow vs Pinball vs Luigi

Jan 12th, 2016 in PythonServers and Scaling

Review of 3 common Python-based data pipeline / workflow frameworks from AirBnb, Pinterest, and Spotify.

Line-by-line code profiling in Python

Oct 1st, 2015 in Python

How to find slow sections in your Python code.