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 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
File details
Details for the file steelbase-1.0.1.tar.gz.
File metadata
- Download URL: steelbase-1.0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
909f11e6b42a110f361f60fe634c6a6e79d5e58b7049959ee1be9d88983b6cff
|
|
| MD5 |
8f500cbcb6be1521ad3a464dfd680350
|
|
| BLAKE2b-256 |
e14f8fec3c48cf40f95a6c53afa51542ef541dfeb1c51b1f8c5cf176a9fa6718
|
File details
Details for the file steelbase-1.0.1-py3-none-any.whl.
File metadata
- Download URL: steelbase-1.0.1-py3-none-any.whl
- Upload date:
- Size: 1.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55ae753b004f929f55f5ca9da95336e89dbef7262fb30b13a4045e4ac01a116a
|
|
| MD5 |
0bdfa4aae472adf92e106231bce2547e
|
|
| BLAKE2b-256 |
3e67732108b0da496ac16a8829f5fa8bc4f8cff390ed399239a9f66028f9e36c
|