Introducing django-postgres-stats

While working on a dashboard project that used Django, I found myself reaching for functions in PostgreSQL to generate time series data and calculate percentiles. In Django 1.8, Func() expressions were added to let users access database-specific functions more easily. Django subclasses Func to give you common database functions, so I did the same to expose some PostgreSQL date/time functions and a percentile function from the PostgreSQL aggregate functions.

Read More