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.5.0.tar.gz
(5.0 kB
view hashes)
Built Distributions
dbConnect-1.5.0-py3-none-any.whl
(10.1 kB
view hashes)
Close
Hashes for dbConnect-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7e218c7e8c8cdcac290b0bfec5d12bf77eb448b17d756f70395cd20b0715d59 |
|
MD5 | dd2e7dcf5c6ba2f3e5287b6e6d5f53f2 |
|
BLAKE2b-256 | ce23f8e1035e0cec6a963c349c987e3c0b2dfe1bcf02ec19a6e7ea7fabb11eec |
Close
Hashes for dbConnect-1.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 620d65f86288687db60b7b1655e2db50a550e5feda3ae7cbf4fcb17656b36d4d |
|
MD5 | 06cf1ba694429e0d733b7f09fa04e61b |
|
BLAKE2b-256 | ae135aef4f82dddf03360b07e38e0da322c852e5ed5bdb96d5fc4dff890d25b8 |