Installation

Python

Just use PIP:

pip install python-tempo

PostgreSQL

  1. Install PostgreSQL flavor of the library in the Python environment, that your PostgreSQL instance uses, so PL/Python stored procedures would be able to import tempo:

    pip install python-tempo[postgresql]
    
  2. Ensure, that PL/Python language is available for you in your PostgreSQL instance (see details here).

  3. After installing Python egg, two commands will become available to you: tempo-postgresql-install and tempo-postgresql-uninstall. They are output to stdout installation and uninstallation SQL scripts respectively.

Django

Perform steps for PostgreSQL.

Django-REST-Framework

Perform steps for Python or PostgreSQL. Perform steps for PostgreSQL.