{ "info": { "author": "Derek Schaefer", "author_email": "derek.schaefer@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Django JSON Field\n=================\n\n``django-json-field`` contains a flexible JSONField and associated form field. The model field is not only capable of serializing common JSON data types (int, float, decimal, string, time, date, datetime, etc.) but also lazily deserializing them so they can be accessed and modified as normal Python objects within Django.\n\nA form field is also provided. It will accept serialized representations:\n\n ``{\"date\": \"2012-04-23T19:16:54.133\", \"num\": \"1.2399\"}``\n\nAnd also provides safe access to the ``datetime`` module for explicit use:\n\n ``{\"date\": datetime.datetime(2012, 4, 23, 19, 16, 54, 133000)}``\n\nWhile the JSON string will not be deserialized until it is accessed it can still be a performance concern, so you may find it valuable to disable the custom deserializer (``JSONField(decoder=None)``).\n\n``django-json-field`` is also compatible with South and Python 3.\n\nInstallation\n------------\n\nInstall from PyPI:\n\n ``pip install django-json-field``\n\nIf installing manually, first install the dependencies:\n\n ``pip install python-dateutil six``\n\nInstall from GitHub:\n\n ``git clone git://github.com/derek-schaefer/django-json-field.git``\n\n ``pip install -e git+git://github.com/derek-schaefer/django-json-field.git#egg=json_field``\n\nConfiguration\n-------------\n\nAdd ``json_field`` to your ``PYTHONPATH`` and ``INSTALLED_APPS`` setting:\n\n::\n\n INSTALLED_APPS = (\n ...\n 'json_field',\n ...\n )\n\nThat's all!\n\nUsage\n-----\n\nAdd a ``JSONField`` to your model like any other field.\n\n::\n\n from json_field import JSONField\n from django.db import models\n \n class MyModel(models.Model):\n \n json = JSONField()\n\n``JSONField`` also has a few additional optional parameters.\n\n - ``default``: Falls back on ``\"null\"`` if not provided and ``null=False``, otherwise ``None``\n - ``db_type``: Allows you to specify the column type (default: ``text``)\n - ``lazy``: Defer deserialization until the field is directly accessed (default: ``True``)\n - ``encoder``: Custom JSON encoder (default: ``DjangoJSONEncoder``)\n - ``decoder``: Custom JSON decoder (default: ``json_field.fields.JSONDecoder``)\n - ``encoder_kwargs``: Specify all arguments to the encoder (overrides ``encoder``)\n - ``decoder_kwargs``: Specify all arguments to the decoder (overrides ``decoder``)\n - ``evaluate_formfield``: Evaluate (risky) and enable use of the ``datetime`` module in the form field (default: ``False``)\n\nLicense\n-------\n\n``django-json-field`` is licensed under the New BSD license.", "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/derek-schaefer/django-json-field", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-json-field", "package_url": "https://pypi.org/project/django-json-field/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-json-field/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/derek-schaefer/django-json-field" }, "release_url": "https://pypi.org/project/django-json-field/0.5.7/", "requires_dist": null, "requires_python": null, "summary": "Generic JSON model and form fields.", "version": "0.5.7" }, "last_serial": 1248571, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8a3090ededddc70a1d403c9d98e2ef2d", "sha256": "424958f0fa4cfcc1c84dd4a68ab74880b06aa2b4dceee5d6b6aef2a48d4bf914" }, "downloads": -1, "filename": "django-json-field-0.1.tar.gz", "has_sig": false, "md5_digest": "8a3090ededddc70a1d403c9d98e2ef2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4159, "upload_time": "2012-04-24T22:53:28", "url": "https://files.pythonhosted.org/packages/fe/07/f7425da50b1f1a3664fb5ba6c0f5258920a4fb7052e84a8dda61088b8df3/django-json-field-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "b5f17e86dbcfa95447eee87f836e0fda", "sha256": "452e9f1b9ddff572e48ce73288ce4950ddc809d773dfe5bcf409c7fae4612749" }, "downloads": -1, "filename": "django-json-field-0.2.tar.gz", "has_sig": false, "md5_digest": "b5f17e86dbcfa95447eee87f836e0fda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4515, "upload_time": "2012-05-16T18:22:40", "url": "https://files.pythonhosted.org/packages/68/53/635442cb2b937d103630b4981e8797fd683ebaaf20c5136fd02df313a25b/django-json-field-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5428b9188233a72685fd3e4ecfbe92b9", "sha256": "1fb74a32825b2c87f93a51bdea430f2d43013b5a5b50944ecefeb5b06996cf74" }, "downloads": -1, "filename": "django-json-field-0.3.tar.gz", "has_sig": false, "md5_digest": "5428b9188233a72685fd3e4ecfbe92b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5070, "upload_time": "2012-06-29T21:00:33", "url": "https://files.pythonhosted.org/packages/f8/22/eb8060c8685e8a5d28c26fc873216f916a77902a42d9710d544ff32061d6/django-json-field-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "65c17f53f27217160b33bd9ab0645f17", "sha256": "d645aa5e5ace6cfa63c7a88f5d6a1ad80d82d32b51d8c068e2a10080ced82a81" }, "downloads": -1, "filename": "django-json-field-0.4.tar.gz", "has_sig": false, "md5_digest": "65c17f53f27217160b33bd9ab0645f17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5095, "upload_time": "2012-08-13T02:42:17", "url": "https://files.pythonhosted.org/packages/d3/eb/944343d9e586721eb0007eebbd6c44d7128a038a32bea3da87ed907c7091/django-json-field-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "a455cfea89c295494b2c544b9fbf22d9", "sha256": "ae944ece26c532490b4a70001128b1626a72dee6f9f8f241b460ffe9cdcb6f5c" }, "downloads": -1, "filename": "django-json-field-0.4.1.tar.gz", "has_sig": false, "md5_digest": "a455cfea89c295494b2c544b9fbf22d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5018, "upload_time": "2012-08-23T21:20:19", "url": "https://files.pythonhosted.org/packages/01/07/e45515cbf01d2524f51435f6111bf1b0c820e40532da29b39ad595cbc1c6/django-json-field-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "15ef1c4bc6099358a1f108be35f5b488", "sha256": "eb249046d787e7c5dcee328997eb92accfa80e43434ab8f1e54ae3e49a070860" }, "downloads": -1, "filename": "django-json-field-0.4.2.tar.gz", "has_sig": false, "md5_digest": "15ef1c4bc6099358a1f108be35f5b488", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5022, "upload_time": "2012-10-29T16:17:31", "url": "https://files.pythonhosted.org/packages/91/b0/7884dc2a7817c2c6574cdf19398733283799b3c03e72dde0ccf2c23865c4/django-json-field-0.4.2.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "7fc9c840d1aaba8f184bb143b5af5e69", "sha256": "c5905f71c4ad64f783fdb3fcfbddcb22ff8bb131268dcc360bfae8cf1f181b71" }, "downloads": -1, "filename": "django-json-field-0.5.tar.gz", "has_sig": false, "md5_digest": "7fc9c840d1aaba8f184bb143b5af5e69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5228, "upload_time": "2013-02-15T21:54:47", "url": "https://files.pythonhosted.org/packages/f3/1e/bac80bdba36fcd5a056c0b2021e4b8735ad706578a3006a2d87d4ad40043/django-json-field-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "befed044aee0e392a0aadcaa1e4d436b", "sha256": "3605a68bd17f29e29e85c8bfc3ddbe1344c6ff184d85d827c2d88add79ab93c5" }, "downloads": -1, "filename": "django-json-field-0.5.1.tar.gz", "has_sig": false, "md5_digest": "befed044aee0e392a0aadcaa1e4d436b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5610, "upload_time": "2013-02-16T05:39:00", "url": "https://files.pythonhosted.org/packages/5f/4a/75eb6baa14b9a72c0723894c369a688a5059f9d48102e0501270faea16a9/django-json-field-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "49729721aadd7d66416f6532291eb4a6", "sha256": "d139f67c0054455938199a2738dd7049449437518ea9d8283163586f940df32f" }, "downloads": -1, "filename": "django-json-field-0.5.2.tar.gz", "has_sig": false, "md5_digest": "49729721aadd7d66416f6532291eb4a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6099, "upload_time": "2013-05-06T21:39:42", "url": "https://files.pythonhosted.org/packages/f6/e4/2f06c335fc52bddfb546a8d7d6a328d3a4fdf5db4c74b0cb8627a9038560/django-json-field-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "a5cc3a9918859d76612fe5d093108bf6", "sha256": "774768a9684ca7646ee6a26b8b1d0f8b1829ec0b995e69af77ca9b87577b83bb" }, "downloads": -1, "filename": "django-json-field-0.5.3.tar.gz", "has_sig": false, "md5_digest": "a5cc3a9918859d76612fe5d093108bf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6256, "upload_time": "2013-05-22T15:21:02", "url": "https://files.pythonhosted.org/packages/c3/f5/252ec63b3233a578b3dff9f53e597a65dd6d3c85db4537797a69746fd51d/django-json-field-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "a7d0e2196b9013ff09e806bdd5a8da4f", "sha256": "350376efd861079ed903a584af0afe732b3a56cbe42701fb9834fcb76cd2ba60" }, "downloads": -1, "filename": "django-json-field-0.5.4.tar.gz", "has_sig": false, "md5_digest": "a7d0e2196b9013ff09e806bdd5a8da4f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6195, "upload_time": "2013-06-19T15:37:57", "url": "https://files.pythonhosted.org/packages/18/64/09ab35313cb010ed6ecad6f3d13d2e53b5c1c0da33f9bf9a0f8048030263/django-json-field-0.5.4.tar.gz" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "186c35230dce8022d028c9df7165d605", "sha256": "aa55adba805a624d1d97335e24eeb2034f63419cbdf27a5f548148c40372944d" }, "downloads": -1, "filename": "django-json-field-0.5.5.tar.gz", "has_sig": false, "md5_digest": "186c35230dce8022d028c9df7165d605", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6204, "upload_time": "2013-08-28T15:44:55", "url": "https://files.pythonhosted.org/packages/6f/14/07c9ff6855596f25601a0f158f4dc66e43d4325a8977fac7dbe0387bc040/django-json-field-0.5.5.tar.gz" } ], "0.5.7": [ { "comment_text": "", "digests": { "md5": "a75ac07821fbba975a5ce0f8e4eadb53", "sha256": "d9b59775ce5eceabf3ab1793397df8507adb22f1e889297adf1971599f1fc906" }, "downloads": -1, "filename": "django-json-field-0.5.7.tar.gz", "has_sig": false, "md5_digest": "a75ac07821fbba975a5ce0f8e4eadb53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6292, "upload_time": "2014-10-05T17:22:24", "url": "https://files.pythonhosted.org/packages/5a/76/a1bdcc2ad9a82f731ce38c32640f371b234a0b79b1b1c578156f47b9de5e/django-json-field-0.5.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a75ac07821fbba975a5ce0f8e4eadb53", "sha256": "d9b59775ce5eceabf3ab1793397df8507adb22f1e889297adf1971599f1fc906" }, "downloads": -1, "filename": "django-json-field-0.5.7.tar.gz", "has_sig": false, "md5_digest": "a75ac07821fbba975a5ce0f8e4eadb53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6292, "upload_time": "2014-10-05T17:22:24", "url": "https://files.pythonhosted.org/packages/5a/76/a1bdcc2ad9a82f731ce38c32640f371b234a0b79b1b1c578156f47b9de5e/django-json-field-0.5.7.tar.gz" } ] }