polywrapper


Namepolywrapper JSON
Version 0.1.5 PyPI version JSON
download
home_page
SummaryA wrapper for interacting with Polygon DB
upload_time2023-09-26 19:49:38
maintainer
docs_urlNone
authorDavid
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            You can download it here https://pypi.org/project/polywrapper/
# Welcome to the PolyWrapper wiki!

Here is the basics of using poly wrapper

### To install polywrapper run the following command
`pip install polywrapper`

Here is an example of inserting data into a database

```import polywrapper
connection = polywrapper.PolyClient("node2.lunes.host:27106", "Better_Password", "ExampleDB")

res = connection.insert("Hello", "World")
print(res)
```
This will return {"Status": "Success"} if it works.`

### You can also input sub level JSON and lists
```
connection.insert({"users": ["David", "Andrew"]})
connection.insert("meta", {"page": "2"})
```

### To get data from certain key
```res = connection.get("key")
print(res)
to get all data from database do
res = connection.get()
```
if the key value system is {"key": "value"} it will return value if it is something like {"key": {"sub": "json"}} it will return {"sub": "json"}

### To update a keys value.

`connection.update("key", "value2")`
once again this can be json or a string
to append data to a list you will need to do
`res = connection.insert("users", ["John", "Andrew"])
connection.append("users", "Mia")
`
### To remove certain keys.

`
connection.remove('key')
`

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "polywrapper",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "David",
    "author_email": "dwatnip123@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/95/01/1eb829bbf81e2c180f7e2581f94e8a715c490cd8febc19fc78d93d4a9d64/polywrapper-0.1.5.tar.gz",
    "platform": null,
    "description": "You can download it here https://pypi.org/project/polywrapper/\n# Welcome to the PolyWrapper wiki!\n\nHere is the basics of using poly wrapper\n\n### To install polywrapper run the following command\n`pip install polywrapper`\n\nHere is an example of inserting data into a database\n\n```import polywrapper\nconnection = polywrapper.PolyClient(\"node2.lunes.host:27106\", \"Better_Password\", \"ExampleDB\")\n\nres = connection.insert(\"Hello\", \"World\")\nprint(res)\n```\nThis will return {\"Status\": \"Success\"} if it works.`\n\n### You can also input sub level JSON and lists\n```\nconnection.insert({\"users\": [\"David\", \"Andrew\"]})\nconnection.insert(\"meta\", {\"page\": \"2\"})\n```\n\n### To get data from certain key\n```res = connection.get(\"key\")\nprint(res)\nto get all data from database do\nres = connection.get()\n```\nif the key value system is {\"key\": \"value\"} it will return value if it is something like {\"key\": {\"sub\": \"json\"}} it will return {\"sub\": \"json\"}\n\n### To update a keys value.\n\n`connection.update(\"key\", \"value2\")`\nonce again this can be json or a string\nto append data to a list you will need to do\n`res = connection.insert(\"users\", [\"John\", \"Andrew\"])\nconnection.append(\"users\", \"Mia\")\n`\n### To remove certain keys.\n\n`\nconnection.remove('key')\n`\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A wrapper for interacting with Polygon DB",
    "version": "0.1.5",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "95011eb829bbf81e2c180f7e2581f94e8a715c490cd8febc19fc78d93d4a9d64",
                "md5": "817763599ac550370e091290b652ffef",
                "sha256": "c32c0fe024e3502b82b89b791f3f50d069ef617037d2199014006742d9e08f0f"
            },
            "downloads": -1,
            "filename": "polywrapper-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "817763599ac550370e091290b652ffef",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3358,
            "upload_time": "2023-09-26T19:49:38",
            "upload_time_iso_8601": "2023-09-26T19:49:38.504901Z",
            "url": "https://files.pythonhosted.org/packages/95/01/1eb829bbf81e2c180f7e2581f94e8a715c490cd8febc19fc78d93d4a9d64/polywrapper-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-26 19:49:38",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "polywrapper"
}
        
Elapsed time: 0.31685s