Skip to main content

a simple key based json databse

Project description

simpleJDB

simpleJDB is a lightweight and easy-to-use python database that allows you to store, retrieve, and manipulate data with minimal code.

Getting Started

To initialize the database, simply import the simpleJDB module and create a new database object, passing in a name for the database as an argument:

import simpleJDB db = simpleJDB.database("my_database")

Adding and Updating Keys

To add a new key-value pair to the database, use the setkey() method and pass in the key name and the value to be stored:

db.setkey("age", 22)

You can also update the value of an existing key by calling setkey() with the same key name and a new value:

db.setkey("age", 23)

Retrieving and Deleting Keys

To retrieve the value of a key, use the getkey() method and pass in the key name:

age = db.getkey("age")

To delete a key, use the delkey() method and pass in the key name:

db.delkey("age")

Key Type

To check the data type of a key, use the gettype() method and pass in the key name:

data_type = db.gettype("age")

Conclusion

With simpleJDB, you can easily store and manipulate data in a pythonic way. So, give it a try and see how it can simplify your project.

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

simpleJDB-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

simpleJDB-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file simpleJDB-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for simpleJDB-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1a947bc696dac3d7b5477ae6eb8531bface2155f324a73c21e993187a73d1cf0
MD5 1fcddedfcb22d47d4c87423abf22f076
BLAKE2b-256 3a5895e82ba7adaa0fd6817aa7b6ef88d9a80d54cfe80ac73d83a45accd8f2e6

See more details on using hashes here.

File details

Details for the file simpleJDB-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: simpleJDB-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for simpleJDB-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09807a2bd4a750727fc71601cf00420a13de646740d0f483bc6499256cad6533
MD5 9bd69c9076c292e5a8bc254baff23b26
BLAKE2b-256 aa4698c29f9deca52814b5d305c2a484232b04fe00f073b39782abe0a7a5b64e

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