{ "info": { "author": "Grigoriy Beziuk", "author_email": "me@gbezyuk.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.10", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "=============================\nDjango-Model-To-Dict\n=============================\n\n.. image:: https://badge.fury.io/py/django-model-to-dict.png\n :target: https://badge.fury.io/py/django-model-to-dict\n\n.. image:: https://travis-ci.org/gbezyuk/django-model-to-dict.png?branch=master\n :target: https://travis-ci.org/gbezyuk/django-model-to-dict\n\nDjango Model to Python dict serialization mixin.\n\nBased on the original gist:\nhttps://gist.github.com/gbezyuk/de29d4888818b87f8addd8143b5331e0\n\nRequirements\n------------\n\nCurrently the package is tested with Python3 and Django 1.10 only.\n\nDocumentation\n-------------\n\nThe full documentation is at https://django-model-to-dict.readthedocs.io.\n\nQuickstart\n----------\n\nInstall Django-Model-To-Dict::\n\n pip install django-model-to-dict\n\nAdd it to your `INSTALLED_APPS`:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'django_model_to_dict.apps.DjangoModelToDictConfig',\n # or just 'django_model_to_dict'\n ...\n )\n\nUse `ToDictMixin` with your model:\n\n.. code-block:: python\n\n from django_model_to_dict.mixins import ToDictMixin\n from django.db import models\n\n\n class YourModel(models.Model, ToDictMixin):\n pass\n\nSince now you model's instances have the `to_dict` method defined.\n\nYou can setup additional settings both in your global project configuration or in a particular model.\nSee docs for more details.\n\nFeatures\n--------\n\n* TODO\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install tox\n (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.1.0 (2016-12-15)\n++++++++++++++++++\n\n* First release on PyPI.", "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/gbezyuk/django-model-to-dict", "keywords": "django-model-to-dict", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-model-to-dict", "package_url": "https://pypi.org/project/django-model-to-dict/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-model-to-dict/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/gbezyuk/django-model-to-dict" }, "release_url": "https://pypi.org/project/django-model-to-dict/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Django Model to Python dict serialization mixin.", "version": "0.2.1" }, "last_serial": 2525108, "releases": { "0.1.0": [], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a11f654a9eb6fe7484915f9eae2f3618", "sha256": "bf2d24b0ee08ca95f97d33ab78bc29d412c7a7e68e9f49e3e7b4342aa08ead75" }, "downloads": -1, "filename": "django_model_to_dict-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a11f654a9eb6fe7484915f9eae2f3618", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 11042, "upload_time": "2016-12-15T18:06:51", "url": "https://files.pythonhosted.org/packages/f9/c1/563a7f905f92561e39cb85e20daa683b781bc395fada921198746be9e063/django_model_to_dict-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a873136730419f007262bb9d25b29c96", "sha256": "b6334fbe377253649b5277542f6dee3061e65d56e3844483c12a6451abdd3064" }, "downloads": -1, "filename": "django-model-to-dict-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a873136730419f007262bb9d25b29c96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10284, "upload_time": "2016-12-15T18:06:48", "url": "https://files.pythonhosted.org/packages/3d/c4/1ac601fde1a51e3ebcf887374867a5d879a2deff48521264f773fcf1a1ee/django-model-to-dict-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7cffa79d91d5b27e3d0784c7c17b8548", "sha256": "079bbe20d2e7018676e437f0cb83bd8b0092a69fbe796bf271d528e29ebbe1fb" }, "downloads": -1, "filename": "django_model_to_dict-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7cffa79d91d5b27e3d0784c7c17b8548", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 11003, "upload_time": "2016-12-17T17:44:20", "url": "https://files.pythonhosted.org/packages/ac/8c/f1d9c04dbe60f76e7bde4ac4554d92aa4ba92fc9a76cbfccc1abb0cbef2b/django_model_to_dict-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6763cb1f66b3fae63df6f9d3f46c744", "sha256": "bffc08dc3631f7ce82885f6a3fe6f7b5bf2b135265b68c3f35c02181c9c0e9c2" }, "downloads": -1, "filename": "django-model-to-dict-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b6763cb1f66b3fae63df6f9d3f46c744", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10270, "upload_time": "2016-12-17T17:44:17", "url": "https://files.pythonhosted.org/packages/39/a1/68d2cbb58005a7ec6e6d3662fd80546a6f87f76aead0225a1891e0175ccb/django-model-to-dict-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7cffa79d91d5b27e3d0784c7c17b8548", "sha256": "079bbe20d2e7018676e437f0cb83bd8b0092a69fbe796bf271d528e29ebbe1fb" }, "downloads": -1, "filename": "django_model_to_dict-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7cffa79d91d5b27e3d0784c7c17b8548", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 11003, "upload_time": "2016-12-17T17:44:20", "url": "https://files.pythonhosted.org/packages/ac/8c/f1d9c04dbe60f76e7bde4ac4554d92aa4ba92fc9a76cbfccc1abb0cbef2b/django_model_to_dict-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6763cb1f66b3fae63df6f9d3f46c744", "sha256": "bffc08dc3631f7ce82885f6a3fe6f7b5bf2b135265b68c3f35c02181c9c0e9c2" }, "downloads": -1, "filename": "django-model-to-dict-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b6763cb1f66b3fae63df6f9d3f46c744", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10270, "upload_time": "2016-12-17T17:44:17", "url": "https://files.pythonhosted.org/packages/39/a1/68d2cbb58005a7ec6e6d3662fd80546a6f87f76aead0225a1891e0175ccb/django-model-to-dict-0.2.1.tar.gz" } ] }