Skip to main content

A simple database wrapper for Python 3

Project description

ezdatabase

Making Databases easier

EzDatabase is a simple Database Wrapper for Python! Inspired by Repl.it Database! It can be used like a Python List

Features

  • Works with a Key / Value System
  • Can store strings, numbers, booleans, bytes

Code Examples

  • Initialize Database

from ezdatabase import db

database = db("MyDatabase.db")
# Returns None
  • Set / Update Value of a Key

# Arguments: key_name, key_value
database["User1"] = {"age": 10, "name": "John"}
database["21398"] = "10,30 EUR"
database["online"] = True
# Returns True on Success
  • Read the Value of a Key

value = database["User1"]
# Returns the Value of a Key
  • Delete a Key

del database["User1"]
# Returns True on Successful removal of the Key

  • Iterate through the Keys of the Database
for x in database:
    print(x)

Change Log

1.6 (02/12/2021)

  • Usage Updated
  • Made Database Iterable
  • Documentation Updated

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

ezdatabase-1.6.tar.gz (3.3 kB view hashes)

Uploaded Source

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