mypyjsondb


Namemypyjsondb JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryA simple and lightweight JSON mock database for small projects
upload_time2023-10-08 07:09:26
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.
            # 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

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "mypyjsondb",
    "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/25/60/c778c223be07bb8d1a0331f85089bfefb16811bc8ee765267433d3e84782/mypyjsondb-0.0.1.tar.gz",
    "platform": null,
    "description": "# mypyjsondb\n\n### A simple and lightweight JSON mock database for small projects\n\ncreate a new database:\n\n```\ndb = mypyjsondb.newDB(\"dbname\")\n```\n---\naccess an existing database:\n```\ndb = mypyjsondb.DB(\"dbname\")\n```\n---\nget the value of the database:\n```\nprint(db.value()) #value in the form of a dict\n```\n---\nset the value of the database:\n```\ndb.set(\"hello\": \"world\") #this rewrites the whole database file\n```\n---\nupdate stuff to the datbase file:\n```\ndb.update({\"newkey\": \"newvalue\"})\n```\n---\ndelete item from the database file:\n```\nx.delete(\"unwantedkey\")\n```\n---\nformat the data in a database:\n```\ndb.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": [
        "calculator"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2560c778c223be07bb8d1a0331f85089bfefb16811bc8ee765267433d3e84782",
                "md5": "4d03786142daece6f55656dd4b7f11b5",
                "sha256": "a8b08b410b15bcc70ae2e2af60eccb3bc1fbc9772fc643ee56e7de60d2d81a2c"
            },
            "downloads": -1,
            "filename": "mypyjsondb-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4d03786142daece6f55656dd4b7f11b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3269,
            "upload_time": "2023-10-08T07:09:26",
            "upload_time_iso_8601": "2023-10-08T07:09:26.370824Z",
            "url": "https://files.pythonhosted.org/packages/25/60/c778c223be07bb8d1a0331f85089bfefb16811bc8ee765267433d3e84782/mypyjsondb-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-08 07:09:26",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mypyjsondb"
}
        
Elapsed time: 0.15875s