{ "info": { "author": "Jocelyn Delalande", "author_email": "jdelalande@oasiswork.fr", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "django-humanize \u2212 use humanize 3rd-party lib as template filters\n================================================================\n\nDjango already offers\n[django.contrib.humanize](https://docs.djangoproject.com/en/1.8/ref/contrib/humanize/)\nbut that implementation is lacking some features, like humanization of\ndurations.\n\nThat lib comes to the rescue allowing you to use *template filters*\nbacked on [the standalone humanize lib](https://pypi.python.org/pypi/humanize).\n\nInstall\n------\n\nAdd `django_humanize` to your *INSTALLED_APPS* setting.\n\nExamples\n--------\n\n### Template\n\n {% load humanizelib %}\n\n It lasted {{ duration|naturaldelta }}.\n\n### View\n\n import datetime\n from django.shortcuts import render_\n\n def summary(request):\n context = {'duration': datetime.timedelta(seconds=1000)}\n return render('template.html', context)\n\nWill render as *\"lasted 16 minutes.\"*.\n\nTemplate filters\n----------------\n\nThe following template filters are available :\n\n- naturalday\n- naturaltime\n- ordinal\n- intword\n- naturaldelta\n- intcomma\n- apnumber\n- fractional\n- naturalsize\n- naturaldate\n\nInternationalization\n---------------------\n\nInternationalization is supported and matches Django *LANGUAGE_CODE* setting. If\nit does not work, maybe, your language code is not supported by the standalone\nhumanize lib. Think about\n[contributing it](https://github.com/jmoiron/humanize/#localization).", "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/oasiswork/django-humanize/", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-humanize", "package_url": "https://pypi.org/project/django-humanize/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-humanize/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/oasiswork/django-humanize/" }, "release_url": "https://pypi.org/project/django-humanize/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Use humanize 3rd-party lib as template filters", "version": "0.1.2" }, "last_serial": 1743993, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "73e71834179ec36bb66330522e620bd4", "sha256": "7cbd781ad8ac3773485d49805e4b77db298bc99c9cfa424d6115acf09e692f57" }, "downloads": -1, "filename": "django-humanize-0.1.tar.gz", "has_sig": false, "md5_digest": "73e71834179ec36bb66330522e620bd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1838, "upload_time": "2015-06-30T15:57:52", "url": "https://files.pythonhosted.org/packages/04/17/a32dd0ae0d71fb7703ca087db97bb481b24206ed379635e2fbe9d58b9e1f/django-humanize-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "8155c9caadaa6f8af3ac56cdfa3341b5", "sha256": "95a681bcb7ce3acaf08f19e3daecb5747a9720595ae14a1e61581bcc3a0d922f" }, "downloads": -1, "filename": "django-humanize-0.1.1.tar.gz", "has_sig": false, "md5_digest": "8155c9caadaa6f8af3ac56cdfa3341b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2320, "upload_time": "2015-06-30T16:27:23", "url": "https://files.pythonhosted.org/packages/90/51/b2361e49401340a45c6a4ba3b26885269eb199be79ba857b03473a8376cb/django-humanize-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "796c12f951f74d8586bf311ceff9aa62", "sha256": "32491bf0209b89a277f7bfdab7fd6d4cc7944bb037f742d62e8e447a575c0028" }, "downloads": -1, "filename": "django-humanize-0.1.2.tar.gz", "has_sig": false, "md5_digest": "796c12f951f74d8586bf311ceff9aa62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2307, "upload_time": "2015-09-29T13:17:15", "url": "https://files.pythonhosted.org/packages/b3/a8/955344ecd167d6c8677fba60833fb4374e7e969d42af0e14029341e6ffc0/django-humanize-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "796c12f951f74d8586bf311ceff9aa62", "sha256": "32491bf0209b89a277f7bfdab7fd6d4cc7944bb037f742d62e8e447a575c0028" }, "downloads": -1, "filename": "django-humanize-0.1.2.tar.gz", "has_sig": false, "md5_digest": "796c12f951f74d8586bf311ceff9aa62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2307, "upload_time": "2015-09-29T13:17:15", "url": "https://files.pythonhosted.org/packages/b3/a8/955344ecd167d6c8677fba60833fb4374e7e969d42af0e14029341e6ffc0/django-humanize-0.1.2.tar.gz" } ] }