Name | jdocdb JSON |
Version |
0.0.1
JSON |
| download |
home_page | |
Summary | A simple and lightweight JSON mock database for small projects |
upload_time | 2023-10-12 08:32:05 |
maintainer | |
docs_url | None |
author | Abhay S Prasad (KingCosma) |
requires_python | |
license | MIT |
keywords |
datbase
json
data
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
Raw data
{
"_id": null,
"home_page": "",
"name": "jdocdb",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "datbase,json,data",
"author": "Abhay S Prasad (KingCosma)",
"author_email": "abhaygorur@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/68/74/72730e96d49d97ef26c6c0f03af0b76a96b6ef9e4fe918139e99998ce9ac/jdocdb-0.0.1.tar.gz",
"platform": null,
"description": "# jdocdb\n\n### A simple and lightweight JSON mock database for small projects\n\ncreate a new database:\n\n db = jdocdb.newDB(\"dbname\")\n\n---\naccess an existing database:\n\n db = jdocdb.DB(\"dbname\")\n\n---\nget the value of the database:\n\n print(db.value()) #value in the form of a dict\n\n---\nset the value of the database:\n\n db.set(\"hello\": \"world\") #this rewrites the whole database file\n\n---\nupdate stuff to the datbase file:\n\n db.update({\"newkey\": \"newvalue\"})\n\n---\ndelete item from the database file:\n\n x.delete(\"unwantedkey\")\n\n---\nformat the data in a database:\n\n db.format()\n---\n\n\nChange Log\n==========\n\n0.0.1\n-------------\n- first release\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A simple and lightweight JSON mock database for small projects",
"version": "0.0.1",
"project_urls": null,
"split_keywords": [
"datbase",
"json",
"data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "687472730e96d49d97ef26c6c0f03af0b76a96b6ef9e4fe918139e99998ce9ac",
"md5": "6729abc9f206fde63a7ae70083ea0d52",
"sha256": "a3a407b3483ffa0654c7d8090b4835ec0a26a33cbe37666bec01f14484175a24"
},
"downloads": -1,
"filename": "jdocdb-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "6729abc9f206fde63a7ae70083ea0d52",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2929,
"upload_time": "2023-10-12T08:32:05",
"upload_time_iso_8601": "2023-10-12T08:32:05.766873Z",
"url": "https://files.pythonhosted.org/packages/68/74/72730e96d49d97ef26c6c0f03af0b76a96b6ef9e4fe918139e99998ce9ac/jdocdb-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-12 08:32:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "jdocdb"
}