Open source python3 library to manage SQLite3 databases
Project description
' ████████▄ ▀█████████▄ ▄▄▄▄███▄▄▄▄ ▄███████▄ ▄██ ▄
███ ▀███ ███ ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ██▄
███ ███ ███ ███ ███ ███ ███ ███ ███ ███▄▄▄███
███ ███ ▄███▄▄▄██▀ ███ ███ ███ ███ ███ ▀▀▀▀▀▀███
███ ███ ▀▀███▀▀▀██▄ ███ ███ ███ ▀█████████▀ ▄██ ███
███ ███ ███ ██▄ ███ ███ ███ ███ ███ ███
███ ▄███ ███ ███ ███ ███ ███ ███ ███ ███
████████▀ ▄█████████▀ ▀█ ███ █▀ ▄████▀ ▀█████▀
𝑂𝑝𝑒𝑛 𝑆𝑜𝑢𝑟𝑐𝑒 𝑙𝑖𝑏𝑟𝑎𝑟𝑦 𝑡𝑜 𝑖𝑛𝑡𝑒𝑟𝑎𝑐𝑡 𝑤𝑖𝑡𝘩 𝑎 𝑆𝑄𝐿𝑖𝑡𝑒 𝑑𝑎𝑡𝑎𝑏𝑎𝑠𝑒, 𝑝𝑟𝑜𝑣𝑖𝑑𝑖𝑛𝑔 𝑚𝑒𝑡𝘩𝑜𝑑𝑠 𝑓𝑜𝑟
𝑎𝑑𝑑𝑖𝑛𝑔, 𝑑𝑒𝑙𝑒𝑡𝑖𝑛𝑔, 𝑒𝑑𝑖𝑡𝑖𝑛𝑔, 𝑎𝑛𝑑 𝑠𝑒𝑎𝑟𝑐𝘩𝑖𝑛𝑔 𝑢𝑠𝑒𝑟 𝑑𝑎𝑡𝑎 𝑖𝑛 𝑡𝘩𝑒 𝑑𝑎𝑡𝑎𝑏𝑎𝑠𝑒. '
Features
Easy-to-use methods for database interaction.
Automatically handles database connection opening and closing.
Built-in error handling for robustness.
Supports Create, Read, Update, and Delete operations on database records.
Installation
You can install dbtcpy using pip:
pip install dbmpy
Usage
init
from dbmpy import dbmpy
# Initialize the dbtcpy object with the name of your SQLite database
db = dbmpy("my_database.db")
add user
# Define user data
user_data = {
"username": "john_doe",
"password": "password123"
}
# Add the user to the database
db.add(user_data)
delete user
# Delete a user by their ID
db.delete(1)
edit user info
# Update user information
new_data = {
"username": "jane doe",
"password": "password2324"
}
db.edit(1, new_data)
show user info
# Retrieve user information by ID
user = db.show(1)
print(user)
search users with
# Search for users based on specific criteria
users = db.search(username="john_doe")
print(users)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dbmpy-1.0.4.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dbmpy-1.0.4-py3-none-any.whl
(4.9 kB
view details)
File details
Details for the file dbmpy-1.0.4.tar.gz.
File metadata
- Download URL: dbmpy-1.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc6c12882c965726e84282d996886ca8a2e2e41b4ebd5b9975686d643be78338
|
|
| MD5 |
b2a5e337e4d5beff4e3d9904158c344c
|
|
| BLAKE2b-256 |
b28cc510456de48bd7220696d00773c32c8a70be8acc6fb8c2b47e27b1657193
|
File details
Details for the file dbmpy-1.0.4-py3-none-any.whl.
File metadata
- Download URL: dbmpy-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13450b24c8d126ae919ae4d6008cead40dcb1a95c9b2d591da848533ada08355
|
|
| MD5 |
f08a85a805e247fbc0ceffb48af28f89
|
|
| BLAKE2b-256 |
9c2ce937ecd8359e16387506c888eedc477bfebe2905f63ef6ed65f5c8dea6ab
|