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
File details
Details for the file wraplite-0.1.0.macosx-10.15-x86_64.tar.gz.
File metadata
- Download URL: wraplite-0.1.0.macosx-10.15-x86_64.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf66d58765e19adab612eed4bee049054f3f57bd9d5da544285bf45fd4289ae9
|
|
| MD5 |
fbe860f551d267c39749274e9343432f
|
|
| BLAKE2b-256 |
4a4747476597a10be7b7b24697b141c5c2996d6695cbb9d5628ccdae8ffff9cd
|