{ "info": { "author": "DISQUS", "author_email": "opensource@disqus.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Operating System :: OS Independent", "Topic :: Software Development" ], "description": "----------------\ndjango-modeldict\n----------------\n\nModelDict is a very efficient way to store things like settings in your database. The entire model is transformed into a dictionary (lazily) as well as stored in your cache. It's invalidated only when it needs to be (both in process and based on ``CACHE_BACKEND``).\n\nQuick example usage. More docs to come (maybe?)::\n\n\n\tclass Setting(models.Model):\n\t key = models.CharField(max_length=32)\n\t value = models.CharField(max_length=200)\n\tsettings = ModelDict(Setting, key='key', value='value', instances=False)\n\t\n\t# access missing value\n\tsettings['foo']\n\t>>> KeyError\n\t\n\t# set the value\n\tsettings['foo'] = 'hello'\n\t\n\t# fetch the current value using either method\n\tSetting.objects.get(key='foo').value\n\t>>> 'hello'\n\t\n\tsettings['foo']\n\t>>> 'hello'\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/olevinsky/django-modeldict", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-modeldict-rc", "package_url": "https://pypi.org/project/django-modeldict-rc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-modeldict-rc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/olevinsky/django-modeldict" }, "release_url": "https://pypi.org/project/django-modeldict-rc/1.3.1/", "requires_dist": null, "requires_python": null, "summary": "Stores a model as a dictionary", "version": "1.3.1" }, "last_serial": 819212, "releases": { "1.3.1": [ { "comment_text": "", "digests": { "md5": "5d2372d1386689f2a64ce3240906c8d1", "sha256": "db25de80a1f1f91df6609924cb782c3a78d5482c77ffe49f66486a4b43dc3ff5" }, "downloads": -1, "filename": "django-modeldict-rc-1.3.1.tar.gz", "has_sig": false, "md5_digest": "5d2372d1386689f2a64ce3240906c8d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9700, "upload_time": "2013-05-15T16:06:20", "url": "https://files.pythonhosted.org/packages/af/68/a10d79f38ee1aabbbb92b6f7c30e7fc8eb1badde2444c8a8d163c2a96581/django-modeldict-rc-1.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d2372d1386689f2a64ce3240906c8d1", "sha256": "db25de80a1f1f91df6609924cb782c3a78d5482c77ffe49f66486a4b43dc3ff5" }, "downloads": -1, "filename": "django-modeldict-rc-1.3.1.tar.gz", "has_sig": false, "md5_digest": "5d2372d1386689f2a64ce3240906c8d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9700, "upload_time": "2013-05-15T16:06:20", "url": "https://files.pythonhosted.org/packages/af/68/a10d79f38ee1aabbbb92b6f7c30e7fc8eb1badde2444c8a8d163c2a96581/django-modeldict-rc-1.3.1.tar.gz" } ] }