Skip to content
Danny Armstrong edited this page Dec 20, 2017 · 6 revisions

Up and Running on Ubuntu 16.04:

sudo apt-get install python-pip libffi-dev
sudo pip install setuptools
git clone https://github.com/ibrewster/p4d.git
cd p4d
sudo python ./setup.py install
python
>>> import p4d
>>> db = p4d.connect(user="username", password="p@assw0rd", host="10.70.0.2")
>>> cursor = db.cursor()
>>> cursor.execute("SELECT * FROM Appt")
>>> data = cursor.fetchall()
>>> print(data)
Clone this wiki locally