Skip to main content

PySQLite-Helper 🧤

GitHub stars GitHub license

Python SQLiteHelper is a python package that help you to create sqlite databases,tables and interacting with sqlite database without have to worry about writing any SQL query.

# import the module from helper folder
from pysqlitehelper.helpers import SQLiteHelper

# creating the database called todo_app using our SQLiteHeper module 
db=SQLiteHelper('todo_app')
# After this like the file todo_app.db will be created in your directory

# Specify the structure of table you want to create using dictionary like this
columns = {
    'title': 'text',
    'description':'text',
    'completed':'boolean',
}

# create table using create_table function, and pass table name and of course the columns in the table 
db.create_table('tasks',columns)

# you want to insert data in your table right let's kee going
# specify values to be inserted in your table like this, column name then the value in dictionary format

values={
    'title':'Coding in the morning',
    'description':'Drinking coffee instead',
    'completed':False,
}

# then to execute the insert method call this fuction and pass table name and it's value

db.insert('tasks',values)
# after this line, you are now inserted your data in your table 

# select data by ID , here i'm going to select todo with id of 2
todo=db.selectWhereId('tasks',2)
print(todo)
# you can display selected column like this print(todo['title'])

# select all datas and display it via console like this
for r in db.selectAll(table_name='tasks'):
    print(r)

Metadata

Release files for pysqlitehelper 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysqlitehelper 0.4.0
File Size Uploaded Provenance Actions
pysqlitehelper-0.4.0.tar.gz 2.9 kB Without provenance Details for pysqlitehelper-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysqlitehelper 0.4.0
File Interpreter ABI Platform Actions
pysqlitehelper-0.4.0-py3-none-any.whl Python 3 none any Details for pysqlitehelper-0.4.0-py3-none-any.whl

Total release size: 6.6 kB

Release files / pysqlitehelper-0.4.0.tar.gz

Download URL pysqlitehelper-0.4.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
151ff0064c533ae0859aa2662734bbfb2e6255db71f559f045129b28fb582f84
BLAKE2b-256 checksum
How to use checksums
c55a0223cffbd565ce4758b7ab582695bfa6fc625bbb8639410b4772b6d3b692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / pysqlitehelper-0.4.0-py3-none-any.whl

Download URL pysqlitehelper-0.4.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
847519c5d001711970e4bba844b3f9f2a3d9ec587a4f42bf6a200e73eac70243
BLAKE2b-256 checksum
How to use checksums
711318ccfcf038fedade4ab137ae43a0c15fe2f6a59b37df2d3f05048ed8323e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for pysqlitehelper 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files No provenance

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