Skip to main content

A simple and lightweight JSON mock database for small projects

Project description

jdocdb

A simple and lightweight JSON mock database for small projects

create a new database:

db = jdocdb.newDB("dbname")

access an existing database:

db = jdocdb.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

jdocdb-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file jdocdb-0.0.1.tar.gz.

File metadata

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

File hashes

Hashes for jdocdb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a3a407b3483ffa0654c7d8090b4835ec0a26a33cbe37666bec01f14484175a24
MD5 6729abc9f206fde63a7ae70083ea0d52
BLAKE2b-256 687472730e96d49d97ef26c6c0f03af0b76a96b6ef9e4fe918139e99998ce9ac

See more details on using hashes here.

Supported by

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