============
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
   <http://www.postgresql.org/docs/9.4/static/plpython.html>`_).

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. Feed them to ``psql`, to perform needed operation. On Unix it
   can look like this:
   ``tempo-postgresql-install | sudo -u postgres psql -d my_databse``.

Django
======
Perform steps for PostgreSQL.

Django-REST-Framework
=====================
Perform steps for Python or PostgreSQL.

============
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
   <http://www.postgresql.org/docs/9.4/static/plpython.html>`_).

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. Feed them to ``psql``, to perform needed operation. On Unix it
   can look like this:
   ``tempo-postgresql-install | sudo -u postgres psql -d my_databse``.

Django
======
Perform steps for PostgreSQL.

Django-REST-Framework
=====================
Perform steps for Python or PostgreSQL.

Fix RST syntax error in Installation docs - double-backtick closed by a single
Fix RST syntax error in Installation docs - double-backtick closed by a single
