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.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlitelib-1.0.2.tar.gz
  • Upload date:
  • Size: 8.7 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.2.tar.gz
Algorithm Hash digest
SHA256 b8bceaae026f56ad2f4d5e1f323f3616a2dd9aaddca0c46fe1dcd555fd2c998b
MD5 4e157e24c2daca1e39582860144572c2
BLAKE2b-256 38f78f7ad119de22912784b57dbc137b12e29d55383b32657090145cde2732cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlitelib-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f44e0ecda3f35e5f7b641ef53489da9a516a4d69c1bd037f8905e7ad18960051
MD5 5df70501bc85a25584804391922de04f
BLAKE2b-256 8eaf507277fa20b5b70e9aff836ca3227080324d8524b911726ba2654d93881d

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