{ "info": { "author": "Conan Fan Li", "author_email": "conanlics@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.4" ], "description": "django-goshstorefield\n=====================\n.. image:: https://travis-ci.org/conanfanli/goshstore.svg?branch=master\n :alt: Build Status\n :target: https://travis-ci.org/conanfanli/goshstore\n\ndjango-goshstore field is a reusable Django field that allows you to get or set values from hstore fields.\n\n\nHow to use\n----------\nAssuming you have a django model defined:\n\n.. code-block:: python\n\n from django.db import models\n from goshstore import GosHStoreField\n\n class MyModel(models.Model):\n hstores = GosHStoreField(default={})\n\n @hstores.getter(key='foo', converter=Decimal)\n def get_foo(self, save=True, reset=False):\n return max(range(100))\n\n instance = MyModel()\n\n\nCalling `instance.get_foo()` will return `instance.hstores['foo']` if `'foo'`\nis in `instance.hstores`. Otherwise, 100 will be stored into\n`instance.hstores['foo']` and `instance.save(update_fields=['hstores'])`\nwill be called. To prevent calling `instance.save()`, call\n`instance.get_foo(save=False)`.\n\nWhen calling `instance.get_foo(reset=True)`, `max(range(100))` will be\nevaluated and returned regardless whether `'foo'` is already in\n`instance.hstores`.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/conanfanli/goshstore", "keywords": "django hstore postgres", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "goshstore", "package_url": "https://pypi.org/project/goshstore/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/goshstore/", "project_urls": { "Homepage": "https://github.com/conanfanli/goshstore" }, "release_url": "https://pypi.org/project/goshstore/0.3.0/", "requires_dist": [ "django (<=1.9.1,>=1.9.0)", "psycopg2 (==2.6.1); extra == 'dev'", "coverage (==4.0.2); extra == 'dev'" ], "requires_python": "", "summary": "Django get-or-set hstore field", "version": "0.3.0" }, "last_serial": 1926252, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f1b46bcbbb5123d32907785f50c65b41", "sha256": "79875e5082eebee7ca6f957d8f15fa85230bee76a942fb93e5c30dff881c11b4" }, "downloads": -1, "filename": "goshstore-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f1b46bcbbb5123d32907785f50c65b41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2446, "upload_time": "2015-11-23T17:02:33", "url": "https://files.pythonhosted.org/packages/0e/52/e886e1d00a8bb3970f96e81d6d6bf7e19d6d665bcbe399ca0a9dcae26d36/goshstore-0.1.0.tar.gz" } ], "0.1.0dev1": [ { "comment_text": "", "digests": { "md5": "b28b5dbd5855f3897fff811685e015b7", "sha256": "e8151a34f744431a76767e435883d1c2717118a3e7c37a033d738f286068aeed" }, "downloads": -1, "filename": "goshstore-0.1.0dev1.tar.gz", "has_sig": false, "md5_digest": "b28b5dbd5855f3897fff811685e015b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2187, "upload_time": "2015-11-23T06:04:42", "url": "https://files.pythonhosted.org/packages/bd/34/b4e617a1bf0a15063b95e46b6a9785404d698a69011464d7b525da5ae62d/goshstore-0.1.0dev1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3e4702ac5f40702c2dbcc63d9e02e439", "sha256": "ff62bf4f3081f9a3a80acafabe23fd72e72ec9bed44bc8f2b6c1157a30386381" }, "downloads": -1, "filename": "goshstore-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3e4702ac5f40702c2dbcc63d9e02e439", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2852, "upload_time": "2015-11-24T06:19:23", "url": "https://files.pythonhosted.org/packages/0f/89/4e2a96017dd899a775db27edc319d7f711070f9db8c7b0d53827b0338bd2/goshstore-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "2def416a9532075a1fdc9c11c6e74891", "sha256": "b3561bd3ad4e5bcb23aecece1cc8670e857a8f48d32366bbd1ef86b4227ba2d1" }, "downloads": -1, "filename": "goshstore-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2def416a9532075a1fdc9c11c6e74891", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4698, "upload_time": "2016-01-27T21:29:43", "url": "https://files.pythonhosted.org/packages/47/d7/eba4162438a381180fbbbc42298faf6a33af5d1c8743d41bfdbdcb10ded7/goshstore-0.3.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2def416a9532075a1fdc9c11c6e74891", "sha256": "b3561bd3ad4e5bcb23aecece1cc8670e857a8f48d32366bbd1ef86b4227ba2d1" }, "downloads": -1, "filename": "goshstore-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2def416a9532075a1fdc9c11c6e74891", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4698, "upload_time": "2016-01-27T21:29:43", "url": "https://files.pythonhosted.org/packages/47/d7/eba4162438a381180fbbbc42298faf6a33af5d1c8743d41bfdbdcb10ded7/goshstore-0.3.0-py3-none-any.whl" } ] }