Installation

This part of the documentation covers the installation of dbConnect.

Requirements

dbConnect uses mysql.connector and mysqlclient for mysql, install one of them using:

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

$ pip install mysqlclient

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 Gitlab, where the code is always available.

You can either clone the public repository:

$ git clone git@gitlab.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 using:

$ python setup.py install