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.1.1.tar.gz
(4.2 kB
view details)
Built Distribution
wraplite-0.1.1-py3-none-any.whl
(16.7 kB
view details)
File details
Details for the file wraplite-0.1.1.tar.gz
.
File metadata
- Download URL: wraplite-0.1.1.tar.gz
- Upload date:
- Size: 4.2 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 | b49a29739be1f95b64d5ace03f811bd364bd2f962c40c759d768fd7e14fb1b7e |
|
MD5 | b75109bd040c256b780cffd6aee925bc |
|
BLAKE2b-256 | 5b31122975284e841bc02bd8773019cb3fdb00432ccb4d2d3c4a01b9d3277d30 |
File details
Details for the file wraplite-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: wraplite-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.7 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 | 3f347e9b8943b423e72a727d8cca07d85dd038f35d57b97076ea5902114886e7 |
|
MD5 | 50fa42a8250df6e820682fbb2205f4cf |
|
BLAKE2b-256 | 5c774e85f22206f63d954865082c39b2d95c20ab42ddb8132fd3209831cb26a1 |