Skip to main content

A simple and lightweight JSON mock database for small projects

Project description

myjdb

A simple and lightweight JSON mock database for small projects

create a new database:

db = myjdb.newDB("dbname")

access an existing database:

db = myjdb.DB("dbname")

get the value of the database:

print(db.value()) #value in the form of a dict

set the value of the database:

db.set("hello": "world") #this rewrites the whole database file

update stuff to the datbase file:

db.update({"newkey": "newvalue"})

delete item from the database file:

x.delete("unwantedkey")

format the data in a database:

db.format()

Change Log

0.0.1

  • first release

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

myjdb-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file myjdb-0.0.2.tar.gz.

File metadata

  • Download URL: myjdb-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for myjdb-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1b0eeabb4c1e4f48b05a1122d8341175d98a347405d48fb3ce521639a4a07207
MD5 16e6f89567e33eeb2216b3f3794b546a
BLAKE2b-256 54ff67130c88530c677c885c451ca6c29c58c0a7a234ec6541293fc7f1bc07c7

See more details on using hashes here.

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