dbConnect uses mysql.connector module, install it using:
$ apt-get install python3-mysql.connector
$ apt-get install python-mysql.connector
Or using offical site: https://dev.mysql.com/downloads/connector/python/
$ pip install dbConnect
$ git clone git@github.com:mastizada/dbConnect.git
$ cd dbConnect
$ sudo pip install -r requirements.txt --allow-external mysql-connector-python
$ sudo python setup.py install
Importing and making a connection:
>>> from dbConnect import DBConnect
>>> database = DBConnect(credentials.json)
>>> database.fetch('tableName', limit=5, filters={'company': 'pyninjas'})
Another Docs: https://pythonhosted.org/dbConnect/
Check generated documentation using:
$ pydoc3 dbConnect
or
$ pydoc3 -p 1994
and open localhost:1994/ in browser