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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file simpleJDB-0.1.1.tar.gz
.
File metadata
- Download URL: simpleJDB-0.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b7f5b02a2a38cd5638adeb05da3a3e755fa6c6a1e54b3602c46ecde1de57d24 |
|
MD5 | 295e4dbcb9d65414715333e981624108 |
|
BLAKE2b-256 | 8fd7f9ac1130c5b5a11a36dcfcd42075be11cefcd944e47c6bba7d4d03b214e6 |
File details
Details for the file simpleJDB-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: simpleJDB-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 978a419808683862ce6809afa1b52f29c8c57e79287ea7dc9e3b7585493498c0 |
|
MD5 | cc6798ad0156785ca431be37892f7333 |
|
BLAKE2b-256 | 0e51a574b85dc92ce46d83d524357f2d64f89eb93d902d6e82edf774bf1cfa31 |