{ "info": { "author": "Ryan P Kilby", "author_email": "rpkilby@ncsu.edu", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.2", "Framework :: Django :: 3.0", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8" ], "description": "jsonfield2\n==========\n\n.. image:: https://circleci.com/gh/rpkilby/jsonfield2.svg?style=shield\n :target: https://circleci.com/gh/rpkilby/jsonfield2\n.. image:: https://codecov.io/gh/rpkilby/jsonfield2/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/rpkilby/jsonfield2\n.. image:: https://img.shields.io/pypi/v/jsonfield2.svg\n :target: https://pypi.org/project/jsonfield2\n.. image:: https://img.shields.io/pypi/l/jsonfield2.svg\n :target: https://pypi.org/project/jsonfield2\n\n-----\n\n**ARCHIVE NOTICE:** This package has been deprecated and merged back into **jsonfield**.\n\n-----\n\n**jsonfield2** is a reusable model field that allows you to store validated JSON, automatically handling\nserialization to and from the database. To use, add ``jsonfield.JSONField`` to one of your models.\n\n**Note:** `django.contrib.postgres`_ now supports PostgreSQL's jsonb type, which includes extended querying\ncapabilities. If you're an end user of PostgreSQL and want full-featured JSON support, then it is\nrecommended that you use the built-in JSONField. However, jsonfield2 is still useful when your app\nneeds to be database-agnostic, or when the built-in JSONField's extended querying is not being leveraged.\ne.g., a configuration field.\n\n.. _django.contrib.postgres: https://docs.djangoproject.com/en/dev/ref/contrib/postgres/fields/#jsonfield\n\n\nRequirements\n------------\n\njsonfield2 aims to support all current `versions of Django`_, however the explicity tested versions are:\n\n* **Python:** 3.6, 3.7, 3.8\n* **Django:** 2.2, 3.0\n\n.. _versions of Django: https://www.djangoproject.com/download/#supported-versions\n\n\nInstallation\n------------\n\n.. code-block:: python\n\n pip install jsonfield2\n\n\nUsage\n-----\n\n.. code-block:: python\n\n from django.db import models\n from jsonfield import JSONField\n\n class MyModel(models.Model):\n json = JSONField()\n\n\nAdvanced Usage\n--------------\n\nBy default python deserializes json into dict objects. This behavior differs from the standard json\nbehavior because python dicts do not have ordered keys. To overcome this limitation and keep the\nsort order of OrderedDict keys the deserialisation can be adjusted on model initialisation:\n\n.. code-block:: python\n\n import collections\n\n class MyModel(models.Model):\n json = JSONField(load_kwargs={'object_pairs_hook': collections.OrderedDict})\n\n\nOther Fields\n------------\n\n**jsonfield.JSONCharField**\n\nSubclasses **models.CharField** instead of **models.TextField**.\n\n\nRunning the tests\n-----------------\n\nThe test suite requires ``tox`` and ``tox-venv``.\n\n.. code-block:: shell\n\n $ pip install tox tox-venv\n\n\nTo test against all supported versions of Django, install and run ``tox``:\n\n.. code-block:: shell\n\n $ tox\n\nOr, to test just one version (for example Django 2.0 on Python 3.6):\n\n.. code-block:: shell\n\n $ tox -e py36-django20\n\n\nRelease Process\n---------------\n\n* Update changelog\n* Update package version in setup.py\n* Check supported versions in setup.py and readme\n* Create git tag for version\n* Upload release to PyPI test server\n* Upload release to official PyPI server\n\n.. code-block:: shell\n\n $ pip install -U pip setuptools wheel twine\n $ rm -rf dist/ build/\n $ python setup.py sdist bdist_wheel\n $ twine upload -r test dist/*\n $ twine upload dist/*\n\n\nChanges\n-------\n\nTake a look at the `changelog`_.\n\n.. _changelog: https://github.com/rpkilby/jsonfield2/blob/master/CHANGES.rst\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rpkilby/jsonfield2/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "jsonfield2", "package_url": "https://pypi.org/project/jsonfield2/", "platform": "", "project_url": "https://pypi.org/project/jsonfield2/", "project_urls": { "Homepage": "https://github.com/rpkilby/jsonfield2/" }, "release_url": "https://pypi.org/project/jsonfield2/4.0.0.post0/", "requires_dist": [ "Django (>=2.2)" ], "requires_python": "", "summary": "A reusable Django field that allows you to store validated JSON in your model.", "version": "4.0.0.post0", "yanked": false, "yanked_reason": null }, "last_serial": 6732598, "releases": { "3.0.0": [ { "comment_text": "", "digests": { "md5": "d39a12008ff644d9fe1c4dc8c6e023c5", "sha256": "ac20e4fda644e6053c789844a880b18b20ad8157a9e442c38e79486951a7356e" }, "downloads": -1, "filename": "jsonfield2-3.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d39a12008ff644d9fe1c4dc8c6e023c5", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5716, "upload_time": "2018-05-08T00:32:37", "upload_time_iso_8601": "2018-05-08T00:32:37.362260Z", "url": "https://files.pythonhosted.org/packages/88/37/7104aa07fc6bc1b87a0dbdcaf0857f67c074bf1ffeac4ecb0b260145841b/jsonfield2-3.0.0-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "3.0.1": [ { "comment_text": "", "digests": { "md5": "4b6909ea4caba2025883602b44e27c81", "sha256": "dcc7757202218f198c9152fd68184acb2a176df8c81115ed2687ee35eaa27f41" }, "downloads": -1, "filename": "jsonfield2-3.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4b6909ea4caba2025883602b44e27c81", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 5535, "upload_time": "2018-05-21T21:18:08", "upload_time_iso_8601": "2018-05-21T21:18:08.453924Z", "url": "https://files.pythonhosted.org/packages/aa/76/c5715d8f445635f34968599877a1fe9441bedbb30c5a18b596c359718ef3/jsonfield2-3.0.1-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "3.0.2": [ { "comment_text": "", "digests": { "md5": "7ae8e62d3749f6f8e8c4163c3236a3ea", "sha256": "0000ba18823db706909393ba7d34c33950a3c8ad547d25ed5665be66ccc52ee9" }, "downloads": -1, "filename": "jsonfield2-3.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "7ae8e62d3749f6f8e8c4163c3236a3ea", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6396, "upload_time": "2018-12-21T18:51:09", "upload_time_iso_8601": "2018-12-21T18:51:09.027987Z", "url": "https://files.pythonhosted.org/packages/e7/41/e1a314720ed96e3afa542ba6d7320c4a0d3ec3eb9e9a013c9b188cb8e8a9/jsonfield2-3.0.2-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "3.0.3": [ { "comment_text": "", "digests": { "md5": "61dfb3076a7e657e36addd272adff0ac", "sha256": "39610a8345b6fc71b45825d177b678b3d7fa9140c60cc488cf82bd1a35367a2b" }, "downloads": -1, "filename": "jsonfield2-3.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "61dfb3076a7e657e36addd272adff0ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6368, "upload_time": "2019-10-24T01:34:35", "upload_time_iso_8601": "2019-10-24T01:34:35.248554Z", "url": "https://files.pythonhosted.org/packages/80/95/ff8ffe16e44b573d143be82f7ea5c9a4b4cc6a9e5507f2d0ce3794c8cf21/jsonfield2-3.0.3-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "65d34ad563668ffa2df0966d289acad8", "sha256": "baddc916f30fb4fd9e2b68bcbd8d20c5db4466b79588f0ccc3959961f0e9b568" }, "downloads": -1, "filename": "jsonfield2-3.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "65d34ad563668ffa2df0966d289acad8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6404, "upload_time": "2019-12-06T20:29:41", "upload_time_iso_8601": "2019-12-06T20:29:41.432159Z", "url": "https://files.pythonhosted.org/packages/e2/68/619f098f377c0ca6c6ebadfabbe960fb2a48af7cebbd3706c4663d457188/jsonfield2-3.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "4.0.0": [ { "comment_text": "", "digests": { "md5": "55fe201c1d8f440fc8040604bcc1cbe0", "sha256": "f19f836c30becbb227ed8c8299da1cfd7f2f7c6ad3ad2a729b59fb75f58ef084" }, "downloads": -1, "filename": "jsonfield2-4.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "55fe201c1d8f440fc8040604bcc1cbe0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7369, "upload_time": "2020-02-15T02:16:21", "upload_time_iso_8601": "2020-02-15T02:16:21.167265Z", "url": "https://files.pythonhosted.org/packages/c3/e2/2f17efc3bd36d049fc0b8b49442acbdeab5e0f3e4c34a4265f872d92acb7/jsonfield2-4.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "9f41c55b8ca8298967eb8349b4cb6beb", "sha256": "7bd43edd85d203ad6edb0ecb39870a1c7a4fadaf7e807b0feeca3da64b086b5d" }, "downloads": -1, "filename": "jsonfield2-4.0.0.tar.gz", "has_sig": false, "md5_digest": "9f41c55b8ca8298967eb8349b4cb6beb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12684, "upload_time": "2020-02-15T02:16:22", "upload_time_iso_8601": "2020-02-15T02:16:22.734482Z", "url": "https://files.pythonhosted.org/packages/02/9b/4da132909529866d17fcf93432a8832cbb2b05d9ebb6968c535aeb6e2f4d/jsonfield2-4.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "4.0.0.post0": [ { "comment_text": "", "digests": { "md5": "9271b4f46f400ec852bdd397170d9e47", "sha256": "bab284d3fc721067d5f3107a0adc87ee772e9b09cac5eca042fad6311c4842bd" }, "downloads": -1, "filename": "jsonfield2-4.0.0.post0-py3-none-any.whl", "has_sig": false, "md5_digest": "9271b4f46f400ec852bdd397170d9e47", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7444, "upload_time": "2020-03-02T10:48:00", "upload_time_iso_8601": "2020-03-02T10:48:00.313190Z", "url": "https://files.pythonhosted.org/packages/62/ca/4ad4bcd8d728721ac307adbaf9cb7371424773f8affcb425e3edd73e504c/jsonfield2-4.0.0.post0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "80159b920936ab31eeeb893d3beb764e", "sha256": "cbce2d7c52563550cd2048fcf3a57631019d3547f5ed142f42141d1d2dc53283" }, "downloads": -1, "filename": "jsonfield2-4.0.0.post0.tar.gz", "has_sig": false, "md5_digest": "80159b920936ab31eeeb893d3beb764e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12632, "upload_time": "2020-03-02T10:48:01", "upload_time_iso_8601": "2020-03-02T10:48:01.822777Z", "url": "https://files.pythonhosted.org/packages/ea/7e/9b093453c62a9599eef02274e12eb9d327519812288cad283494c4035ec1/jsonfield2-4.0.0.post0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9271b4f46f400ec852bdd397170d9e47", "sha256": "bab284d3fc721067d5f3107a0adc87ee772e9b09cac5eca042fad6311c4842bd" }, "downloads": -1, "filename": "jsonfield2-4.0.0.post0-py3-none-any.whl", "has_sig": false, "md5_digest": "9271b4f46f400ec852bdd397170d9e47", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7444, "upload_time": "2020-03-02T10:48:00", "upload_time_iso_8601": "2020-03-02T10:48:00.313190Z", "url": "https://files.pythonhosted.org/packages/62/ca/4ad4bcd8d728721ac307adbaf9cb7371424773f8affcb425e3edd73e504c/jsonfield2-4.0.0.post0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "80159b920936ab31eeeb893d3beb764e", "sha256": "cbce2d7c52563550cd2048fcf3a57631019d3547f5ed142f42141d1d2dc53283" }, "downloads": -1, "filename": "jsonfield2-4.0.0.post0.tar.gz", "has_sig": false, "md5_digest": "80159b920936ab31eeeb893d3beb764e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12632, "upload_time": "2020-03-02T10:48:01", "upload_time_iso_8601": "2020-03-02T10:48:01.822777Z", "url": "https://files.pythonhosted.org/packages/ea/7e/9b093453c62a9599eef02274e12eb9d327519812288cad283494c4035ec1/jsonfield2-4.0.0.post0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }