Skip to main content

Managing small SQLITE database files

Project description

SQLAZO



PyPI Downloads PyPI - Version PyPI - Python Version Static Badge GitHub License
pip install sqlazo

It is a module for managing SQLITE databases. It provides access to methods that perform transactions with the database of your choice, as long as it is a SQLITE database.

Initialisation

To begin using it, create an instance of the Database class, which accepts the following parameters:

name: str: Name of the database (e.g. 'test.db'). check_thread: boolean: Check for multithreaded executions.

# Initialisation example
from sqlazo import Database

# Will create a test.db file ready to use
# check threads is False by default
db = Database('test.db')

Available Methods

  • create_table: Allows you to create a table in the connected database.
  • table_exists: Allows you to check if a table exists in the database.
  • insert_data: Executes the insertion "query" in the database (adds data).
  • get_data_all: Executes the "query" to retrieve all records from the database.
  • get_data_where: Executes the "query" to retrieve records using a "custom query".
  • delete_data: Deletes records from the database.

Private Methods 🔏

  • __connect: Establishes connection to the database.
  • __commit: "Refreshes" changes to the database.
  • __cursor: Creates a cursor on the database connection, allowing "query execution".

Version History:

  • 0.2.0: A new method was added to correctly check whether a table exists or not, and the code was modified to try to be compatible with older versions of Python and:
  • 0.1.5: Updated dependencies and links
  • 0.1.4: Updated dependencies and links
  • 0.1.3: Updated dependency versions
  • 0.1.2: Updated dependency versions
  • 0.1.1: Added dependency handling in the build file (.toml)
  • 0.1.0: Initial release

If you wish to learn more, visit:

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

sqlazo-0.2.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlazo-0.2.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file sqlazo-0.2.0.tar.gz.

File metadata

  • Download URL: sqlazo-0.2.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for sqlazo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cbaba8ee5a11cc3fcb8113aa25eff7bc71d7b96a7e5fa55bfecdeb1d5e24c786
MD5 08271b00e6425563e6fa55e61e0d229b
BLAKE2b-256 15eeac6af2d269abc428cb009932b9f3251c14cc7bc346e4ba933003a44c7855

See more details on using hashes here.

File details

Details for the file sqlazo-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sqlazo-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for sqlazo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3e601b52342ed138e5c2de0b792046df76cefacffaa3351fcc31c768e8ec2e2
MD5 cb24af6f90ba538921138c458d0b870d
BLAKE2b-256 988782f112cef743af43aa02625835a5fb099b2395e75e436ad81948d77ca27d

See more details on using hashes here.

Supported by

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