{ "info": { "author": "Luiz Menezes", "author_email": "luiz.menezesf@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5" ], "description": "==========\nredis-hash\n==========\n\n.. image:: https://badge.fury.io/py/redis-hash.svg\n :target: https://badge.fury.io/py/redis-hash\n\n.. image:: https://travis-ci.org/lamenezes/redis-hash.svg?branch=master\n :target: https://travis-ci.org/lamenezes/redis-hash\n\n.. image:: https://coveralls.io/repos/github/lamenezes/redis-hash/badge.svg?branch=master\n :target: https://coveralls.io/github/lamenezes/redis-hash?branch=master\n\n\nSimple python interface for redis hash type\n\nInstallation\n============\n\n.. code:: bash\n\n pip install redis redis_hash\n\n\nUsage\n=====\n\nFirst you need to instantiate the redis client from the ``redis`` package:\n\n\n.. code:: python\n\n >> from redis import StrictRedis\n >> redis_client = StrictRedis(host='localhost', port=6379, db=0)\n\nThen create your hash passing the client and the hash key:\n\n.. code:: python\n\n >> from redis_hash import RedisHash\n >> redis_hash = RedisHash(redis_client, 'hash_name')\n\nNow your can handle your hash like a ``dict``:\n\n.. code:: python\n\n >> redis_hash['foo'] = 'bar'\n >> len(redis_hash)\n 1\n >> 'foo' in redis_hash\n True\n >>> for k, v in redis_hash:\n ... print(k, v)\n ...\n foo bar\n >>> redis_hash['foo']\n b'bar'\n >>> list(redis_hash)\n [(b'foo', b'bar')]\n >> del redis_hash['foo']\n >> len(redis_hash)\n 0\n >> 'foo' in redis_hash\n False", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lamenezes/redis-hash", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "redis-hash", "package_url": "https://pypi.org/project/redis-hash/", "platform": "", "project_url": "https://pypi.org/project/redis-hash/", "project_urls": { "Homepage": "https://github.com/lamenezes/redis-hash" }, "release_url": "https://pypi.org/project/redis-hash/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Hash interface for redis-py", "version": "1.0.1" }, "last_serial": 3674231, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f09e8c39ff6b529143497f9c8a3c4cd1", "sha256": "d8b2103e7d78c819516b05f8d37e03ab2d7fbb4794eb361c9e425d671aaabf96" }, "downloads": -1, "filename": "redis-hash-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f09e8c39ff6b529143497f9c8a3c4cd1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2112, "upload_time": "2018-03-01T18:01:19", "url": "https://files.pythonhosted.org/packages/b3/25/b1b271469fd637edc1a9f582b4ff72845f42ff353784af1af7ac09583070/redis-hash-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "7f89d911a84d9801656f7df28afef70d", "sha256": "084ca7d8b9045f43e985993f858379f9f88401c1852f526641dea24d43135181" }, "downloads": -1, "filename": "redis-hash-0.0.2.tar.gz", "has_sig": false, "md5_digest": "7f89d911a84d9801656f7df28afef70d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2244, "upload_time": "2018-03-01T20:15:30", "url": "https://files.pythonhosted.org/packages/fd/e9/0a50b8b37586a6d235851ef3f0cc118d9e732c466b55404ea49e62aecf00/redis-hash-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "5732c49423f81cca55599483bf353ec0", "sha256": "095c8b0e7841db1a794011dd04ef16392ac2489340fa83c7a67a5e28346e80b3" }, "downloads": -1, "filename": "redis-hash-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5732c49423f81cca55599483bf353ec0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2527, "upload_time": "2018-03-02T03:25:36", "url": "https://files.pythonhosted.org/packages/d4/0d/c625a70715209a2ae2683e3bb3efeb649bdae4f82423959766e0789d237e/redis-hash-0.1.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "0cb36e88d5d05f1aed6cefb242d6f4f0", "sha256": "a319c8c04a9387e59d26d338b5742c2b336bf8a635c40acc2e28dc2bccbab946" }, "downloads": -1, "filename": "redis-hash-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0cb36e88d5d05f1aed6cefb242d6f4f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2879, "upload_time": "2018-03-15T21:10:41", "url": "https://files.pythonhosted.org/packages/4b/81/90569897734c54276dd17183dca0006b153ee3739aa8c605c0044a928e97/redis-hash-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "3a7a7f77b9abdc6d9edf663740c4b556", "sha256": "2cbf242971989821c057fb12179dc2ab3c45d5642f7f865df29f1918781cb785" }, "downloads": -1, "filename": "redis-hash-1.0.1.tar.gz", "has_sig": false, "md5_digest": "3a7a7f77b9abdc6d9edf663740c4b556", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2909, "upload_time": "2018-03-15T21:32:34", "url": "https://files.pythonhosted.org/packages/80/c1/dfe4742691f17cccfdd17e62da711dc20bcb7364ee17d410bd5d0ac354fc/redis-hash-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3a7a7f77b9abdc6d9edf663740c4b556", "sha256": "2cbf242971989821c057fb12179dc2ab3c45d5642f7f865df29f1918781cb785" }, "downloads": -1, "filename": "redis-hash-1.0.1.tar.gz", "has_sig": false, "md5_digest": "3a7a7f77b9abdc6d9edf663740c4b556", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2909, "upload_time": "2018-03-15T21:32:34", "url": "https://files.pythonhosted.org/packages/80/c1/dfe4742691f17cccfdd17e62da711dc20bcb7364ee17d410bd5d0ac354fc/redis-hash-1.0.1.tar.gz" } ] }