SleekQL
SleekQL is a light SQLite3 wrapper for Python, designed to execute simple operations more quickly.
🔧 Features
- Create a database
- Delete from database
- Drop database
- Fetch data from database
- insert and update
- Execute raw SQL
🚀 Usage
Import and setup
from SleekQL import SleekQL
# Initialize with database name or path
db = SleekQL("database.db")
Functions
# Close connection to database
db.close_connection()
# Create table
db.create_table(
table_name="Table1",
columns=["Column1", "Column2"],
datatypes_constraints=["INTEGER PRIMARY KEY", "TEXT"]
)
# Insert data
db.insert(table_name="Table1", columns=["Column1", "Column2"], values=[100, "Data"])
# Fetch data and return list[dict]
db.select(table_name="Table1", columns=["*"])
# Update data
db.update(table_name="Table1", columns_values=["Column1 = 101", "Column2 = 'DATA'"])
# Delete data
db.delete(table_name="Table1", where="Column1 = 101")
# Drop table
db.drop_table(table_name="Table1")
Use raw SQL
# returns List[tuple] if needed
db.raw_sql(query="SELECT * FROM Table1")
📦 Installation
pip install sleekql
Metadata
Release files for sleekql 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sleekql-1.0.0.tar.gz | 15.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sleekql-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / sleekql-1.0.0.tar.gz
| Download URL | sleekql-1.0.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92ae5e3fe8c352ec193d8909989cb168020632ff1ddf195951489c201e6ab5da
|
|
BLAKE2b-256 checksum How to use checksums |
06b88e3ecf127f86c579fc450b861cf0a73bd93de68641c9e7a2b8776fab1059
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / sleekql-1.0.0-py3-none-any.whl
| Download URL | sleekql-1.0.0-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb11d47a6e8825dd143074331561d8cc47a236f471318c65484353f835408832
|
|
BLAKE2b-256 checksum How to use checksums |
62e6ecb68563a631a2d83a2eb812862a6c8aef58201312f96b7a8e68249345f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|