#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()
Metadata
Release files for py2sqlite3 0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py2sqlite3-0.13.tar.gz | 6.1 kB | Details |
Release files / py2sqlite3-0.13.tar.gz
| Download URL | py2sqlite3-0.13.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea768d10670a5003f963919c19a817c01b8d2e310947661cb7968eede9a1084d
|
|
BLAKE2b-256 checksum How to use checksums |
85822ce7877ac0fc90e2a69fe8d2faa2836b4a9844c3d5019b3782b15962983b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|