MySQL for Humans
Project description
dbConnect: MySQL for Humans
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
Another Docs: https://pythonhosted.org/dbConnect/
Check generated documentation using:
$ pydoc3 dbConnect
or
$ pydoc3 -p 1994
and open localhost:1994/ in browser
Enjoy
Project details
Release history Release notifications | RSS feed
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.6.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for dbConnect-1.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5120ba21773b7372a8b8c3242db00f46aecd9ebdccf2ecf56f481ac430c7f8d1 |
|
MD5 | 2809831dd3c37ab6b6321a2bb5fd506e |
|
BLAKE2b-256 | d136eaffb6ac0303ae75df7ee809bcacc9c574f2836cc5c71e0e19d8ded00738 |