https://github.com/ankitesh97/sqlwrapper
A sql wrapper for those who have a hard time executing queries, it provides an interface to simulate common queries on a database.
https://github.com/ankitesh97/sqlwrapper
database mysql postgresql psycopg2 python sql-wrapper sqlite
Last synced: 12 days ago
JSON representation
A sql wrapper for those who have a hard time executing queries, it provides an interface to simulate common queries on a database.
- Host: GitHub
- URL: https://github.com/ankitesh97/sqlwrapper
- Owner: ankitesh97
- License: mit
- Created: 2016-12-10T17:25:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T17:38:52.000Z (almost 9 years ago)
- Last Synced: 2025-11-27T22:48:12.095Z (about 2 months ago)
- Topics: database, mysql, postgresql, psycopg2, python, sql-wrapper, sqlite
- Language: Python
- Size: 79.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# sqlwrapper
This module is a wrapper aroung SQL query language, i.e an interface between the database and python.
version: v0.1
## Installation
```python
pip install sqlwrapper
```
## What is it?
Can be used to develop a database based application quickly in python. It is a method based package, i.e you don't require the knowledge of sql language. Basically one can create a CRUD application quickly.
Currently provides an interface for Mysql, sqlite, postgresql databases. Tested for python 2.7.x
#### Requirements
psycopg2=2.6.1 (and above)(for postgresql)(pip install psycopg2)
mysqlclient=1.3.7 (and above)(for mysql Basically import MYSQLdb)
(pip install MySQL-python)
### Advantages
Quick development of CRUD based database application
No knowledge of SQL required
Very easy to understang and use
### Basic import
### object for sqlite
```python
>> from sqlwrapper import sqlitewrapper
>> db = sqlitewrapper()
```
### object for Mysql
```python
>> from sqlwrapper import mysqlwrapper
>> db = mysqlwrapper()
```
### object for PostgreSql
```python
>> from sqlwrapper import psqlwrapper
>> db = psqlwrapper()
```
Description of all the methods are in the package documentation which can be viewed from the official pypi website
## Cookbook
Examples are in the Examples folder