#Py2sqlite3
Py2sqlite3 is a library that facilitates the communication between python objects and sqlite3 databases
Installation
https://pypi.org/project/py2sqlite3/
pip install py2sqlite3
Command line usage (only to run test):
python -m py2sqlite3
Usage as library
Example
from py2sqlite3 import Py2sqlite3
class Foo:
bar = 0
class Foo2(Foo):
pass
py2sql = Py2sqlite3()
py2sql.db_connect('test.db')
py2sql.save_class(Foo) # saves class Foo
py2sql.save_class_hierarchy(Foo) # saves Foo and Foo2
py2sql.save_object(Foo()) # saves object of class Foo
py2sql.delete_class(Foo) # deletes class Foo
py2sql.delete_class_hierarchy(Foo) # deletes Foo and Foo2
py2sql.delete_object(Foo()) # deletes object of class Foo
py2sql.db_disconnect()
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py2sqlite3-0.11.tar.gz
(5.5 kB
view details)
File details
Details for the file py2sqlite3-0.11.tar.gz.
File metadata
- Download URL: py2sqlite3-0.11.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3a2d3955a9832b92ed0fb1f0b852ecf9b4ac9dc881c73c4d1d0503330596103
|
|
| MD5 |
e647cc567047a25036e657991e72de17
|
|
| BLAKE2b-256 |
3f2a6a87e8d383fb856468bafeff95dac3e9e4e1b9ee601e23431d5ff575b82f
|