Installation

This part of the documentation covers the installation of dbConnect.

Requirements

dbConnect uses mysql.connector for mysql, install it using:

$ apt-get install python3-mysql.connector
$ apt-get install python-mysql.connector

For PostgreSQL install psycopg2 module:

$ pip install psycopg2

Distribute & Pip

Installing dbConnect is simple with pip, just run this in your terminal:

$ pip install dbConnect

or, with easy_install:

$ easy_install dbConnect

But, you really shouldn't do that.

Get the Code

dbConnect is actively developed on GitHub, where the code is always available.

You can either clone the public repository:

$ git clone git@github.com:mastizada/dbConnect.git

Once you have a copy of the source, you can embed it in your Python package, or install it into your site-packages easily:

$ python setup.py install