Skip to main content

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


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)

Uploaded Source

Built Distribution

steelbase-1.0.1-py3-none-any.whl (1.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page