Skip to main content

A sqlite lib that encapsulate common sqlite operations

Project description

sqlitelib

sqlitelib is a Python library that provides an easy-to-use interface for common SQLite database operations. It simplifies database interactions, making it easier to perform tasks like creating tables, inserting records, querying data, and more.

Features

  • Connect to SQLite databases
  • Create tables
  • Insert, update, and delete records
  • Query data with flexible options
  • Simple and intuitive API

Installation

You can install sqlitelib using pip:

pip install sqlitelib

Usage

from sqlitelib import SqliteModel, Column, Constraint, DataType

class ExportJob(SqliteModel):
    __databasepath__ = 'path/to/db.db'
    __tablename__ = 'export_job'

    job_type = Column(DataType.TEXT, Constraint.NOT_NULL)
    status = Column(DataType.TEXT, Constraint.NOT_NULL)
    completed_date = Column(DataType.INTEGER)
    export_parameters_json = Column(DataType.TEXT)
    description = Column(DataType.TEXT)
    directory_path = Column(DataType.TEXT)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlitelib-1.0.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

sqlitelib-1.0.3-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file sqlitelib-1.0.3.tar.gz.

File metadata

  • Download URL: sqlitelib-1.0.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for sqlitelib-1.0.3.tar.gz
Algorithm Hash digest
SHA256 de42386a057f56f331f182cb52bceda168cc250b2963aedb797baf9fae5de401
MD5 a042d048d297f4c9003a80e978a46eb0
BLAKE2b-256 f0f256a8bc07f63a574141db983e954a5bf69871f071a287f2f3a9c9524f5849

See more details on using hashes here.

File details

Details for the file sqlitelib-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: sqlitelib-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for sqlitelib-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 107975b492f68795c5033918a920549b3f759230c8fcf4bb14e0be6c4102535f
MD5 fed9ae66438be27dbf5581604d972720
BLAKE2b-256 a4e1084bc8164f908b60adbba4cf0a3e85ac1d5dca0199a65229f1b2071422ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page