Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dvarrazzo/psycopg-pgdayuk-2013

Psycopg slideshow with async push demo
https://github.com/dvarrazzo/psycopg-pgdayuk-2013

Last synced: 22 days ago
JSON representation

Psycopg slideshow with async push demo

Awesome Lists containing this project

README

        

Psycopg slideshow at PGDay 2013
===============================

An experiment using Landslide__ to produce an `HTML5 slideshow`__.

.. __: https://github.com/adamzap/landslide
.. __: https://code.google.com/p/html5slides/

Usage
-----

In order to render the slideshow, just install Landslide and::

cd slides
make html
make pdf # This requires Prince, see Landslide docs

The slideshow has an interactive part with more complex requirements: you can
build the entire environment with::

virtualenv env
source env/bin/activate
pip install -r requirements.txt

Run the ``pushdemo.py`` script with a connection string as first argument
(hint: quote it)::

python slides/pushdemo.py "user=postgres dbname=test"

Display the html slideshow. At the demo page, connect to the same database
using psql and execute something like::

NOTIFY data, 'blue';
NOTIFY data, 'red';