{ "info": { "author": "Mohamed Hendawy", "author_email": "hendawy@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta" ], "description": "django-lookup-dict\r\n========================\r\n\r\nA django app that allows you to use a djanog model created by the app with a python dict-like operators. Useful for storing configuration variables\r\n\r\n\r\nHello, world\r\n------------\r\n\r\n**Simple Demo**::\r\n\r\n\tfrom django_lookup_dict import LookupDict\r\n\r\n\tlookup = LookupDict()\r\n\tlookup['hello'] = 'world'\r\n\tprint \"Lookup for Hello is : {0}\".format(lookup['hello'])\r\n\r\n\r\nHow To:\r\n------------\r\n\r\nSetting a value, regular assigningment with the square bracket operator [ ]::\r\n\r\n\tlookup['hello'] = 'world'\r\n\r\nRetrieving a value, using square bracket operator [ ]::\r\n\r\n\tlookup['hello']\r\n\r\nKey count::\r\n\r\n\tlen(lookup)\r\n\r\nDeletin, using the del and using square bracket operators::\r\n\r\n\tdel lookup['hello']\r\n\r\nDeleting certain keys::\r\n\r\n\t# lookup.delete(*args)\r\n\tlookup.delete('key1', 'key2', 'key3')\r\n\r\nInstallation\r\n------------\r\n\r\n**Automatic installation**::\r\n\r\n\tpip install django_lookup_dict\r\n\r\n**Manual installation**: Download the latest source from `GitHub \r\n`_.\r\n\r\n.. parsed-literal::\r\n\r\n\ttar xvzf django_lookup_dict-[VERSION].tar.gz\r\n\tcd django_lookup_dict-[VERSION]\r\n\tpython setup.py build\r\n\tsudo python setup.py install\r\n\r\n**After Instalation**:\r\n\r\n\t#.\tAdd 'django_lookup_dict' to INSTALLED_APPS in your django project's settings.\r\n\t#.\tRun 'python manage.py syncdb' in order to create the data storage for the model.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/hendawy/django_lookup_dict/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hendawy/django_lookup_dict", "keywords": "Python,Django,Model,Dictionary,Django Model,Lookup,Model Lookup", "license": "UNKNOWN", "maintainer": "", "maintainer_email": "", "name": "django_lookup_dict", "package_url": "https://pypi.org/project/django_lookup_dict/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django_lookup_dict/", "project_urls": { "Download": "https://github.com/hendawy/django_lookup_dict/releases", "Homepage": "https://github.com/hendawy/django_lookup_dict" }, "release_url": "https://pypi.org/project/django_lookup_dict/0.1/", "requires_dist": null, "requires_python": null, "summary": "Django Lookup Dict is a django app that enables you use a django model the Python dict way", "version": "0.1" }, "last_serial": 1210233, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ec43ec8aeefded3b8d3ffc5dad725a98", "sha256": "d49eeabca0cda214df96f6ad5553f74b5d82f53e351f2a6268352a27011fb9fe" }, "downloads": -1, "filename": "django_lookup_dict-0.1.tar.gz", "has_sig": false, "md5_digest": "ec43ec8aeefded3b8d3ffc5dad725a98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2029, "upload_time": "2014-08-29T12:32:47", "url": "https://files.pythonhosted.org/packages/69/4e/b2e13f3ea402de7cd2f0ac8faa450ed20f19f69c3d11168ba42b2bf0ee7b/django_lookup_dict-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec43ec8aeefded3b8d3ffc5dad725a98", "sha256": "d49eeabca0cda214df96f6ad5553f74b5d82f53e351f2a6268352a27011fb9fe" }, "downloads": -1, "filename": "django_lookup_dict-0.1.tar.gz", "has_sig": false, "md5_digest": "ec43ec8aeefded3b8d3ffc5dad725a98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2029, "upload_time": "2014-08-29T12:32:47", "url": "https://files.pythonhosted.org/packages/69/4e/b2e13f3ea402de7cd2f0ac8faa450ed20f19f69c3d11168ba42b2bf0ee7b/django_lookup_dict-0.1.tar.gz" } ] }