Skip to main content

#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.18.7.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file py2sqlite3-0.18.7.tar.gz.

File metadata

  • Download URL: py2sqlite3-0.18.7.tar.gz
  • Upload date:
  • Size: 6.6 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

Hashes for py2sqlite3-0.18.7.tar.gz
Algorithm Hash digest
SHA256 4d6b99a811d0925f6e838c351e93b992f35f92afcc27e0942b5130fb2429b523
MD5 ae7ae5a83ca9b005c45abbb9dd9939ca
BLAKE2b-256 dce14eb290b18115f80dc0ee7a71086ca0991a618d297f2074fc7ddcf327821e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.19

1 file

This release

0.18.7 This release

1 file

0.18.6

1 file

0.18.5

1 file

0.18.4

1 file

0.18.3

1 file

0.18.2

1 file

0.18.1

1 file

0.18

1 file

0.17

1 file

0.16

1 file

0.15

1 file

0.14

1 file

0.13

1 file

0.12

1 file

0.11

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page