Python No SQL SQLite Wrapper
Project description
WrapLite
Python No SQL SQLite Wrapper
Installation
pip install wraplite
Usage
import wraplite as wl
import datetime as dt
import pandas as pd
# get will automatically create the database if need
simpsons = wl.get('simpsons')
# table definition without any SQL knowledge
simpsons.create_table('sons', wl.TableFormat(
id = str,
name = str,
email = str,
birthday = dt.date,
address = str,
).primary_keys(['id']))
data = []
data.append({
'id': 1,
'name': 'Bart',
'email': 'bart@simpsons.com',
'birthday': dt.date('23-02-1980'),
'address': '742 Evergreen Terrace in Springfield',
})
data.append({
'id': 2,
'name': 'Lisa',
'email': 'lisa@simpsons.com',
'birthday': dt.date('09-05-1981'),
'address': '742 Evergreen Terrace in Springfield',
})
# insert to table with any pandas DataFrame that respect the table format
simpsons.sons.insert(pd.DataFrame(data))
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
wraplite-0.2.3.dev24.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file wraplite-0.2.3.dev24.tar.gz
.
File metadata
- Download URL: wraplite-0.2.3.dev24.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03f3891342788f0a2aa2edeb28cd81ee5afd5e5a9c820bbbef85575281addcbd |
|
MD5 | 7d3d72ff83339dbafd6d54d6622559b7 |
|
BLAKE2b-256 | 2280504a4583078c2c171211955e0e4841b0e7f22145c18e70dcf10070efb029 |
File details
Details for the file wraplite-0.2.3.dev24-py3-none-any.whl
.
File metadata
- Download URL: wraplite-0.2.3.dev24-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 278ba06729328e66bccb6a35c12998ac974f0d56f1bce67a1ee0d512ef9b0f14 |
|
MD5 | 3b2e227480395f87e4b05526749760dd |
|
BLAKE2b-256 | 286c20c9b58bd7ecf23d4584c079b9997fcc6be9263ff9658e994b61c8b7c509 |