New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jdocdb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jdocdb

A simple and lightweight JSON mock database for small projects

  • 0.0.1
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc