{ "info": { "author": "Basil Shubin", "author_email": "basil.shubin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-unitology\n================\n\nCustom model fields to store, retrieve and convert measurements of height, weight and more.\n\nAuthored by `Basil Shubin `_, and some great\n`contributors `_.\n\n.. image:: https://img.shields.io/pypi/v/django-unitology.svg\n :target: https://pypi.python.org/pypi/django-unitology/\n\n.. image:: https://img.shields.io/pypi/dm/django-unitology.svg\n :target: https://pypi.python.org/pypi/django-unitology/\n\n.. image:: https://img.shields.io/github/license/bashu/django-unitology.svg\n :target: https://pypi.python.org/pypi/django-unitology/\n\n.. image:: https://img.shields.io/travis/bashu/django-unitology.svg\n :target: https://travis-ci.org/bashu/django-unitology/\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install django-unitology\n\nExternal dependencies\n~~~~~~~~~~~~~~~~~~~~~\n\n* jQuery - this is not included in the package since it is expected\n that in most scenarios this would already be available.\n\nSetup\n-----\n\nAdd ``unitology`` to ``INSTALLED_APPS``:\n\n.. code-block:: python\n\n INSTALLED_APPS += (\n 'unitology',\n )\n\nUpdate your ``urls.py`` file:\n\n.. code-block:: python\n\n urlpatterns += [\n url(r'^unitology/', include('unitology.urls')),\n ]\n\nWhen deploying on production server, don't forget to run:\n\n.. code-block:: shell\n\n python manage.py collectstatic\n\nUsage\n-----\n\n.. code-block:: python\n\n # models.py\n\n from django.db import models\n from django.contrib import admin\n\n from unitology.models import UnitsFieldMixin\n from unitology.fields import WeightField, HeightField\n from unitology.forms import UnitsFieldFormMixin\n\n\n class Person(UnitsFieldMixin):\n\n name = models.CharField(max_length=128)\n\n weight = WeightField(blank=True, null=True)\n height = HeightField(blank=True, null=True)\n\n\n class PersonChangeForm(UnitsFieldFormMixin):\n\n class Meta:\n model = Person\n\n\n class PersonAdmin(admin.ModelAdmin):\n form = PersonChangeForm\n\n\n admin.site.register(Person, PersonAdmin)\n\nPlease see ``example`` application. This application is used to manually test the functionalities of this package. This also serves as a good example.\n\nYou need only Django 1.4 or above to run that. It might run on older versions but that is not tested.\n\n\nLicense\n-------\n\n``django-unitology`` is released under the MIT license.\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/bashu/django-unitology/zipball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bashu/django-unitology", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-unitology", "package_url": "https://pypi.org/project/django-unitology/", "platform": "", "project_url": "https://pypi.org/project/django-unitology/", "project_urls": { "Download": "https://github.com/bashu/django-unitology/zipball/master", "Homepage": "https://github.com/bashu/django-unitology" }, "release_url": "https://pypi.org/project/django-unitology/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Height / Weight fields for Django models & forms with unit conversion", "version": "0.0.5" }, "last_serial": 4976156, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "6553c4509a1f568d6a806a4f7ca355e3", "sha256": "1d2563d10cefce79342cb88e6bdc028e92eeff54b33c916925c09817993d1a5e" }, "downloads": -1, "filename": "django_unitology-0.0.1-py2-none-any.whl", "has_sig": true, "md5_digest": "6553c4509a1f568d6a806a4f7ca355e3", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 16896, "upload_time": "2016-10-18T07:36:54", "url": "https://files.pythonhosted.org/packages/cb/90/dc748f2a6c4fbf48649934faa39738c6be36bb86b21ff27ae1c4e647ef51/django_unitology-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "130906c675ff591211ea535ccaafbf0e", "sha256": "9f5a69bd53c0bd93a42f7f73e793f2d5180f0dda1a8757ff2b0a884d6b32d499" }, "downloads": -1, "filename": "django-unitology-0.0.1.tar.gz", "has_sig": true, "md5_digest": "130906c675ff591211ea535ccaafbf0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9780, "upload_time": "2016-10-18T07:36:47", "url": "https://files.pythonhosted.org/packages/01/ed/e7490d62a57389387cc9c7fe3be0a15bc9709516894c17229c7ffd67274c/django-unitology-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "29133d43aa4624fea7146c8a9957631b", "sha256": "ec3f43bf63049f57724996769cb4af09d913ca636bdbdf4531506c4b1c1d4b6e" }, "downloads": -1, "filename": "django_unitology-0.0.2-py2-none-any.whl", "has_sig": true, "md5_digest": "29133d43aa4624fea7146c8a9957631b", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 17785, "upload_time": "2016-10-19T07:45:54", "url": "https://files.pythonhosted.org/packages/01/ef/ca79a76f2b427c0390d65bb1c4d0ee446436e00272c5899b6f70c18a45f0/django_unitology-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d683a482de1ab64bc4a9ae7dd417f39", "sha256": "c0067665f08e8fbb21bf078cb9f3332dd3f8e432303486a47f57cf39c13e132a" }, "downloads": -1, "filename": "django-unitology-0.0.2.tar.gz", "has_sig": true, "md5_digest": "1d683a482de1ab64bc4a9ae7dd417f39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10104, "upload_time": "2016-10-19T07:45:48", "url": "https://files.pythonhosted.org/packages/63/13/67ee84c86636eae4d06f5cbc0a81db077a15b0dfff0d90c4cf029cc3553c/django-unitology-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "44a8dc1b123c04922d2ab1fc3042f576", "sha256": "e46e8ffe0a364cfc854fbfb9c9add7eddd6ccc7db4363c287f651a29a277acc4" }, "downloads": -1, "filename": "django_unitology-0.0.3-py2-none-any.whl", "has_sig": true, "md5_digest": "44a8dc1b123c04922d2ab1fc3042f576", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18237, "upload_time": "2016-10-24T06:57:22", "url": "https://files.pythonhosted.org/packages/cf/e1/b9051fb5d8c9f4dbdc1d748557be63e4dc1dd6320bb5678b89f640fd35e4/django_unitology-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a17d33badcd6271c567c6d499f691f0", "sha256": "796da59247faa5abb06bb6383f142649010407a63354c50feed7014b1bff4116" }, "downloads": -1, "filename": "django-unitology-0.0.3.tar.gz", "has_sig": true, "md5_digest": "5a17d33badcd6271c567c6d499f691f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10567, "upload_time": "2016-10-24T06:57:16", "url": "https://files.pythonhosted.org/packages/ff/7c/e375408658c1b60e23f586ae5aa8e36302cd62bac4752d1980c34e551c5f/django-unitology-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "9e48ecb475c3565c5a309838287ee964", "sha256": "dee079adc6e4b3d6dbd047b7cbb4219d0e96f4c5b2c651e459fc1e0ab0238574" }, "downloads": -1, "filename": "django_unitology-0.0.4-py2-none-any.whl", "has_sig": true, "md5_digest": "9e48ecb475c3565c5a309838287ee964", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 18318, "upload_time": "2017-01-21T02:25:07", "url": "https://files.pythonhosted.org/packages/20/e6/6a13acf1c51d662407d69d1e5bd0d89a47fef3343980b51b7a72523e8d40/django_unitology-0.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3133c40cb9f6a33556d6ecaf626d2920", "sha256": "83686dde80c324de8122bfcaf81d4b547304fe7cd870dc0b95cc22d618b343e6" }, "downloads": -1, "filename": "django-unitology-0.0.4.tar.gz", "has_sig": true, "md5_digest": "3133c40cb9f6a33556d6ecaf626d2920", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10595, "upload_time": "2017-01-21T02:25:02", "url": "https://files.pythonhosted.org/packages/3c/ef/9edacc343f87cc18d730a59b89a2a84b4a63dd1031cbca82a5dfee352da3/django-unitology-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "1806cd8331f048bd82866a15f15cddfd", "sha256": "3c203e2a2251b2a6ce804ba7507afbd800051a13b3100440b3ebb44b49719e80" }, "downloads": -1, "filename": "django_unitology-0.0.5-py3-none-any.whl", "has_sig": true, "md5_digest": "1806cd8331f048bd82866a15f15cddfd", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 17379, "upload_time": "2019-03-23T17:33:47", "url": "https://files.pythonhosted.org/packages/6d/1a/5154e60025e5b883f7f5561d596f41bab71b7c8cee9cbcbfd2b861945d58/django_unitology-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "850c76e983f4f44dbbeca9d8f727edc8", "sha256": "dee1d6c25a4f8c8055e22bb4f3f06b42da4476024563dff65e2ef2ba3968657b" }, "downloads": -1, "filename": "django-unitology-0.0.5.tar.gz", "has_sig": true, "md5_digest": "850c76e983f4f44dbbeca9d8f727edc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10659, "upload_time": "2019-03-23T17:33:44", "url": "https://files.pythonhosted.org/packages/54/62/a79e34e7654cf50f5565842fad2c66253d049aa956f8d5399432f8386101/django-unitology-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1806cd8331f048bd82866a15f15cddfd", "sha256": "3c203e2a2251b2a6ce804ba7507afbd800051a13b3100440b3ebb44b49719e80" }, "downloads": -1, "filename": "django_unitology-0.0.5-py3-none-any.whl", "has_sig": true, "md5_digest": "1806cd8331f048bd82866a15f15cddfd", "packagetype": "bdist_wheel", "python_version": "3.7", "requires_python": null, "size": 17379, "upload_time": "2019-03-23T17:33:47", "url": "https://files.pythonhosted.org/packages/6d/1a/5154e60025e5b883f7f5561d596f41bab71b7c8cee9cbcbfd2b861945d58/django_unitology-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "850c76e983f4f44dbbeca9d8f727edc8", "sha256": "dee1d6c25a4f8c8055e22bb4f3f06b42da4476024563dff65e2ef2ba3968657b" }, "downloads": -1, "filename": "django-unitology-0.0.5.tar.gz", "has_sig": true, "md5_digest": "850c76e983f4f44dbbeca9d8f727edc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10659, "upload_time": "2019-03-23T17:33:44", "url": "https://files.pythonhosted.org/packages/54/62/a79e34e7654cf50f5565842fad2c66253d049aa956f8d5399432f8386101/django-unitology-0.0.5.tar.gz" } ] }