Easy to use database module
Project description
DankDB - Simple Database
This simple, yet useful module allows the user to create a database for small scale projects; the user can easily add values to the database while simultaneously retrieving values.
Features:
• create_table - Takes in a table name and multiple column names then creates a table. • insert_row - Takes in a row of values and adds them into the table. • delete_rows - Removes all rows from table. • fetch_table - Retrieves all values within the table. • export_csv - Export table into a csv file with given table name. • read_csv - Prints out all values in table with given table name. • close - Closes connection to database.
How to install
pip install dankdb
How to use
Example code
from dankdb import Database
db = Database()
db.create_table('example', 'column1 TEXT', 'column2 TEXT', 'column3 TEXT')
db.insert_row('value1', 'value2', 'value3')
db.insert_row('value4', 'value5', 'value6')
print(db.fetch_table())
db.close()
Feature request
If there is a feature that you would like implemented, open an issue, and I will work on it.
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
Built Distribution
File details
Details for the file dankdb-0.0.3.tar.gz
.
File metadata
- Download URL: dankdb-0.0.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 572e320b0026a8915b16c0116e00639516faad764a5c2e523de80fd6be9c17b7 |
|
MD5 | b2653f224b88e1a6ce5a790a9e63aac1 |
|
BLAKE2b-256 | 7e9d1cbe2c4797593fb925880a1bb47f50e113b8ae889fb052ada6bcde603473 |
File details
Details for the file dankdb-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: dankdb-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4768994c4adc5d995e7d6d02265b4cc2c416d3d5531df81e0a31da48304a8cd |
|
MD5 | 071e5b649c8eeb98987fbcac6dc7f99c |
|
BLAKE2b-256 | ba3e984b85bd67b6f47fb4cedc06f556792af20dba6e0e6daade9acf14d03525 |