myjdb


Namemyjdb JSON
Version 0.0.2 PyPI version JSON
download
home_page
SummaryA simple and lightweight JSON mock database for small projects
upload_time2023-10-08 07:49:36
maintainer
docs_urlNone
authorAbhay S Prasad (KingCosma)
requires_python
licenseMIT
keywords calculator
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # myjdb

### A simple and lightweight JSON mock database for small projects

create a new database:

    db = myjdb.newDB("dbname")

---
access an existing database:

    db = myjdb.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": "myjdb",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "calculator",
    "author": "Abhay S Prasad (KingCosma)",
    "author_email": "abhaygorur@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/54/ff/67130c88530c677c885c451ca6c29c58c0a7a234ec6541293fc7f1bc07c7/myjdb-0.0.2.tar.gz",
    "platform": null,
    "description": "# myjdb\n\n### A simple and lightweight JSON mock database for small projects\n\ncreate a new database:\n\n    db = myjdb.newDB(\"dbname\")\n\n---\naccess an existing database:\n\n    db = myjdb.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.2",
    "project_urls": null,
    "split_keywords": [
        "calculator"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "54ff67130c88530c677c885c451ca6c29c58c0a7a234ec6541293fc7f1bc07c7",
                "md5": "16e6f89567e33eeb2216b3f3794b546a",
                "sha256": "1b0eeabb4c1e4f48b05a1122d8341175d98a347405d48fb3ce521639a4a07207"
            },
            "downloads": -1,
            "filename": "myjdb-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "16e6f89567e33eeb2216b3f3794b546a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3042,
            "upload_time": "2023-10-08T07:49:36",
            "upload_time_iso_8601": "2023-10-08T07:49:36.094639Z",
            "url": "https://files.pythonhosted.org/packages/54/ff/67130c88530c677c885c451ca6c29c58c0a7a234ec6541293fc7f1bc07c7/myjdb-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-08 07:49:36",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "myjdb"
}
        
Elapsed time: 0.13212s