Skip to content

devashish2203/dbConnect

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbConnect: MySQL for Humans

Documentation Status

Installation

requirements:

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/

using pip:

$ pip install dbConnect

from source code:

$ 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

Usage

Importing and making a connection:

>>> from dbConnect import DBConnect
>>> database = DBConnect(credentials.json)
>>> database.fetch('tableName', limit=5, filters={'company': 'pyninjas'})

Documentation

Enjoy

Packages

No packages published

Languages

  • Python 100.0%