{ "info": { "author": "Paul Watts", "author_email": "paulcwatts@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===================\ndjango-whippedcream\n===================\n\n.. image:: https://travis-ci.org/paulcwatts/django-whippedcream.png?branch=master \n :target: https://travis-ci.org/paulcwatts/django-whippedcream\n\nThe perfect counterpart to django-tastypie_.\n\ndjango-whippedcream provides a few mixins and utilities that I've used to make\nmy life with tastypie easier. \n\nTested using django-tastypie>0.12, Django>1.7, and Python 2.7 and >3.4\n\nRequirements\n============\n\ndjango-tastypie, of course. Also pytz if you want to use the DateTimeSerializer.\n\nInstallation\n============\n\n1. Install: ``pip install django-whippedcream``\n2. Add ``whippedcream`` to your ``INSTALLED_APPS``.\n\nDateTimeField\n-------------\n\nThis is a simple addition to the DateTimeField that removes milliseconds\nfrom the field. This is useful if you don't want to provide that level\nof accuracy, but also if your database engine doesn't store that level\nof accuracy (MySQL).\n\n::\n\n from whippedcream.fields import DateTimeField\n\n class MyResource(Resource):\n dt = DateTimeField('dt', normalize=True)\n\nPyAccessMixin\n-------------\n\nThis mixin class can be added to any resource where you may want to \naccess a serialized (JSON) version in any of your regular python code.\nIt basically implements this pattern:\n\nhttp://django-tastypie.readthedocs.org/en/latest/cookbook.html#using-your-resource-in-regular-views\n\n::\n\n from whippedcream.mixins import PyAccessMixin\n\n class MyResource(MyAccessMixin, Resource):\n pass\n\n # elsewhere...\n result = MyResource().obj_to_simple(request, obj)\n\n\n.. _django-tastypie: https://github.com/toastdriven/django-tastypie", "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/paulcwatts/django-whippedcream", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-whippedcream", "package_url": "https://pypi.org/project/django-whippedcream/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-whippedcream/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/paulcwatts/django-whippedcream" }, "release_url": "https://pypi.org/project/django-whippedcream/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "Utilities that make tastypie taste better.", "version": "0.2.2" }, "last_serial": 1866109, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "4959122f97cd3a3775e6dfa3908f3904", "sha256": "f96bab9316a549d2f84e50aa679113af8e68949ec04fecc1f5abcc5bacbbe8e2" }, "downloads": -1, "filename": "django-whippedcream-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4959122f97cd3a3775e6dfa3908f3904", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10192, "upload_time": "2014-05-25T15:08:06", "url": "https://files.pythonhosted.org/packages/aa/5a/db970baea6fe12aa51de251e42857212e3cbf5d1307c8b177d2d4dfd5625/django-whippedcream-0.2.0.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "14fc1204dfd9355e27a5fb25f8f4b1ef", "sha256": "09d01922ec69569f89ba81392a4bb72f8028f66f3685657cccd0d19b970fe06c" }, "downloads": -1, "filename": "django-whippedcream-0.2.2.tar.gz", "has_sig": false, "md5_digest": "14fc1204dfd9355e27a5fb25f8f4b1ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8076, "upload_time": "2015-12-17T01:35:50", "url": "https://files.pythonhosted.org/packages/bf/31/700bcb7b1e9ec7f743ea856308a29057ff60acdb1220a8633ec788454175/django-whippedcream-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "14fc1204dfd9355e27a5fb25f8f4b1ef", "sha256": "09d01922ec69569f89ba81392a4bb72f8028f66f3685657cccd0d19b970fe06c" }, "downloads": -1, "filename": "django-whippedcream-0.2.2.tar.gz", "has_sig": false, "md5_digest": "14fc1204dfd9355e27a5fb25f8f4b1ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8076, "upload_time": "2015-12-17T01:35:50", "url": "https://files.pythonhosted.org/packages/bf/31/700bcb7b1e9ec7f743ea856308a29057ff60acdb1220a8633ec788454175/django-whippedcream-0.2.2.tar.gz" } ] }