Skip to main content

MySQL for Humans

Project description

dbConnect: MySQL for Humans

Documentation Status https://travis-ci.org/mastizada/dbConnect.svg?branch=master

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbConnect-1.5.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distributions

dbConnect-1.5.0-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

dbConnect-1.5.0-py2.py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page