A basic database structure, like sqlite3.
Project description
SteelBase
Ex.
Creating A Simple Database
# Importing steelbase (pip install steelbase)
from steelbase import SteelBase
# Creating a SteelBase instance (loading existing data if any)
steelbase_instance = SteelBase()
# Creating a table named 'books'
steelbase_instance.create_table("books")
# Adding records to the 'books' table
steelbase_instance.add_record("books", 1, {"title": "Python 101", "author": "John Doe"})
steelbase_instance.add_record("books", 2, {"title": "Web Development Basics", "author": "Jane Smith"})
# Saving the data to the file with ".steelbase" extension
steelbase_instance.save_data()
# Retrieving and printing all records in the 'books' table
print(steelbase_instance.show_records("books"))
Developed by steeldev
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
steelbase-1.0.1.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for steelbase-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55ae753b004f929f55f5ca9da95336e89dbef7262fb30b13a4045e4ac01a116a |
|
MD5 | 0bdfa4aae472adf92e106231bce2547e |
|
BLAKE2b-256 | 3e67732108b0da496ac16a8829f5fa8bc4f8cff390ed399239a9f66028f9e36c |