' ████████▄ ▀█████████▄ ▄▄▄▄███▄▄▄▄ ▄███████▄ ▄██ ▄
███ ▀███ ███ ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ██▄
███ ███ ███ ███ ███ ███ ███ ███ ███ ███▄▄▄███
███ ███ ▄███▄▄▄██▀ ███ ███ ███ ███ ███ ▀▀▀▀▀▀███
███ ███ ▀▀███▀▀▀██▄ ███ ███ ███ ▀█████████▀ ▄██ ███
███ ███ ███ ██▄ ███ ███ ███ ███ ███ ███
███ ▄███ ███ ███ ███ ███ ███ ███ ███ ███
████████▀ ▄█████████▀ ▀█ ███ █▀ ▄████▀ ▀█████▀
𝑂𝑝𝑒𝑛 𝑆𝑜𝑢𝑟𝑐𝑒 𝑙𝑖𝑏𝑟𝑎𝑟𝑦 𝑡𝑜 𝑖𝑛𝑡𝑒𝑟𝑎𝑐𝑡 𝑤𝑖𝑡𝘩 𝑎 𝑆𝑄𝐿𝑖𝑡𝑒 𝑑𝑎𝑡𝑎𝑏𝑎𝑠𝑒, 𝑝𝑟𝑜𝑣𝑖𝑑𝑖𝑛𝑔 𝑚𝑒𝑡𝘩𝑜𝑑𝑠 𝑓𝑜𝑟
𝑎𝑑𝑑𝑖𝑛𝑔, 𝑑𝑒𝑙𝑒𝑡𝑖𝑛𝑔, 𝑒𝑑𝑖𝑡𝑖𝑛𝑔, 𝑎𝑛𝑑 𝑠𝑒𝑎𝑟𝑐𝘩𝑖𝑛𝑔 𝑢𝑠𝑒𝑟 𝑑𝑎𝑡𝑎 𝑖𝑛 𝑡𝘩𝑒 𝑑𝑎𝑡𝑎𝑏𝑎𝑠𝑒. '
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)
Metadata
Release files for dbmpy 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dbmpy-1.0.4.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dbmpy-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / dbmpy-1.0.4.tar.gz
| Download URL | dbmpy-1.0.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc6c12882c965726e84282d996886ca8a2e2e41b4ebd5b9975686d643be78338
|
|
BLAKE2b-256 checksum How to use checksums |
b28cc510456de48bd7220696d00773c32c8a70be8acc6fb8c2b47e27b1657193
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / dbmpy-1.0.4-py3-none-any.whl
| Download URL | dbmpy-1.0.4-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13450b24c8d126ae919ae4d6008cead40dcb1a95c9b2d591da848533ada08355
|
|
BLAKE2b-256 checksum How to use checksums |
9c2ce937ecd8359e16387506c888eedc477bfebe2905f63ef6ed65f5c8dea6ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|