{ "info": { "author": "leon332157", "author_email": "leon332157@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet" ], "description": "# json-store-client\nA Python client for [jsonstore.io](https://www.jsonstore.io/)\n\n## Installation\n```bash\npip install json-store-client\n```\n#### An optional installation of [ujson](https://pypi.org/project/ujson/) is recommended for faster json processing.\n##### Also installing [cchardet](https://pypi.org/project/cchardet/) and [aiodns](https://pypi.org/project/aiodns/) are recommended by aiohttp for faster performance.\n\n## Usage\n\n#### Demo of storing a Python json-friendly object with json-store-client in async on [repl.it](https://repl.it/@leon332157/json-store-client-demo).\n\n```python\nimport json_store_client\n\njsonStoreToken = '...' # Insert your token here.\nclient = json_store_client.AsyncClient(jsonStoreToken)\nasync def demo_function():\n # Save data to the 'foo' key.\n await client.store('foo', {'alfa': 'bravo', 'charlie': 'delta'})\n\n # Save data with dict mapping\n await client.save_multiple({'foo':{'alfa': 'bravo', 'charlie': 'delta'}})\n\n # Get the data from the 'foo' key.\n data = await client.retrieve('foo')\n\n print(data['alfa']) # => 'bravo'\n\n # Deletes the data after printing parts of it.\n await client.delete('foo')\n```\n\n## json-store-client API\n\n### json_store_client.Client(token)\n### json_store_client.AsyncClient(token)\n\nReturns the client to use for data operations.\n\n###### token (str): The API token from [jsonstore.io](https://www.jsonstore.io)\n\n\n### client.store(key, data[, timeout])\n### await client.store(key, data[, timeout])\n\nStoring data in jsonstore with a key\n\n###### key (str): The key to be stored on jsonstore\n###### data (any): The data to be stored under the key. It can be any Python objects.\n###### timeout (int): The timeout for the http request. Default 5 seconds\n\n### client.store_multiple(data[, timeout])\n### await client.store_multiple(data[, timeout])\n\nStoring data in jsonstore with a dict mapping\n\n###### data (dict): A dict of {key(s):value(s)} to be updated. \n###### timeout (int): The timeout for the http request. Default 5 seconds\n\n### client.retrieve(key[, timeout])\n### await clent.retrieve(key[, timeout])\nRetrieve data in jsonstore with a key\n\n##### If nothing is saved under the key, it will return None.\n\n###### key (str): The key to get on jsonstore\n###### timeout (int): The timeout for the http request. Default 5 seconds\n\n\n### client.delete(key[, timeout])\n### await client.delete(key[, timeout])\n\nDelete data in jsonstore with a key\n\n###### key (str): The key to get on jsonstore\n###### timeout (int): The timeout for the http request. Default 5 seconds", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/leon332157/json-store-client", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "json-store-client", "package_url": "https://pypi.org/project/json-store-client/", "platform": "", "project_url": "https://pypi.org/project/json-store-client/", "project_urls": { "Homepage": "https://github.com/leon332157/json-store-client" }, "release_url": "https://pypi.org/project/json-store-client/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "A client library for jsonstore", "version": "1.1.0" }, "last_serial": 5693324, "releases": { "0.0.1b0": [ { "comment_text": "", "digests": { "md5": "25156b99dad6c8c554c0a6ef330a3023", "sha256": "f67a11310863cc0d29b75e24a8659a6039df42746b7fe2057723847d9828d866" }, "downloads": -1, "filename": "json-store-client-0.0.1b0.tar.gz", "has_sig": false, "md5_digest": "25156b99dad6c8c554c0a6ef330a3023", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2670, "upload_time": "2019-02-18T05:34:45", "url": "https://files.pythonhosted.org/packages/a7/0a/5452683c11590c43f090dea9bf6ad4de04f83d9afefa3e7cc5a6c5a990da/json-store-client-0.0.1b0.tar.gz" } ], "0.0.1b1": [ { "comment_text": "", "digests": { "md5": "97a5a8d3ebeb6f5f424c437db92685b7", "sha256": "1a5ece9e381db1cea5ac55942c2a734a8a8aeeebb9ecb43f6b1ec4d95324ef9f" }, "downloads": -1, "filename": "json-store-client-0.0.1b1.tar.gz", "has_sig": false, "md5_digest": "97a5a8d3ebeb6f5f424c437db92685b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2897, "upload_time": "2019-02-19T17:10:50", "url": "https://files.pythonhosted.org/packages/7f/c6/51d28b2bcf85bee7ff712983bf5afe6967738fc682f2a827c602ed7d57a9/json-store-client-0.0.1b1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "bb7a060f2c47bda14a39887d0f658548", "sha256": "6c4a0ca6e566b0b2d230d956e82450df51ea6c2e1a2846eb017e20879e0b4056" }, "downloads": -1, "filename": "json-store-client-0.0.2.tar.gz", "has_sig": false, "md5_digest": "bb7a060f2c47bda14a39887d0f658548", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3016, "upload_time": "2019-02-20T23:25:59", "url": "https://files.pythonhosted.org/packages/4f/a2/6408169e081a91d88b1644171d9f9821b5c87aa41163bbdf147a3d7a0467/json-store-client-0.0.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "f6247f66f8864c804c0aa1c4c34421a3", "sha256": "23f422378699a3f386e53e7704c62d48a08d4b4c308f01508b57fc3afa48ae7f" }, "downloads": -1, "filename": "json-store-client-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f6247f66f8864c804c0aa1c4c34421a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3214, "upload_time": "2019-02-24T06:11:48", "url": "https://files.pythonhosted.org/packages/7e/c4/9ad4a9270003bc1cac1d15e67d474dc977cc794cc014a41752382b9341f7/json-store-client-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "34843e9ef4f6d54d740ed25a8cf79f53", "sha256": "49acbce9b35297845db714f2b4a979137de202ba7f19891e7764828341e31c45" }, "downloads": -1, "filename": "json-store-client-1.0.1.tar.gz", "has_sig": false, "md5_digest": "34843e9ef4f6d54d740ed25a8cf79f53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3233, "upload_time": "2019-02-24T06:48:02", "url": "https://files.pythonhosted.org/packages/e9/86/be047a0fe94adbd86f93ebd44028977d47582a212789d0db004b6ea4f381/json-store-client-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "ff899a3e9a235ecd0f41940236168137", "sha256": "17bf9a26782b5eb97bb3fadcea245c153189b010858bbc672c5ae6729c9cdfe7" }, "downloads": -1, "filename": "json-store-client-1.0.2.tar.gz", "has_sig": false, "md5_digest": "ff899a3e9a235ecd0f41940236168137", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3568, "upload_time": "2019-05-27T04:26:34", "url": "https://files.pythonhosted.org/packages/c0/c1/8ddf357ec894fe9e6e762d46f6a2528433551e81c2cccc228445374c3d85/json-store-client-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "748c1b41b6c0511f916ff88ef12baa6b", "sha256": "83078d7e85721cfc2d13bef9ffdab37a8214acb5680cc4c094b236846e9910ed" }, "downloads": -1, "filename": "json-store-client-1.1.0.tar.gz", "has_sig": false, "md5_digest": "748c1b41b6c0511f916ff88ef12baa6b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3833, "upload_time": "2019-08-18T03:46:22", "url": "https://files.pythonhosted.org/packages/0d/43/a3fcdaf9db4f451fa7ab4c8fa6749e36612530d2e6feaa56a22e780c9668/json-store-client-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "748c1b41b6c0511f916ff88ef12baa6b", "sha256": "83078d7e85721cfc2d13bef9ffdab37a8214acb5680cc4c094b236846e9910ed" }, "downloads": -1, "filename": "json-store-client-1.1.0.tar.gz", "has_sig": false, "md5_digest": "748c1b41b6c0511f916ff88ef12baa6b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3833, "upload_time": "2019-08-18T03:46:22", "url": "https://files.pythonhosted.org/packages/0d/43/a3fcdaf9db4f451fa7ab4c8fa6749e36612530d2e6feaa56a22e780c9668/json-store-client-1.1.0.tar.gz" } ] }