{ "info": { "author": "Tobias Guenther", "author_email": "pressdict@tobigue.de", "bugtrack_url": null, "classifiers": [], "description": "=========\npressdict\n=========\n\nPressdict is a compressed key-value store for JSON-serializable objects.\n\nThe objects to be stored in the container are JSON-serialized and the resulting string is compressed using zlib. The compressed string is then stored as value for the given key. When accessing the values in the container this process is reversed.\n\n\nExample of usage\n----------------\n\nPressdict can mostly be used like a normal Python dict::\n\n from pressdict import Pressdict\n pd = Pressdict()\n pd[\"test\"] = {\"key\": \"value\", \"key2\": 2}\n print pd[\"test\"]\n\n\nImportant\n---------\n\nRemember that everything in the dict is stored as string and is therefor IMMUTABLE!! That means that THIS WILL NOT WORK::\n\n pd[\"list\"].append(\"item\") # will not work!\n pd[\"dict\"][\"new_key\"] = \"value\" # will not work!\n\nThus, changes to objects in the Pressdict have to be explicit::\n\n pd[\"list\"] = pd[\"list\"] + [\"item\"]\n\n d = pd[\"dict\"]\n d[\"new_key\"] = \"value\"\n pd[\"dict\"] = d\n\n\nLists\n-----\n\nNEW: Package now also includes a pressed list::\n\n from pressdict import Presslist\n pl = Presslist()\n pl.append({\"key\": \"value\", \"key2\": 2})\n print pl[0]\n\nNote that the same restrictions apply as for Pressdicts: You can not modify a stored object directly. You need to retrieve the object, modify it and store it again.\n\n\nTests\n=====\n\nTesting requires having the nose library (`pip install nose`).\nAfter installation, the package can be tested by executing from\noutside the source directory::\n\n nosetests --exe -v", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tobigue/pressdict", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "Pressdict", "package_url": "https://pypi.org/project/Pressdict/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Pressdict/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/tobigue/pressdict" }, "release_url": "https://pypi.org/project/Pressdict/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Pressdict is a compressed key-value store for JSON-serializable objects.", "version": "0.0.3" }, "last_serial": 2424339, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "cca7c5ce615e408a13e03267c392ce41", "sha256": "7a11a36d257369e25ba1346f83aec8ca3c5a4b4763806ef1797c758d24e610fb" }, "downloads": -1, "filename": "Pressdict-0.0.1.tar.gz", "has_sig": false, "md5_digest": "cca7c5ce615e408a13e03267c392ce41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2480, "upload_time": "2013-09-25T13:35:19", "url": "https://files.pythonhosted.org/packages/92/25/fa6d829c1c06c2c679d829873deecdbad6af815d4220fbb7644674029288/Pressdict-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "71ef06f7d1608e049a75ebc18ee32311", "sha256": "53e34d920091699299ee253837a5a362fc12930d03b5f0efe317caa72b647690" }, "downloads": -1, "filename": "Pressdict-0.0.2.tar.gz", "has_sig": false, "md5_digest": "71ef06f7d1608e049a75ebc18ee32311", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2478, "upload_time": "2013-09-25T13:33:33", "url": "https://files.pythonhosted.org/packages/b3/8a/78efc3f95c4a7e0e55f5f9cc97f1e7a6fe263800d1d3321dbde12940d4e1/Pressdict-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "10326411e16b1bec75093c427862a3d7", "sha256": "b67421d3f2c84b2cc5982ed819250da3230772dcff1f10d5d67c19cdb4a0b437" }, "downloads": -1, "filename": "Pressdict-0.0.3.tar.gz", "has_sig": false, "md5_digest": "10326411e16b1bec75093c427862a3d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3716, "upload_time": "2016-10-26T15:26:33", "url": "https://files.pythonhosted.org/packages/6e/f6/efebca1988a16a4dd0708f6171f5788bdc2d4259ede898e5381323d1b2a0/Pressdict-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "10326411e16b1bec75093c427862a3d7", "sha256": "b67421d3f2c84b2cc5982ed819250da3230772dcff1f10d5d67c19cdb4a0b437" }, "downloads": -1, "filename": "Pressdict-0.0.3.tar.gz", "has_sig": false, "md5_digest": "10326411e16b1bec75093c427862a3d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3716, "upload_time": "2016-10-26T15:26:33", "url": "https://files.pythonhosted.org/packages/6e/f6/efebca1988a16a4dd0708f6171f5788bdc2d4259ede898e5381323d1b2a0/Pressdict-0.0.3.tar.gz" } ] }