A simple and lightweight JSON mock database for small projects
Project description
# mypyjsondb
### A simple and lightweight JSON mock database for small projects
create a new database:
` db = mypyjsondb.newDB("dbname") ` — access an existing database: ` db = mypyjsondb.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
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
File details
Details for the file mypyjsondb-0.0.1.tar.gz.
File metadata
- Download URL: mypyjsondb-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8b08b410b15bcc70ae2e2af60eccb3bc1fbc9772fc643ee56e7de60d2d81a2c
|
|
| MD5 |
4d03786142daece6f55656dd4b7f11b5
|
|
| BLAKE2b-256 |
2560c778c223be07bb8d1a0331f85089bfefb16811bc8ee765267433d3e84782
|